com.ibm.xml.xapi

Enum XSequenceType.OccurrenceIndicator

  1. java.lang.Object
  2. extended byjava.lang.Enum<XSequenceType.OccurrenceIndicator>
  3. extended bycom.ibm.xml.xapi.XSequenceType.OccurrenceIndicator
All implemented interfaces:
java.io.Serializable, java.lang.Comparable<XSequenceType.OccurrenceIndicator>
Enclosing interface:
XSequenceType

  1. public static enum XSequenceType.OccurrenceIndicator
  2. extends java.lang.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.

Enum Constant Summary

Enum Constant and Description
ONE
ONE_OR_MORE
ZERO_OR_MORE
ZERO_OR_ONE

Method Summary

Modifier and Type Method and Description
  1. static
  2. XSequenceType.OccurrenceIndicator
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
  1. static
  2. XSequenceType.OccurrenceIndicator[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait

Enum Constant Detail

ONE

  1. public static final XSequenceType.OccurrenceIndicator ONE

ZERO_OR_ONE

  1. public static final XSequenceType.OccurrenceIndicator ZERO_OR_ONE

ZERO_OR_MORE

  1. public static final XSequenceType.OccurrenceIndicator ZERO_OR_MORE

ONE_OR_MORE

  1. public static final XSequenceType.OccurrenceIndicator ONE_OR_MORE

Method Detail

values

  1. 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

  1. public static XSequenceType.OccurrenceIndicator valueOf( java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null