Package ghidra.framework
Class ApplicationIdentifier
- java.lang.Object
-
- ghidra.framework.ApplicationIdentifier
-
public class ApplicationIdentifier extends java.lang.Object
Class 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 name
Application 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 newApplicationIdentifier
object from anApplicationProperties
.ApplicationIdentifier(java.lang.String identifier)
Creates a newApplicationIdentifier
object from the given string.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getApplicationName()
Gets the application name.java.lang.String
getApplicationReleaseName()
Gets the application release name.ApplicationVersion
getApplicationVersion()
Gets theapplication version
.int
hashCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
ApplicationIdentifier
public ApplicationIdentifier(ApplicationProperties applicationProperties) throws java.lang.IllegalArgumentException
Creates a newApplicationIdentifier
object from anApplicationProperties
.- Parameters:
applicationProperties
- AnApplicationProperties
.- Throws:
java.lang.IllegalArgumentException
- if required elements from theApplicationProperties
were 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.IllegalArgumentException
Creates a newApplicationIdentifier
object 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:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-