Package net.sf.saxon.xqj
Class SaxonXQSequence
- java.lang.Object
-
- net.sf.saxon.xqj.SaxonXQSequence
-
- All Implemented Interfaces:
XQItemAccessor
,XQResultSequence
,XQSequence
public class SaxonXQSequence extends java.lang.Object implements XQResultSequence
Saxon implementation of the XQSequence interface in XQJ, which represents an XDM sequence together with a current position. This class is used for a sequence that can be read forwards, backwards, or by absolute position.
-
-
Constructor Summary
Constructors Constructor Description SaxonXQSequence(Value value, Configuration config)
SaxonXQSequence(Value value, Configuration config, SaxonXQConnection connection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
absolute(int itempos)
void
afterLast()
void
beforeFirst()
void
clearWarnings()
void
close()
int
count()
boolean
first()
java.lang.String
getAtomicValue()
boolean
getBoolean()
byte
getByte()
(package private) Configuration
getConfiguration()
XQConnection
getConnection()
double
getDouble()
float
getFloat()
int
getInt()
XQItem
getItem()
javax.xml.stream.XMLStreamReader
getItemAsStream()
java.lang.String
getItemAsString()
XQItemType
getItemType()
long
getLong()
org.w3c.dom.Node
getNode()
java.net.URI
getNodeUri()
java.lang.Object
getObject()
java.lang.Object
getObject(XQCommonHandler handler)
int
getPosition()
javax.xml.stream.XMLStreamReader
getSequenceAsStream()
java.lang.String
getSequenceAsString(java.util.Properties props)
short
getShort()
(package private) Value
getValue()
XQWarning
getWarnings()
boolean
instanceOf(XQItemType type)
boolean
isAfterLast()
boolean
isBeforeFirst()
boolean
isClosed()
boolean
isFirst()
boolean
isLast()
boolean
isOnItem()
boolean
isScrollable()
boolean
last()
boolean
next()
boolean
previous()
boolean
relative(int itempos)
void
writeItem(java.io.OutputStream os, java.util.Properties props)
void
writeItem(java.io.Writer ow, java.util.Properties props)
void
writeItemToSAX(org.xml.sax.ContentHandler saxHandler)
void
writeSequence(java.io.OutputStream os, java.util.Properties props)
void
writeSequence(java.io.Writer ow, java.util.Properties props)
void
writeSequenceToSAX(org.xml.sax.ContentHandler saxHandler)
-
-
-
Constructor Detail
-
SaxonXQSequence
SaxonXQSequence(Value value, Configuration config)
-
SaxonXQSequence
SaxonXQSequence(Value value, Configuration config, SaxonXQConnection connection)
-
-
Method Detail
-
getValue
Value getValue()
-
getConfiguration
Configuration getConfiguration()
-
absolute
public boolean absolute(int itempos) throws XQException
- Specified by:
absolute
in interfaceXQSequence
- Throws:
XQException
-
afterLast
public void afterLast() throws XQException
- Specified by:
afterLast
in interfaceXQSequence
- Throws:
XQException
-
beforeFirst
public void beforeFirst() throws XQException
- Specified by:
beforeFirst
in interfaceXQSequence
- Throws:
XQException
-
close
public void close() throws XQException
- Specified by:
close
in interfaceXQSequence
- Throws:
XQException
-
count
public int count() throws XQException
- Specified by:
count
in interfaceXQSequence
- Throws:
XQException
-
first
public boolean first() throws XQException
- Specified by:
first
in interfaceXQSequence
- Throws:
XQException
-
getItem
public XQItem getItem() throws XQException
- Specified by:
getItem
in interfaceXQSequence
- Throws:
XQException
-
getPosition
public int getPosition() throws XQException
- Specified by:
getPosition
in interfaceXQSequence
- Throws:
XQException
-
getSequenceAsStream
public javax.xml.stream.XMLStreamReader getSequenceAsStream() throws XQException
- Specified by:
getSequenceAsStream
in interfaceXQSequence
- Throws:
XQException
-
getSequenceAsString
public java.lang.String getSequenceAsString(java.util.Properties props) throws XQException
- Specified by:
getSequenceAsString
in interfaceXQSequence
- Throws:
XQException
-
isAfterLast
public boolean isAfterLast() throws XQException
- Specified by:
isAfterLast
in interfaceXQSequence
- Throws:
XQException
-
isBeforeFirst
public boolean isBeforeFirst() throws XQException
- Specified by:
isBeforeFirst
in interfaceXQSequence
- Throws:
XQException
-
isClosed
public boolean isClosed()
- Specified by:
isClosed
in interfaceXQSequence
-
isFirst
public boolean isFirst() throws XQException
- Specified by:
isFirst
in interfaceXQSequence
- Throws:
XQException
-
isLast
public boolean isLast() throws XQException
- Specified by:
isLast
in interfaceXQSequence
- Throws:
XQException
-
isOnItem
public boolean isOnItem() throws XQException
- Specified by:
isOnItem
in interfaceXQSequence
- Throws:
XQException
-
isScrollable
public boolean isScrollable() throws XQException
- Specified by:
isScrollable
in interfaceXQSequence
- Throws:
XQException
-
last
public boolean last() throws XQException
- Specified by:
last
in interfaceXQSequence
- Throws:
XQException
-
next
public boolean next() throws XQException
- Specified by:
next
in interfaceXQSequence
- Throws:
XQException
-
previous
public boolean previous() throws XQException
- Specified by:
previous
in interfaceXQSequence
- Throws:
XQException
-
relative
public boolean relative(int itempos) throws XQException
- Specified by:
relative
in interfaceXQSequence
- Throws:
XQException
-
writeSequence
public void writeSequence(java.io.OutputStream os, java.util.Properties props) throws XQException
- Specified by:
writeSequence
in interfaceXQSequence
- Throws:
XQException
-
writeSequence
public void writeSequence(java.io.Writer ow, java.util.Properties props) throws XQException
- Specified by:
writeSequence
in interfaceXQSequence
- Throws:
XQException
-
writeSequenceToSAX
public void writeSequenceToSAX(org.xml.sax.ContentHandler saxHandler) throws XQException
- Specified by:
writeSequenceToSAX
in interfaceXQSequence
- Throws:
XQException
-
getAtomicValue
public java.lang.String getAtomicValue() throws XQException
- Specified by:
getAtomicValue
in interfaceXQItemAccessor
- Throws:
XQException
-
getBoolean
public boolean getBoolean() throws XQException
- Specified by:
getBoolean
in interfaceXQItemAccessor
- Throws:
XQException
-
getByte
public byte getByte() throws XQException
- Specified by:
getByte
in interfaceXQItemAccessor
- Throws:
XQException
-
getDouble
public double getDouble() throws XQException
- Specified by:
getDouble
in interfaceXQItemAccessor
- Throws:
XQException
-
getFloat
public float getFloat() throws XQException
- Specified by:
getFloat
in interfaceXQItemAccessor
- Throws:
XQException
-
getInt
public int getInt() throws XQException
- Specified by:
getInt
in interfaceXQItemAccessor
- Throws:
XQException
-
getItemAsStream
public javax.xml.stream.XMLStreamReader getItemAsStream() throws XQException
- Specified by:
getItemAsStream
in interfaceXQItemAccessor
- Throws:
XQException
-
getItemAsString
public java.lang.String getItemAsString() throws XQException
- Specified by:
getItemAsString
in interfaceXQItemAccessor
- Throws:
XQException
-
getItemType
public XQItemType getItemType() throws XQException
- Specified by:
getItemType
in interfaceXQItemAccessor
- Throws:
XQException
-
getLong
public long getLong() throws XQException
- Specified by:
getLong
in interfaceXQItemAccessor
- Throws:
XQException
-
getNode
public org.w3c.dom.Node getNode() throws XQException
- Specified by:
getNode
in interfaceXQItemAccessor
- Throws:
XQException
-
getNodeUri
public java.net.URI getNodeUri() throws XQException
- Specified by:
getNodeUri
in interfaceXQItemAccessor
- Throws:
XQException
-
getObject
public java.lang.Object getObject() throws XQException
- Specified by:
getObject
in interfaceXQItemAccessor
- Throws:
XQException
-
getObject
public java.lang.Object getObject(XQCommonHandler handler) throws XQException
- Specified by:
getObject
in interfaceXQItemAccessor
- Throws:
XQException
-
getShort
public short getShort() throws XQException
- Specified by:
getShort
in interfaceXQItemAccessor
- Throws:
XQException
-
instanceOf
public boolean instanceOf(XQItemType type) throws XQException
- Specified by:
instanceOf
in interfaceXQItemAccessor
- Throws:
XQException
-
writeItem
public void writeItem(java.io.OutputStream os, java.util.Properties props) throws XQException
- Specified by:
writeItem
in interfaceXQItemAccessor
- Throws:
XQException
-
writeItem
public void writeItem(java.io.Writer ow, java.util.Properties props) throws XQException
- Specified by:
writeItem
in interfaceXQItemAccessor
- Throws:
XQException
-
writeItemToSAX
public void writeItemToSAX(org.xml.sax.ContentHandler saxHandler) throws XQException
- Specified by:
writeItemToSAX
in interfaceXQItemAccessor
- Throws:
XQException
-
clearWarnings
public void clearWarnings()
- Specified by:
clearWarnings
in interfaceXQResultSequence
-
getConnection
public XQConnection getConnection()
- Specified by:
getConnection
in interfaceXQResultSequence
-
getWarnings
public XQWarning getWarnings()
- Specified by:
getWarnings
in interfaceXQResultSequence
-
-