Class 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 Detail

      • ApplicationIdentifier

        public ApplicationIdentifier​(java.lang.String identifier)
                              throws java.lang.IllegalArgumentException
        Creates a new ApplicationIdentifier 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.
      • 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 class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object