com.ddtek.xquery3
Interface XQSequenceType

All Known Subinterfaces:
XQItemType

public interface XQSequenceType

The XQSequenceType interface represents a sequence type as XQuery 1.0: An XML Query language. The XQSequenceType is the base interface for the XQItemType interface and contains an occurence indicator.


Field Summary
static int OCC_EMPTY
           
static int OCC_EXACTLY_ONE
           
static int OCC_ONE_OR_MORE
           
static int OCC_ZERO_OR_MORE
           
static int OCC_ZERO_OR_ONE
           
 
Method Summary
 int getItemOccurrence()
          Returns the occurrence indicator for the sequence type.
 XQItemType getItemType()
          Returns the type of the item in the sequence type.
 String toString()
          Returns a string representation of the sequence type.
 

Field Detail

OCC_ZERO_OR_ONE

public static final int OCC_ZERO_OR_ONE
See Also:
Constant Field Values

OCC_EXACTLY_ONE

public static final int OCC_EXACTLY_ONE
See Also:
Constant Field Values

OCC_ZERO_OR_MORE

public static final int OCC_ZERO_OR_MORE
See Also:
Constant Field Values

OCC_ONE_OR_MORE

public static final int OCC_ONE_OR_MORE
See Also:
Constant Field Values

OCC_EMPTY

public static final int OCC_EMPTY
See Also:
Constant Field Values
Method Detail

getItemType

public XQItemType getItemType()
Returns the type of the item in the sequence type.

Returns:
XQItemType representing the item type in the sequence or null when the occurence is XQSequenceType.OCC_EMPTY

getItemOccurrence

public int getItemOccurrence()
Returns the occurrence indicator for the sequence type. One of:

Description Value
Zero or one OCC_ZERO_OR_ONE
Exactly one OCC_EXACTLY_ONE
Zero or more OCC_ZERO_OR_MORE
One or more OCC_ONE_OR_MORE
empty-sequence OCC_ONE_OR_MORE
Empty OCC_EMPTY

Returns:
int indicating the occurrence indicator

toString

public String toString()
Returns a string representation of the sequence type.

Returns:
a String representation of the sequence type