Enum XML.LicenseTag

java.lang.Object
java.lang.Enum<XML.LicenseTag>
org.jboss.jca.common.metadata.spec.XML.LicenseTag
All Implemented Interfaces:
Serializable, Comparable<XML.LicenseTag>, java.lang.constant.Constable
Enclosing interface:
XML

public static enum XML.LicenseTag extends Enum<XML.LicenseTag>
A LicenseTag.
Author:
Stefano Maestri
  • Enum Constant Details

    • UNKNOWN

      public static final XML.LicenseTag UNKNOWN
      always first
    • DESCRIPTION

      public static final XML.LicenseTag DESCRIPTION
      description tag
    • LICENSE_REQUIRED

      public static final XML.LicenseTag LICENSE_REQUIRED
      vendor-name tag
  • Method Details

    • values

      public static XML.LicenseTag[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static XML.LicenseTag valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getLocalName

      public String getLocalName()
      Get the local name of this element.
      Returns:
      the local name
    • toString

      public String toString()
      Overrides:
      toString in class Enum<XML.LicenseTag>
    • forName

      public static XML.LicenseTag forName(String localName)
      Static method to get enum instance given localName string
      Parameters:
      localName - a string used as localname (typically tag name as defined in xsd)
      Returns:
      the enum instance