com.ibm.xml.xapi

Interface XSequenceType


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

Modifier and Type Interface and Description
  1. static class
XSequenceType.Kind
Enumeration for the kind of sequence as defined in the SequenceType syntax.
  1. static class
XSequenceType.OccurrenceIndicator
Enumeration of occurrence indicators.

Method Summary

Modifier and Type Method and Description
  1. XSequenceType.Kind
getKind()
Returns an enumerator indicating the Kind of the sequence type.
  1. javax.xml.namespace.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.
  1. boolean
getNillable()
Returns true for sequence types that match nillable elements.
  1. XSequenceType.OccurrenceIndicator
getOccurrenceIndicator()
Returns an enumerator indicating how many items may appear in a sequence of this type; the cardinality.
  1. javax.xml.namespace.QName
getTypeName()
Returns the name of a schema type used in the sequence type.

Method Detail

getKind

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

getName

  1. javax.xml.namespace.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

  1. javax.xml.namespace.QName getTypeName( )
Returns the name of a schema type used in the sequence type.

getNillable

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

getOccurrenceIndicator

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