Enum Class XMLAttribute.Use

java.lang.Object
java.lang.Enum<XMLAttribute.Use>
org.jboss.as.controller.xml.XMLAttribute.Use
All Implemented Interfaces:
Serializable, Comparable<XMLAttribute.Use>, Constable, XMLUsage
Enclosing interface:
XMLAttribute<RC,WC>

public static enum XMLAttribute.Use extends Enum<XMLAttribute.Use> implements XMLUsage
Enumerates permissible xs:attribute usage.
  • Enum Constant Details

  • Method Details

    • values

      public static XMLAttribute.Use[] 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 XMLAttribute.Use 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
    • isRequired

      public boolean isRequired()
      Description copied from interface: XMLUsage
      Indicates whether or not the associated XML component is required.
      Specified by:
      isRequired in interface XMLUsage
      Returns:
      true, if the associated XML component is required, false otherwise.
    • isEnabled

      public boolean isEnabled()
      Description copied from interface: XMLUsage
      Indicates whether or not the associated XML component is enabled.
      Specified by:
      isEnabled in interface XMLUsage
      Returns:
      true, if the associated XML component is enabled, false otherwise.