API

com.ibm.xml.xapi
Enum XSequenceType.OccurrenceIndicator

java.lang.Object
  extended by java.lang.Enum<XSequenceType.OccurrenceIndicator>
      extended by 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.


Enum Constant Summary
ONE
           
ONE_OR_MORE
           
ZERO_OR_MORE
           
ZERO_OR_ONE
           
 
Method Summary
static XSequenceType.OccurrenceIndicator valueOf(String name)
          Returns the enum constant of this type with the specified name.
static 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

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
Method Detail

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

IBM Copyright 2004-2008