Package org.jboss.as.controller.xml
Enum Class XMLCardinality.Single
- All Implemented Interfaces:
Serializable,Comparable<XMLCardinality.Single>,Constable,XMLCardinality,XMLUsage
- Enclosing interface:
- XMLCardinality
public static enum XMLCardinality.Single
extends Enum<XMLCardinality.Single>
implements XMLCardinality
Cardinalities for single particles.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface org.jboss.as.controller.xml.XMLCardinality
XMLCardinality.Single, XMLCardinality.Unbounded -
Enum Constant Summary
Enum Constants -
Field Summary
Fields inherited from interface org.jboss.as.controller.xml.XMLCardinality
DISABLED -
Method Summary
Modifier and TypeMethodDescriptionReturns the maximum number of occurrences of this particle.intReturns the minimum number of occurrences of this particle.toString()static XMLCardinality.SingleReturns the enum constant of this class with the specified name.static XMLCardinality.Single[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOfMethods inherited from interface org.jboss.as.controller.xml.XMLCardinality
isEnabled, isRepeatable, isRequired
-
Enum Constant Details
-
OPTIONAL
-
REQUIRED
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getMinOccurs
public int getMinOccurs()Description copied from interface:XMLCardinalityReturns the minimum number of occurrences of this particle.- Specified by:
getMinOccursin interfaceXMLCardinality- Returns:
- the minimum number of occurrences of this particle.
-
getMaxOccurs
Description copied from interface:XMLCardinalityReturns the maximum number of occurrences of this particle.- Specified by:
getMaxOccursin interfaceXMLCardinality- Returns:
- the maximum number of occurrences of this particle.
-
toString
- Overrides:
toStringin classEnum<XMLCardinality.Single>
-