javax.xml.xquery
Interface XQCachedSequence

All Superinterfaces:
XQItemAccessor, XQSequence

public interface XQCachedSequence
extends XQSequence

Author:
Michael Stark

Method Summary
 int count()
          Returns a number indicating the number of items in the sequence.
 int getPosition()
          Gets the current cursor position.
 void InsertBinary(byte[] bytes, XQItemType type)
          Inserts a binary value after the current position.
 void InsertDate(java.util.Calendar date, XQItemType type)
          Inserts a date value after the current position.
 void InsertInt(int intval, XQItemType type)
          Inserts an integer value after the current position.
 void InsertItem(XQItem item)
          Inserts the given item after the current position.
 void InsertLong(long longval, XQItemType type)
          Inserts a long value after the current position.
 void InsertNode(org.w3c.dom.Node dom, XQItemType type)
          Inserts the DOM node after the current position.
 void InsertObject(java.lang.Object objval, XQItemType type)
          Inserts an java object after the current position.
 void insertSequence(XQSequence seq)
          Appends the cached sequence with the items from the input sequence.
 void insertString(java.lang.String strval, XQItemType type)
          Inserts a string value after the current position After the insertion, the cursor is positioned to be after the newly inserted item, but before the next item.
 void insertXMLStream(javax.xml.stream.XMLStreamReader reader, XQItemType type)
          Inserts a node using the XMLStreamReader.
 void remove()
          Removes the item at the current cursor position.
 void replaceWithByte(byte[] bytes, XQItemType type)
          Replace the current item with a binary value.
 void replaceWithDate(java.util.Calendar dateval, XQItemType type)
          Replace the current item with a date value.
 void replaceWithInt(int intval, XQItemType type)
          Replace the current item with an integer value.
 void replaceWithItem(XQItem item)
          Replace the current item with the given item.
 void replaceWithLong(long longval, XQItemType type)
          Replace the current item with a long value.
 void replaceWithNode(org.w3c.dom.Node dom, XQItemType type)
          Replace the current item with a node.
 void replaceWithObject(java.lang.Object objval, XQItemType type)
          Replace the current item with an object value.
 void replaceWithReader(javax.xml.stream.XMLStreamReader reader, XQItemType type)
          Replace the current item with a node using the reader.
 void replaceWithString(java.lang.String strval, XQItemType type)
          Replace the current item with a string value.
 
Methods inherited from interface javax.xml.xquery.XQSequence
absolute, afterLast, beforeFirst, close, first, getCachedItem, getItem, getSequenceAsStream, getSequenceAsString, getSequenceAsString, isAfterLast, isBeforeFirst, isClosed, isFirst, isLast, isOnItem, isScrollable, last, next, previous, relative, writeSequence, writeSequence, writeSequence, writeSequenceToSAX, writeSequenceToStream
 
Methods inherited from interface javax.xml.xquery.XQItemAccessor
getCalendar, getDouble, getInt, getItemType, getLexicalValue, getLong, getNode, getNodeUri, getObject, getObject, getString, getXMLStreamReader, instanceOf, writeSAX, writeXMLStream
 

Method Detail

count

int count()
          throws XQException
Returns a number indicating the number of items in the sequence.

Throws:
XQException

getPosition

int getPosition()
                throws XQException
Gets the current cursor position.

Throws:
XQException

InsertBinary

void InsertBinary(byte[] bytes,
                  XQItemType type)
                  throws XQException
Inserts a binary value after the current position.

Throws:
XQException

InsertDate

void InsertDate(java.util.Calendar date,
                XQItemType type)
                throws XQException
Inserts a date value after the current position.

Throws:
XQException

InsertInt

void InsertInt(int intval,
               XQItemType type)
               throws XQException
Inserts an integer value after the current position.

Throws:
XQException

InsertItem

void InsertItem(XQItem item)
                throws XQException
Inserts the given item after the current position.

Throws:
XQException

InsertLong

void InsertLong(long longval,
                XQItemType type)
                throws XQException
Inserts a long value after the current position.

Throws:
XQException

InsertNode

void InsertNode(org.w3c.dom.Node dom,
                XQItemType type)
                throws XQException
Inserts the DOM node after the current position.

Throws:
XQException

InsertObject

void InsertObject(java.lang.Object objval,
                  XQItemType type)
                  throws XQException
Inserts an java object after the current position.

Throws:
XQException

insertSequence

void insertSequence(XQSequence seq)
                    throws XQException
Appends the cached sequence with the items from the input sequence.

Throws:
XQException

insertString

void insertString(java.lang.String strval,
                  XQItemType type)
                  throws XQException
Inserts a string value after the current position After the insertion, the cursor is positioned to be after the newly inserted item, but before the next item.

Throws:
XQException

insertXMLStream

void insertXMLStream(javax.xml.stream.XMLStreamReader reader,
                     XQItemType type)
                     throws XQException
Inserts a node using the XMLStreamReader.

Throws:
XQException

remove

void remove()
            throws XQException
Removes the item at the current cursor position.

Throws:
XQException

replaceWithByte

void replaceWithByte(byte[] bytes,
                     XQItemType type)
                     throws XQException
Replace the current item with a binary value.

Throws:
XQException

replaceWithDate

void replaceWithDate(java.util.Calendar dateval,
                     XQItemType type)
                     throws XQException
Replace the current item with a date value.

Throws:
XQException

replaceWithInt

void replaceWithInt(int intval,
                    XQItemType type)
                    throws XQException
Replace the current item with an integer value.

Throws:
XQException

replaceWithItem

void replaceWithItem(XQItem item)
                     throws XQException
Replace the current item with the given item.

Throws:
XQException

replaceWithLong

void replaceWithLong(long longval,
                     XQItemType type)
                     throws XQException
Replace the current item with a long value.

Throws:
XQException

replaceWithNode

void replaceWithNode(org.w3c.dom.Node dom,
                     XQItemType type)
                     throws XQException
Replace the current item with a node.

Throws:
XQException

replaceWithObject

void replaceWithObject(java.lang.Object objval,
                       XQItemType type)
                       throws XQException
Replace the current item with an object value.

Throws:
XQException

replaceWithReader

void replaceWithReader(javax.xml.stream.XMLStreamReader reader,
                       XQItemType type)
                       throws XQException
Replace the current item with a node using the reader.

Throws:
XQException

replaceWithString

void replaceWithString(java.lang.String strval,
                       XQItemType type)
                       throws XQException
Replace the current item with a string value.

Throws:
XQException