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

java.lang.Object
  extended by de.fraunhofer.ipsi.ipsixq.api.impl.XQAbstractResultSequence
      extended by de.fraunhofer.ipsi.ipsixq.api.impl.XQResultSequenceImpl
All Implemented Interfaces:
XQItemAccessor, XQResultSequence, XQSequence

public class XQResultSequenceImpl
extends XQAbstractResultSequence

Author:
Michael Stark

Constructor Summary
XQResultSequenceImpl(Sequence sequenceImpl)
           
 
Method Summary
 boolean absolute(int itempos)
          Moves the XQSequence's position to the given item number in this object.
 void afterLast()
          Move to the position after the last item.
 void beforeFirst()
          Moves to the position before the first item.
 boolean first()
          Moves to the first item in the sequence.
 double getDouble()
          Gets a double value.
 int getInt()
          Gets an integer value.
 XQItem getItem()
          Get the current item as an immutable XQItem object.
 long getLong()
          Gets a long value.
 org.w3c.dom.Node getNode()
          Gets the item as a DOM node (if the current item is known to be a node).
 java.lang.String getString()
          Gets a string value.
 boolean isAfterLast()
          Checks if the current position is after the last item in the sequence.
 boolean isBeforeFirst()
          Checks if the current position before the first item in the sequence.
 boolean isFirst()
          Checks if the current position at the first item in the sequence.
 boolean last()
          Moves to the last item in the sequence.
 boolean next()
          Moves to the next item in the sequence.
 boolean previous()
          Moves to the previous item in the sequence
 boolean relative(int itempos)
          Moves the cursor a relative number of items, either positive or negative.
 
Methods inherited from class de.fraunhofer.ipsi.ipsixq.api.impl.XQAbstractResultSequence
clearWarnings, close, getCachedItem, getCalendar, getConnection, getItemType, getLexicalValue, getNodeUri, getObject, getObject, getSequenceAsStream, getSequenceAsString, getSequenceAsString, getWarnings, getXMLStreamReader, instanceOf, isClosed, isLast, isOnItem, isScrollable, writeSAX, writeSequence, writeSequence, writeSequence, writeSequenceToSAX, writeSequenceToStream, writeXMLStream
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XQResultSequenceImpl

public XQResultSequenceImpl(Sequence sequenceImpl)
Method Detail

absolute

public boolean absolute(int itempos)
                 throws XQException
Description copied from interface: XQSequence
Moves the XQSequence's position to the given item number in this object.

Specified by:
absolute in interface XQSequence
Overrides:
absolute in class XQAbstractResultSequence
Throws:
XQException

afterLast

public void afterLast()
               throws XQException
Description copied from interface: XQSequence
Move to the position after the last item.

Specified by:
afterLast in interface XQSequence
Overrides:
afterLast in class XQAbstractResultSequence
Throws:
XQException

beforeFirst

public void beforeFirst()
                 throws XQException
Description copied from interface: XQSequence
Moves to the position before the first item.

Specified by:
beforeFirst in interface XQSequence
Overrides:
beforeFirst in class XQAbstractResultSequence
Throws:
XQException

first

public boolean first()
              throws XQException
Description copied from interface: XQSequence
Moves to the first item in the sequence.

Specified by:
first in interface XQSequence
Overrides:
first in class XQAbstractResultSequence
Throws:
XQException

isAfterLast

public boolean isAfterLast()
                    throws XQException
Description copied from interface: XQSequence
Checks if the current position is after the last item in the sequence.

Specified by:
isAfterLast in interface XQSequence
Overrides:
isAfterLast in class XQAbstractResultSequence
Throws:
XQException

isBeforeFirst

public boolean isBeforeFirst()
                      throws XQException
Description copied from interface: XQSequence
Checks if the current position before the first item in the sequence.

Specified by:
isBeforeFirst in interface XQSequence
Overrides:
isBeforeFirst in class XQAbstractResultSequence
Throws:
XQException

isFirst

public boolean isFirst()
                throws XQException
Description copied from interface: XQSequence
Checks if the current position at the first item in the sequence.

Specified by:
isFirst in interface XQSequence
Overrides:
isFirst in class XQAbstractResultSequence
Throws:
XQException

last

public boolean last()
             throws XQException
Description copied from interface: XQSequence
Moves to the last item in the sequence.

Specified by:
last in interface XQSequence
Overrides:
last in class XQAbstractResultSequence
Throws:
XQException

next

public boolean next()
             throws XQException
Description copied from interface: XQSequence
Moves to the next item in the sequence.

Specified by:
next in interface XQSequence
Overrides:
next in class XQAbstractResultSequence
Throws:
XQException

previous

public boolean previous()
                 throws XQException
Description copied from interface: XQSequence
Moves to the previous item in the sequence

Specified by:
previous in interface XQSequence
Overrides:
previous in class XQAbstractResultSequence
Throws:
XQException

relative

public boolean relative(int itempos)
                 throws XQException
Description copied from interface: XQSequence
Moves the cursor a relative number of items, either positive or negative.

Specified by:
relative in interface XQSequence
Overrides:
relative in class XQAbstractResultSequence
Throws:
XQException

getItem

public XQItem getItem()
               throws XQException
Description copied from interface: XQSequence
Get the current item as an immutable XQItem object.

Specified by:
getItem in interface XQSequence
Overrides:
getItem in class XQAbstractResultSequence
Throws:
XQException

getDouble

public double getDouble()
                 throws XQException
Description copied from interface: XQItemAccessor
Gets a double value.

Specified by:
getDouble in interface XQItemAccessor
Overrides:
getDouble in class XQAbstractResultSequence
Throws:
XQException

getInt

public int getInt()
           throws XQException
Description copied from interface: XQItemAccessor
Gets an integer value.

Specified by:
getInt in interface XQItemAccessor
Overrides:
getInt in class XQAbstractResultSequence
Throws:
XQException

getLong

public long getLong()
             throws XQException
Description copied from interface: XQItemAccessor
Gets a long value.

Specified by:
getLong in interface XQItemAccessor
Overrides:
getLong in class XQAbstractResultSequence
Throws:
XQException

getNode

public org.w3c.dom.Node getNode()
                         throws XQException
Description copied from interface: XQItemAccessor
Gets the item as a DOM node (if the current item is known to be a node).

Specified by:
getNode in interface XQItemAccessor
Overrides:
getNode in class XQAbstractResultSequence
Throws:
XQException

getString

public java.lang.String getString()
                           throws XQException
Description copied from interface: XQItemAccessor
Gets a string value.

Specified by:
getString in interface XQItemAccessor
Overrides:
getString in class XQAbstractResultSequence
Throws:
XQException