javax.xml.xquery
Interface XQSequenceType

All Known Subinterfaces:
XQItemType
All Known Implementing Classes:
XQAbstractItemType, XQAbstractSequenceType, XQItemTypeImpl, XQSequenceTypeImpl

public interface XQSequenceType

Author:
Michael Stark

Field Summary
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
 boolean exactlyMatches(XQSequenceType type)
          Returns true if the given sequence type matches this type exactly.
 int getItemOccurence(XQSequenceType type)
          Returns the occurence indicator for the sequence type.
 XQItemType getItemType()
          Returns the type of the Item in the SequenceType.
 java.lang.String getString()
          Returns a string representation of the sequence type.
 boolean isOfType(XQSequenceType type)
          Returns true if the given type exactly matches or is a supertype of this type.
 

Field Detail

OCC_EXACTLY_ONE

static final int OCC_EXACTLY_ONE
See Also:
Constant Field Values

OCC_ONE_OR_MORE

static final int OCC_ONE_OR_MORE
See Also:
Constant Field Values

OCC_ZERO_OR_MORE

static final int OCC_ZERO_OR_MORE
See Also:
Constant Field Values

OCC_ZERO_OR_ONE

static final int OCC_ZERO_OR_ONE
See Also:
Constant Field Values
Method Detail

exactlyMatches

boolean exactlyMatches(XQSequenceType type)
Returns true if the given sequence type matches this type exactly.


getItemOccurence

int getItemOccurence(XQSequenceType type)
Returns the occurence indicator for the sequence type.


getItemType

XQItemType getItemType()
Returns the type of the Item in the SequenceType.


getString

java.lang.String getString()
                           throws XQException
Returns a string representation of the sequence type.

Throws:
XQException

isOfType

boolean isOfType(XQSequenceType type)
Returns true if the given type exactly matches or is a supertype of this type.