Package net.sf.saxon.xqj
Class SaxonXQForwardSequence
- java.lang.Object
-
- net.sf.saxon.xqj.SaxonXQForwardSequence
-
- All Implemented Interfaces:
XQItemAccessor,XQResultSequence,XQSequence
public class SaxonXQForwardSequence extends java.lang.Object implements XQResultSequence
The class is a Saxon implementation of the XQJ interface XQResultSequence. This implementation is used to represent a sequence that can only be read in a forwards direction.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSaxonXQForwardSequence(SequenceIterator iterator, SaxonXQConnection connection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanabsolute(int itempos)voidafterLast()voidbeforeFirst()voidclearWarnings()voidclose()intcount()booleanfirst()java.lang.StringgetAtomicValue()booleangetBoolean()bytegetByte()(package private) SequenceIteratorgetCleanIterator()XQConnectiongetConnection()doublegetDouble()floatgetFloat()intgetInt()XQItemgetItem()javax.xml.stream.XMLStreamReadergetItemAsStream()java.lang.StringgetItemAsString()XQItemTypegetItemType()longgetLong()org.w3c.dom.NodegetNode()java.net.URIgetNodeUri()java.lang.ObjectgetObject()java.lang.ObjectgetObject(XQCommonHandler handler)intgetPosition()javax.xml.stream.XMLStreamReadergetSequenceAsStream()java.lang.StringgetSequenceAsString(java.util.Properties props)shortgetShort()XQWarninggetWarnings()booleaninstanceOf(XQItemType type)booleanisAfterLast()booleanisBeforeFirst()booleanisClosed()booleanisFirst()booleanisLast()booleanisOnItem()booleanisScrollable()booleanlast()booleannext()booleanprevious()booleanrelative(int itempos)voidwriteItem(java.io.OutputStream os, java.util.Properties props)voidwriteItem(java.io.Writer ow, java.util.Properties props)voidwriteItemToSAX(org.xml.sax.ContentHandler saxHandler)voidwriteSequence(java.io.OutputStream os, java.util.Properties props)voidwriteSequence(java.io.Writer ow, java.util.Properties props)voidwriteSequenceToSAX(org.xml.sax.ContentHandler saxHandler)
-
-
-
Constructor Detail
-
SaxonXQForwardSequence
protected SaxonXQForwardSequence(SequenceIterator iterator, SaxonXQConnection connection)
-
-
Method Detail
-
getCleanIterator
SequenceIterator getCleanIterator() throws XPathException
- Throws:
XPathException
-
clearWarnings
public void clearWarnings()
- Specified by:
clearWarningsin interfaceXQResultSequence
-
getConnection
public XQConnection getConnection()
- Specified by:
getConnectionin interfaceXQResultSequence
-
getWarnings
public XQWarning getWarnings()
- Specified by:
getWarningsin interfaceXQResultSequence
-
getAtomicValue
public java.lang.String getAtomicValue() throws XQException- Specified by:
getAtomicValuein interfaceXQItemAccessor- Throws:
XQException
-
getBoolean
public boolean getBoolean() throws XQException- Specified by:
getBooleanin interfaceXQItemAccessor- Throws:
XQException
-
getByte
public byte getByte() throws XQException- Specified by:
getBytein interfaceXQItemAccessor- Throws:
XQException
-
getDouble
public double getDouble() throws XQException- Specified by:
getDoublein interfaceXQItemAccessor- Throws:
XQException
-
getFloat
public float getFloat() throws XQException- Specified by:
getFloatin interfaceXQItemAccessor- Throws:
XQException
-
getInt
public int getInt() throws XQException- Specified by:
getIntin interfaceXQItemAccessor- Throws:
XQException
-
getItemAsStream
public javax.xml.stream.XMLStreamReader getItemAsStream() throws XQException- Specified by:
getItemAsStreamin interfaceXQItemAccessor- Throws:
XQException
-
getItemAsString
public java.lang.String getItemAsString() throws XQException- Specified by:
getItemAsStringin interfaceXQItemAccessor- Throws:
XQException
-
getItemType
public XQItemType getItemType() throws XQException
- Specified by:
getItemTypein interfaceXQItemAccessor- Throws:
XQException
-
getLong
public long getLong() throws XQException- Specified by:
getLongin interfaceXQItemAccessor- Throws:
XQException
-
getNode
public org.w3c.dom.Node getNode() throws XQException- Specified by:
getNodein interfaceXQItemAccessor- Throws:
XQException
-
getNodeUri
public java.net.URI getNodeUri() throws XQException- Specified by:
getNodeUriin interfaceXQItemAccessor- Throws:
XQException
-
getObject
public java.lang.Object getObject() throws XQException- Specified by:
getObjectin interfaceXQItemAccessor- Throws:
XQException
-
getObject
public java.lang.Object getObject(XQCommonHandler handler) throws XQException
- Specified by:
getObjectin interfaceXQItemAccessor- Throws:
XQException
-
getShort
public short getShort() throws XQException- Specified by:
getShortin interfaceXQItemAccessor- Throws:
XQException
-
instanceOf
public boolean instanceOf(XQItemType type) throws XQException
- Specified by:
instanceOfin interfaceXQItemAccessor- Throws:
XQException
-
writeItem
public void writeItem(java.io.OutputStream os, java.util.Properties props) throws XQException- Specified by:
writeItemin interfaceXQItemAccessor- Throws:
XQException
-
writeItem
public void writeItem(java.io.Writer ow, java.util.Properties props) throws XQException- Specified by:
writeItemin interfaceXQItemAccessor- Throws:
XQException
-
writeItemToSAX
public void writeItemToSAX(org.xml.sax.ContentHandler saxHandler) throws XQException- Specified by:
writeItemToSAXin interfaceXQItemAccessor- Throws:
XQException
-
absolute
public boolean absolute(int itempos) throws XQException- Specified by:
absolutein interfaceXQSequence- Throws:
XQException
-
afterLast
public void afterLast() throws XQException- Specified by:
afterLastin interfaceXQSequence- Throws:
XQException
-
beforeFirst
public void beforeFirst() throws XQException- Specified by:
beforeFirstin interfaceXQSequence- Throws:
XQException
-
close
public void close() throws XQException- Specified by:
closein interfaceXQSequence- Throws:
XQException
-
count
public int count() throws XQException- Specified by:
countin interfaceXQSequence- Throws:
XQException
-
first
public boolean first() throws XQException- Specified by:
firstin interfaceXQSequence- Throws:
XQException
-
getItem
public XQItem getItem() throws XQException
- Specified by:
getItemin interfaceXQSequence- Throws:
XQException
-
getPosition
public int getPosition() throws XQException- Specified by:
getPositionin interfaceXQSequence- Throws:
XQException
-
getSequenceAsStream
public javax.xml.stream.XMLStreamReader getSequenceAsStream() throws XQException- Specified by:
getSequenceAsStreamin interfaceXQSequence- Throws:
XQException
-
getSequenceAsString
public java.lang.String getSequenceAsString(java.util.Properties props) throws XQException- Specified by:
getSequenceAsStringin interfaceXQSequence- Throws:
XQException
-
isAfterLast
public boolean isAfterLast() throws XQException- Specified by:
isAfterLastin interfaceXQSequence- Throws:
XQException
-
isBeforeFirst
public boolean isBeforeFirst() throws XQException- Specified by:
isBeforeFirstin interfaceXQSequence- Throws:
XQException
-
isClosed
public boolean isClosed()
- Specified by:
isClosedin interfaceXQSequence
-
isFirst
public boolean isFirst() throws XQException- Specified by:
isFirstin interfaceXQSequence- Throws:
XQException
-
isLast
public boolean isLast() throws XQException- Specified by:
isLastin interfaceXQSequence- Throws:
XQException
-
isOnItem
public boolean isOnItem() throws XQException- Specified by:
isOnItemin interfaceXQSequence- Throws:
XQException
-
isScrollable
public boolean isScrollable() throws XQException- Specified by:
isScrollablein interfaceXQSequence- Throws:
XQException
-
last
public boolean last() throws XQException- Specified by:
lastin interfaceXQSequence- Throws:
XQException
-
next
public boolean next() throws XQException- Specified by:
nextin interfaceXQSequence- Throws:
XQException
-
previous
public boolean previous() throws XQException- Specified by:
previousin interfaceXQSequence- Throws:
XQException
-
relative
public boolean relative(int itempos) throws XQException- Specified by:
relativein interfaceXQSequence- Throws:
XQException
-
writeSequence
public void writeSequence(java.io.OutputStream os, java.util.Properties props) throws XQException- Specified by:
writeSequencein interfaceXQSequence- Throws:
XQException
-
writeSequence
public void writeSequence(java.io.Writer ow, java.util.Properties props) throws XQException- Specified by:
writeSequencein interfaceXQSequence- Throws:
XQException
-
writeSequenceToSAX
public void writeSequenceToSAX(org.xml.sax.ContentHandler saxHandler) throws XQException- Specified by:
writeSequenceToSAXin interfaceXQSequence- Throws:
XQException
-
-