Package org.jboss.as.controller.xml
Enum XMLAttribute.Use
- java.lang.Object
-
- java.lang.Enum<XMLAttribute.Use>
-
- org.jboss.as.controller.xml.XMLAttribute.Use
-
- All Implemented Interfaces:
Serializable,Comparable<XMLAttribute.Use>,XMLUsage
- Enclosing interface:
- XMLAttribute<RC,WC>
public static enum XMLAttribute.Use extends Enum<XMLAttribute.Use> implements XMLUsage
Enumerates permissible xs:attribute usage.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description OPTIONALPROHIBITEDREQUIRED
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisEnabled()Indicates whether or not the associated XML component is enabled.booleanisRequired()Indicates whether or not the associated XML component is required.static XMLAttribute.UsevalueOf(String name)Returns the enum constant of this type with the specified name.static XMLAttribute.Use[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OPTIONAL
public static final XMLAttribute.Use OPTIONAL
-
PROHIBITED
public static final XMLAttribute.Use PROHIBITED
-
REQUIRED
public static final XMLAttribute.Use REQUIRED
-
-
Method Detail
-
values
public static XMLAttribute.Use[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (XMLAttribute.Use c : XMLAttribute.Use.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static XMLAttribute.Use 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 nameNullPointerException- if the argument is null
-
isRequired
public boolean isRequired()
Description copied from interface:XMLUsageIndicates whether or not the associated XML component is required.- Specified by:
isRequiredin interfaceXMLUsage- Returns:
- true, if the associated XML component is required, false otherwise.
-
-