Enum Class XMLCardinality.Single

java.lang.Object
java.lang.Enum<XMLCardinality.Single>
org.jboss.as.controller.xml.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.
  • Enum Constant Details

  • Method Details

    • values

      public static XMLCardinality.Single[] 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 XMLCardinality.Single 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
    • getMinOccurs

      public int getMinOccurs()
      Description copied from interface: XMLCardinality
      Returns the minimum number of occurrences of this particle.
      Specified by:
      getMinOccurs in interface XMLCardinality
      Returns:
      the minimum number of occurrences of this particle.
    • getMaxOccurs

      public OptionalInt getMaxOccurs()
      Description copied from interface: XMLCardinality
      Returns the maximum number of occurrences of this particle.
      Specified by:
      getMaxOccurs in interface XMLCardinality
      Returns:
      the maximum number of occurrences of this particle.
    • toString

      public String toString()
      Overrides:
      toString in class Enum<XMLCardinality.Single>