API

com.ibm.xml.xapi
Enum XSequenceType.Kind

java.lang.Object
  extended by java.lang.Enum<XSequenceType.Kind>
      extended by com.ibm.xml.xapi.XSequenceType.Kind
All Implemented Interfaces:
Serializable, Comparable<XSequenceType.Kind>
Enclosing interface:
XSequenceType

public static enum XSequenceType.Kind
extends Enum<XSequenceType.Kind>

Enumeration for the kind of sequence as defined in the SequenceType syntax. Each maps to one of the methods in XSequenceTypeFactory. ITEM will be the kind for a sequence type created with the XSequenceTypeFactory.item method, ELEMENT will be the kind for a sequence type created with the XSequenceTypeFactory.element method, etc.

See Also:
XSequenceTypeFactory

Enum Constant Summary
ATOMIC
           
ATTRIBUTE
           
COMMENT
           
DOCUMENT
           
DOCUMENT_WITH_ELEMENT
           
DOCUMENT_WITH_SCHEMA_ELEMENT
           
ELEMENT
           
EMPTY
           
FOREIGN_OBJECT
           
ITEM
           
NODE
           
PI
           
SCHEMA_ATTRIBUTE
           
SCHEMA_ELEMENT
           
TEXT
           
 
Method Summary
static XSequenceType.Kind valueOf(String name)
          Returns the enum constant of this type with the specified name.
static XSequenceType.Kind[] 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

EMPTY

public static final XSequenceType.Kind EMPTY

ITEM

public static final XSequenceType.Kind ITEM

ATOMIC

public static final XSequenceType.Kind ATOMIC

DOCUMENT

public static final XSequenceType.Kind DOCUMENT

DOCUMENT_WITH_ELEMENT

public static final XSequenceType.Kind DOCUMENT_WITH_ELEMENT

DOCUMENT_WITH_SCHEMA_ELEMENT

public static final XSequenceType.Kind DOCUMENT_WITH_SCHEMA_ELEMENT

ELEMENT

public static final XSequenceType.Kind ELEMENT

ATTRIBUTE

public static final XSequenceType.Kind ATTRIBUTE

SCHEMA_ELEMENT

public static final XSequenceType.Kind SCHEMA_ELEMENT

SCHEMA_ATTRIBUTE

public static final XSequenceType.Kind SCHEMA_ATTRIBUTE

PI

public static final XSequenceType.Kind PI

COMMENT

public static final XSequenceType.Kind COMMENT

TEXT

public static final XSequenceType.Kind TEXT

NODE

public static final XSequenceType.Kind NODE

FOREIGN_OBJECT

public static final XSequenceType.Kind FOREIGN_OBJECT
Method Detail

values

public static XSequenceType.Kind[] 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.Kind c : XSequenceType.Kind.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.Kind 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