Package ghidra.framework
Class ApplicationIdentifier
- java.lang.Object
-
- ghidra.framework.ApplicationIdentifier
-
public class ApplicationIdentifier extends java.lang.ObjectClass to represent an application's unique identifier. An application identifier is made up of an application name, an application version, and an application release name.The identifier format is (\.+) - \d\.\d(\.\d)?(\-.+)? _ (\.+) name version release nameApplication names will be converted to all lowercase and application release names will be converted to all uppercase. Both will have spaces removed from their names.Examples:
- ghidra-7.4_DEV
-
-
Constructor Summary
Constructors Constructor Description ApplicationIdentifier(ApplicationProperties applicationProperties)Creates a newApplicationIdentifierobject from anApplicationProperties.ApplicationIdentifier(java.lang.String identifier)Creates a newApplicationIdentifierobject from the given string.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetApplicationName()Gets the application name.java.lang.StringgetApplicationReleaseName()Gets the application release name.ApplicationVersiongetApplicationVersion()Gets theapplication version.inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
ApplicationIdentifier
public ApplicationIdentifier(ApplicationProperties applicationProperties) throws java.lang.IllegalArgumentException
Creates a newApplicationIdentifierobject from anApplicationProperties.- Parameters:
applicationProperties- AnApplicationProperties.- Throws:
java.lang.IllegalArgumentException- if required elements from theApplicationPropertieswere missing or otherwise failed to parse. The exception's message has more detailed information about why it failed.
-
ApplicationIdentifier
public ApplicationIdentifier(java.lang.String identifier) throws java.lang.IllegalArgumentExceptionCreates a newApplicationIdentifierobject from the given string.- Parameters:
identifier- An identifier string.- Throws:
java.lang.IllegalArgumentException- if the identifier string failed to parse. The exception's message has more detailed information about why it failed.
-
-
Method Detail
-
getApplicationName
public java.lang.String getApplicationName()
Gets the application name.- Returns:
- The application name.
-
getApplicationVersion
public ApplicationVersion getApplicationVersion()
Gets theapplication version.- Returns:
- The
application version.
-
getApplicationReleaseName
public java.lang.String getApplicationReleaseName()
Gets the application release name.- Returns:
- The application release name.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-