API

com.ibm.xml.xapi
Interface XSequenceType


public interface XSequenceType

Represents a sequence type. To examine the type, a user should first call the getKind method. The other accessor methods may be applicable depending on the Kind of the sequence type. The following table has a row for each Kind. Cells containing "Y" indicate that the return value of the method at the top of the column has meaning for sequence types having that Kind.

getName()getTypeName()getNillable()getForeignClass()getOccurrenceIndicator()
EMPTY          
ITEM         Y
ATOMIC   Y     Y
DOCUMENT         Y
DOCUMENT_WITH_ELEMENT Y Y Y   Y
DOCUMENT_WITH_SCHEMA_ELEMENTY       Y
ELEMENT Y Y Y   Y
ATTRIBUTE Y Y     Y
SCHEMA_ELEMENT Y       Y
SCHEMA_ATTRIBUTE Y       Y
PI Y       Y
COMMENT         Y
TEXT         Y
NODE         Y
FOREIGN_OBJECT       Y Y


Nested Class Summary
static class XSequenceType.Kind
          Enumeration for the kind of sequence as defined in the SequenceType syntax.
static class XSequenceType.OccurrenceIndicator
          Enumeration of occurrence indicators.
 
Method Summary
 XSequenceType.Kind getKind()
          Returns an enumerator indicating the Kind of the sequence type.
 QName getName()
          Returns the name of a processing instruction, element, attribute, element declaration, or attribute declaration used in the sequence type or null for an element or attribute wildcard.
 boolean getNillable()
          Returns true for sequence types that match nillable elements.
 XSequenceType.OccurrenceIndicator getOccurrenceIndicator()
          Returns an enumerator indicating how many items may appear in a sequence of this type; the cardinality.
 QName getTypeName()
          Returns the name of a schema type used in the sequence type.
 

Method Detail

getKind

XSequenceType.Kind getKind()
Returns an enumerator indicating the Kind of the sequence type.


getName

QName getName()
Returns the name of a processing instruction, element, attribute, element declaration, or attribute declaration used in the sequence type or null for an element or attribute wildcard.


getTypeName

QName getTypeName()
Returns the name of a schema type used in the sequence type.


getNillable

boolean getNillable()
Returns true for sequence types that match nillable elements.


getOccurrenceIndicator

XSequenceType.OccurrenceIndicator getOccurrenceIndicator()
Returns an enumerator indicating how many items may appear in a sequence of this type; the cardinality.


IBM Copyright 2004-2008