Package ghidra.framework
Class ApplicationIdentifier
java.lang.Object
ghidra.framework.ApplicationIdentifier
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 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
ConstructorDescriptionApplicationIdentifier
(ApplicationProperties applicationProperties) Creates a newApplicationIdentifier
object from anApplicationProperties
.ApplicationIdentifier
(String identifier) Creates a newApplicationIdentifier
object from the given string. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets the application name.Gets the application release name.Gets theapplication version
.int
hashCode()
toString()
-
Constructor Details
-
ApplicationIdentifier
public ApplicationIdentifier(ApplicationProperties applicationProperties) throws IllegalArgumentException Creates a newApplicationIdentifier
object from anApplicationProperties
.- Parameters:
applicationProperties
- AnApplicationProperties
.- Throws:
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
Creates a newApplicationIdentifier
object from the given string.- Parameters:
identifier
- An identifier string.- Throws:
IllegalArgumentException
- if the identifier string failed to parse. The exception's message has more detailed information about why it failed.
-
-
Method Details
-
getApplicationName
Gets the application name.- Returns:
- The application name.
-
getApplicationVersion
Gets theapplication version
.- Returns:
- The
application version
.
-
getApplicationReleaseName
Gets the application release name.- Returns:
- The application release name.
-
toString
-
hashCode
public int hashCode() -
equals
-