javax.xml.xquery
Interface XQItemType

All Superinterfaces:
XQSequenceType
All Known Implementing Classes:
XQAbstractItemType, XQItemTypeImpl

public interface XQItemType
extends XQSequenceType

Author:
Michael Stark

Field Summary
static int XQITEMTYPE_ATOMIC
          Type of the node is an atomic type.
static int XQITEMTYPE_ATTRIBUTE
          Type of the item is an attribute.
static int XQITEMTYPE_DOCUMENT
          Type of the item is a document.
static int XQITEMTYPE_ELEMENT
          Type of the item is an element.
static int XQITEMTYPE_ITEM
          Type of the node is an item.
static int XQITEMTYPE_NODE
          Type of the item is a node.
 
Fields inherited from interface javax.xml.xquery.XQSequenceType
OCC_EXACTLY_ONE, OCC_ONE_OR_MORE, OCC_ZERO_OR_MORE, OCC_ZERO_OR_ONE
 
Method Summary
 boolean exactlyMatches(XQItemType type)
          Returns true if the given type matches this type object exactly, otherwise returns false.
 int getBaseItemType()
          Returns the base type of the item.
 int getItemOccurence(XQSequenceType type)
          Returns the occurence indicator for the item type.
 java.lang.String getString()
          Returns a string representation of the item type.
 boolean isOfType(XQItemType type)
          Returns true if the given type exactly matches or is a supertype of this type, otherwise returns false.
 
Methods inherited from interface javax.xml.xquery.XQSequenceType
exactlyMatches, getItemType, isOfType
 

Field Detail

XQITEMTYPE_ATOMIC

static final int XQITEMTYPE_ATOMIC
Type of the node is an atomic type.

See Also:
Constant Field Values

XQITEMTYPE_ATTRIBUTE

static final int XQITEMTYPE_ATTRIBUTE
Type of the item is an attribute.

See Also:
Constant Field Values

XQITEMTYPE_DOCUMENT

static final int XQITEMTYPE_DOCUMENT
Type of the item is a document.

See Also:
Constant Field Values

XQITEMTYPE_ELEMENT

static final int XQITEMTYPE_ELEMENT
Type of the item is an element.

See Also:
Constant Field Values

XQITEMTYPE_ITEM

static final int XQITEMTYPE_ITEM
Type of the node is an item.

See Also:
Constant Field Values

XQITEMTYPE_NODE

static final int XQITEMTYPE_NODE
Type of the item is a node.

See Also:
Constant Field Values
Method Detail

exactlyMatches

boolean exactlyMatches(XQItemType type)
Returns true if the given type matches this type object exactly, otherwise returns false.


getBaseItemType

int getBaseItemType()
Returns the base type of the item.


getItemOccurence

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

Specified by:
getItemOccurence in interface XQSequenceType

getString

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

Specified by:
getString in interface XQSequenceType
Throws:
XQException

isOfType

boolean isOfType(XQItemType type)
Returns true if the given type exactly matches or is a supertype of this type, otherwise returns false.