com.ibm.xml.xapi
Enum XSequenceType.OccurrenceIndicator
java.lang.Object
java.lang.Enum<XSequenceType.OccurrenceIndicator>
com.ibm.xml.xapi.XSequenceType.OccurrenceIndicator
- All Implemented Interfaces:
- Serializable, Comparable<XSequenceType.OccurrenceIndicator>
- Enclosing interface:
- XSequenceType
public static enum XSequenceType.OccurrenceIndicator
- extends Enum<XSequenceType.OccurrenceIndicator>
Enumeration of occurrence indicators. Represents the cardinality of the sequence;
ZERO_OR_ONE corresponds to "?" in SequenceType syntax,
ZERO_OR_MORE to "*", ONE_OR_MORE to "+", and ONE to represents sequences of exactly
one item.
ONE
public static final XSequenceType.OccurrenceIndicator ONE
ZERO_OR_ONE
public static final XSequenceType.OccurrenceIndicator ZERO_OR_ONE
ZERO_OR_MORE
public static final XSequenceType.OccurrenceIndicator ZERO_OR_MORE
ONE_OR_MORE
public static final XSequenceType.OccurrenceIndicator ONE_OR_MORE
values
public static XSequenceType.OccurrenceIndicator[] 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 (XSequenceType.OccurrenceIndicator c : XSequenceType.OccurrenceIndicator.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static XSequenceType.OccurrenceIndicator 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 name
NullPointerException
- if the argument is null