Qizx/open API

net.axyana.qizxopen.xquery.dm
Class NodeSequenceBase

java.lang.Object
  extended bynet.axyana.qizxopen.xquery.dt.BaseValue
      extended bynet.axyana.qizxopen.xquery.dm.NodeSequenceBase
All Implemented Interfaces:
java.io.Serializable, XQItem, XQValue
Direct Known Subclasses:
DistinctNodeSequence

public abstract class NodeSequenceBase
extends net.axyana.qizxopen.xquery.dt.BaseValue

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface net.axyana.qizxopen.xquery.XQItem
INCOMPARABLE
 
Constructor Summary
NodeSequenceBase()
           
 
Method Summary
 XQItem asAtom()
          Gets the current item with atomization.
 int compareTo(XQItem that, java.text.Collator collator, int implicitTimeZone)
          Compares two items.
 boolean getBoolean()
          Gets the item as a boolean value.
 double getDouble()
          Gets the item as a double value.
 long getInteger()
          Gets the item as a integer value.
 XQItem getItem()
          Gets the current item (undefined result if end of sequence reached).
abstract  XQNode getNode()
          Gets the item as a Node value.
 java.lang.String getString()
          Gets the item as a String value.
 XQItemType getType()
          Returns the type description.
 boolean isNode()
          Tests whether the item is a Node.
 
Methods inherited from class net.axyana.qizxopen.xquery.dt.BaseValue
deepEqual, getDecimal, getFloat, hasQuickIndex, nextCollection, quickCount, quickIndex, setLazy, worthExpanding
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.axyana.qizxopen.xquery.XQValue
bornAgain, next
 

Constructor Detail

NodeSequenceBase

public NodeSequenceBase()
Method Detail

getType

public XQItemType getType()
                   throws XQEvalException
Description copied from interface: XQItem
Returns the type description.

Throws:
XQEvalException

isNode

public boolean isNode()
Description copied from interface: XQItem
Tests whether the item is a Node.


getNode

public abstract XQNode getNode()
                        throws XQEvalException
Description copied from interface: XQItem
Gets the item as a Node value.

Throws:
XQEvalException

getItem

public XQItem getItem()
               throws XQEvalException
Description copied from interface: XQValue
Gets the current item (undefined result if end of sequence reached).

Throws:
XQEvalException

asAtom

public XQItem asAtom()
              throws XQEvalException
Description copied from interface: XQValue
Gets the current item with atomization. If the current item is a Node, it is transparently transformed into a sequence of atomic values (in the future schema-aware implementation), or simply to its string value (in XQuery Basic).

Throws:
XQEvalException

getBoolean

public boolean getBoolean()
                   throws XQEvalException
Description copied from interface: XQItem
Gets the item as a boolean value.

Throws:
XQEvalException

getString

public java.lang.String getString()
                           throws XQEvalException
Description copied from interface: XQItem
Gets the item as a String value.

Throws:
XQEvalException

getInteger

public long getInteger()
                throws XQEvalException
Description copied from interface: XQItem
Gets the item as a integer value.

Throws:
XQEvalException

getDouble

public double getDouble()
                 throws XQEvalException
Description copied from interface: XQItem
Gets the item as a double value.

Throws:
XQEvalException

compareTo

public int compareTo(XQItem that,
                     java.text.Collator collator,
                     int implicitTimeZone)
              throws XQEvalException
Description copied from interface: XQItem
Compares two items.

Throws:
XQEvalException

© 2005 Axyana Software