de.fraunhofer.ipsi.ipsixq.api.impl
Class XQAbstractItemType

java.lang.Object
  extended by de.fraunhofer.ipsi.ipsixq.api.impl.XQAbstractItemType
All Implemented Interfaces:
XQItemType, XQSequenceType
Direct Known Subclasses:
XQItemTypeImpl

public abstract class XQAbstractItemType
extends java.lang.Object
implements XQItemType

Author:
Michael Stark

Field Summary
 
Fields inherited from interface javax.xml.xquery.XQItemType
XQITEMTYPE_ATOMIC, XQITEMTYPE_ATTRIBUTE, XQITEMTYPE_DOCUMENT, XQITEMTYPE_ELEMENT, XQITEMTYPE_ITEM, XQITEMTYPE_NODE
 
Fields inherited from interface javax.xml.xquery.XQSequenceType
OCC_EXACTLY_ONE, OCC_ONE_OR_MORE, OCC_ZERO_OR_MORE, OCC_ZERO_OR_ONE
 
Constructor Summary
XQAbstractItemType()
           
 
Method Summary
 boolean exactlyMatches(XQItemType type)
          Returns true if the given type matches this type object exactly, otherwise returns false.
 boolean exactlyMatches(XQSequenceType type)
          Returns true if the given sequence type matches this type exactly.
 int getBaseItemType()
          Returns the base type of the item.
 int getItemOccurence(XQSequenceType type)
          Returns the occurence indicator for the item type.
 XQItemType getItemType()
          Returns the type of the Item in the SequenceType.
 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.
 boolean isOfType(XQSequenceType type)
          Returns true if the given type exactly matches or is a supertype of this type.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XQAbstractItemType

public XQAbstractItemType()
Method Detail

exactlyMatches

public boolean exactlyMatches(XQItemType type)
Description copied from interface: XQItemType
Returns true if the given type matches this type object exactly, otherwise returns false.

Specified by:
exactlyMatches in interface XQItemType

getBaseItemType

public int getBaseItemType()
Description copied from interface: XQItemType
Returns the base type of the item.

Specified by:
getBaseItemType in interface XQItemType

getItemOccurence

public int getItemOccurence(XQSequenceType type)
Description copied from interface: XQItemType
Returns the occurence indicator for the item type.

Specified by:
getItemOccurence in interface XQItemType
Specified by:
getItemOccurence in interface XQSequenceType

getString

public java.lang.String getString()
                           throws XQException
Description copied from interface: XQItemType
Returns a string representation of the item type.

Specified by:
getString in interface XQItemType
Specified by:
getString in interface XQSequenceType
Throws:
XQException

isOfType

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

Specified by:
isOfType in interface XQItemType

exactlyMatches

public boolean exactlyMatches(XQSequenceType type)
Description copied from interface: XQSequenceType
Returns true if the given sequence type matches this type exactly.

Specified by:
exactlyMatches in interface XQSequenceType

getItemType

public XQItemType getItemType()
Description copied from interface: XQSequenceType
Returns the type of the Item in the SequenceType.

Specified by:
getItemType in interface XQSequenceType

isOfType

public boolean isOfType(XQSequenceType type)
Description copied from interface: XQSequenceType
Returns true if the given type exactly matches or is a supertype of this type.

Specified by:
isOfType in interface XQSequenceType