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

java.lang.Object
  extended by de.fraunhofer.ipsi.ipsixq.api.impl.XQAbstractSequenceType
All Implemented Interfaces:
XQSequenceType
Direct Known Subclasses:
XQSequenceTypeImpl

public class XQAbstractSequenceType
extends java.lang.Object
implements XQSequenceType

Author:
Michael Stark

Field Summary
 
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
XQAbstractSequenceType()
           
 
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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XQAbstractSequenceType

public XQAbstractSequenceType()
Method Detail

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

getItemOccurence

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

Specified by:
getItemOccurence 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

getString

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

Specified by:
getString in interface XQSequenceType
Throws:
XQException

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