Enum Class AttributeType

All Implemented Interfaces:
Serializable, Comparable<AttributeType>, Constable

public enum AttributeType extends Enum<AttributeType>
Use a simple enumeration for the Attribute Types
Author:
Rolf Lear
  • Nested Class Summary

    Nested classes/interfaces inherited from class Enum

    Enum.EnumDesc<E>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Attribute type: the attribute value is a string.
    Attribute type: the attribute value is a list of entity names.
    Attribute type: the attribute value is the name of an entity.
    Attribute type: the attribute value is a name token from an enumeration.
    Attribute type: the attribute value is a unique identifier.
    Attribute type: the attribute value is a reference to a unique identifier.
    Attribute type: the attribute value is a list of references to unique identifiers.
    Attribute type: the attribute value is a name token.
    Attribute type: the attribute value is a list of name tokens.
    Attribute type: the attribute value is the name of a notation.
    Attribute type: the attribute has not been declared or type is unknown.
  • Method Summary

    Modifier and Type
    Method
    Description
    static final AttributeType
    byIndex(int index)
    Deprecated.
    Use normal Enums instead of int's
    static final AttributeType
    Returns the the JDOM AttributeType value from the SAX 2.0 attribute type string provided by the parser.
    Returns the enum constant of this class with the specified name.
    static AttributeType[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

  • Method Details

    • values

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

      public static AttributeType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • byIndex

      @Deprecated public static final AttributeType byIndex(int index)
      Deprecated.
      Use normal Enums instead of int's
      Obtain a AttributeType by a int constant. This goes against the logic of enums, but this is used for backward compatibility. Thus, this method is marked Deprecated.
      Parameters:
      index - The AttributeType int equivalent to retrieve
      Returns:
      The AttributeType corresponding to the specified equivalent
      Throws:
      IllegalArgumentException - if there is no equivalent
    • getAttributeType

      public static final AttributeType getAttributeType(String typeName)
      Returns the the JDOM AttributeType value from the SAX 2.0 attribute type string provided by the parser.
      Parameters:
      typeName - String the SAX 2.0 attribute type string.
      Returns:
      int the JDOM attribute type.
      See Also: