Class ApplicationXmlVersion

  • All Implemented Interfaces:
    Comparable

    public final class ApplicationXmlVersion
    extends Object
    implements Comparable
    Enumerated type that represents the version of the deployment descriptor of a enterprise application (application.xml).
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getVersion

        public String getVersion()
        Returns the tag name.
        Returns:
        The tag name
      • getPublicId

        public String getPublicId()
        Returns the public ID of the document type corresponding to the descriptor version.
        Returns:
        The public ID
      • getSystemId

        public String getSystemId()
        Returns the system ID of the document type corresponding to the descriptor version.
        Returns:
        The system ID
      • valueOf

        public static ApplicationXmlVersion valueOf​(org.jdom.DocType theDocType)
                                             throws NullPointerException
        Returns the version corresponding to the given document type.
        Parameters:
        theDocType - The document type
        Returns:
        The version that matches the document type, or null if the doctype is not recognized
        Throws:
        NullPointerException - If the document type is null
      • valueOf

        public static ApplicationXmlVersion valueOf​(String thePublicId)
        Returns the version corresponding to the given public ID.
        Parameters:
        thePublicId - The public ID
        Returns:
        The version that matches the public ID, or null if the ID is not recognized