Package net.sf.saxon.xqj
Class SaxonXQForwardSequence
java.lang.Object
net.sf.saxon.xqj.SaxonXQForwardSequence
- All Implemented Interfaces:
XQItemAccessor
,XQResultSequence
,XQSequence
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.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
SaxonXQForwardSequence
(SequenceIterator iterator, SaxonXQConnection connection) -
Method Summary
Modifier and TypeMethodDescriptionboolean
absolute
(int itempos) void
void
void
void
close()
int
count()
boolean
first()
boolean
byte
getByte()
(package private) SequenceIterator
double
float
getFloat()
int
getInt()
getItem()
long
getLong()
getNode()
getObject
(XQCommonHandler handler) int
getSequenceAsString
(Properties props) short
getShort()
boolean
instanceOf
(XQItemType type) boolean
boolean
boolean
isClosed()
boolean
isFirst()
boolean
isLast()
boolean
isOnItem()
boolean
boolean
last()
boolean
next()
boolean
previous()
boolean
relative
(int itempos) void
writeItem
(OutputStream os, Properties props) void
writeItem
(Writer ow, Properties props) void
writeItemToSAX
(ContentHandler saxHandler) void
writeSequence
(OutputStream os, Properties props) void
writeSequence
(Writer ow, Properties props) void
writeSequenceToSAX
(ContentHandler saxHandler)
-
Field Details
-
position
int position -
closed
boolean closed
-
-
Constructor Details
-
SaxonXQForwardSequence
-
-
Method Details
-
getCleanIterator
- Throws:
XPathException
-
clearWarnings
public void clearWarnings()- Specified by:
clearWarnings
in interfaceXQResultSequence
-
getConnection
- Specified by:
getConnection
in interfaceXQResultSequence
-
getWarnings
- Specified by:
getWarnings
in interfaceXQResultSequence
-
getAtomicValue
- Specified by:
getAtomicValue
in interfaceXQItemAccessor
- Throws:
XQException
-
getBoolean
- Specified by:
getBoolean
in interfaceXQItemAccessor
- Throws:
XQException
-
getByte
- Specified by:
getByte
in interfaceXQItemAccessor
- Throws:
XQException
-
getDouble
- Specified by:
getDouble
in interfaceXQItemAccessor
- Throws:
XQException
-
getFloat
- Specified by:
getFloat
in interfaceXQItemAccessor
- Throws:
XQException
-
getInt
- Specified by:
getInt
in interfaceXQItemAccessor
- Throws:
XQException
-
getItemAsStream
- Specified by:
getItemAsStream
in interfaceXQItemAccessor
- Throws:
XQException
-
getItemAsString
- Specified by:
getItemAsString
in interfaceXQItemAccessor
- Throws:
XQException
-
getItemType
- Specified by:
getItemType
in interfaceXQItemAccessor
- Throws:
XQException
-
getLong
- Specified by:
getLong
in interfaceXQItemAccessor
- Throws:
XQException
-
getNode
- Specified by:
getNode
in interfaceXQItemAccessor
- Throws:
XQException
-
getNodeUri
- Specified by:
getNodeUri
in interfaceXQItemAccessor
- Throws:
XQException
-
getObject
- Specified by:
getObject
in interfaceXQItemAccessor
- Throws:
XQException
-
getObject
- Specified by:
getObject
in interfaceXQItemAccessor
- Throws:
XQException
-
getShort
- Specified by:
getShort
in interfaceXQItemAccessor
- Throws:
XQException
-
instanceOf
- Specified by:
instanceOf
in interfaceXQItemAccessor
- Throws:
XQException
-
writeItem
- Specified by:
writeItem
in interfaceXQItemAccessor
- Throws:
XQException
-
writeItem
- Specified by:
writeItem
in interfaceXQItemAccessor
- Throws:
XQException
-
writeItemToSAX
- Specified by:
writeItemToSAX
in interfaceXQItemAccessor
- Throws:
XQException
-
absolute
- Specified by:
absolute
in interfaceXQSequence
- Throws:
XQException
-
afterLast
- Specified by:
afterLast
in interfaceXQSequence
- Throws:
XQException
-
beforeFirst
- Specified by:
beforeFirst
in interfaceXQSequence
- Throws:
XQException
-
close
- Specified by:
close
in interfaceXQSequence
- Throws:
XQException
-
count
- Specified by:
count
in interfaceXQSequence
- Throws:
XQException
-
first
- Specified by:
first
in interfaceXQSequence
- Throws:
XQException
-
getItem
- Specified by:
getItem
in interfaceXQSequence
- Throws:
XQException
-
getPosition
- Specified by:
getPosition
in interfaceXQSequence
- Throws:
XQException
-
getSequenceAsStream
- Specified by:
getSequenceAsStream
in interfaceXQSequence
- Throws:
XQException
-
getSequenceAsString
- Specified by:
getSequenceAsString
in interfaceXQSequence
- Throws:
XQException
-
isAfterLast
- Specified by:
isAfterLast
in interfaceXQSequence
- Throws:
XQException
-
isBeforeFirst
- Specified by:
isBeforeFirst
in interfaceXQSequence
- Throws:
XQException
-
isClosed
public boolean isClosed()- Specified by:
isClosed
in interfaceXQSequence
-
isFirst
- Specified by:
isFirst
in interfaceXQSequence
- Throws:
XQException
-
isLast
- Specified by:
isLast
in interfaceXQSequence
- Throws:
XQException
-
isOnItem
- Specified by:
isOnItem
in interfaceXQSequence
- Throws:
XQException
-
isScrollable
- Specified by:
isScrollable
in interfaceXQSequence
- Throws:
XQException
-
last
- Specified by:
last
in interfaceXQSequence
- Throws:
XQException
-
next
- Specified by:
next
in interfaceXQSequence
- Throws:
XQException
-
previous
- Specified by:
previous
in interfaceXQSequence
- Throws:
XQException
-
relative
- Specified by:
relative
in interfaceXQSequence
- Throws:
XQException
-
writeSequence
- Specified by:
writeSequence
in interfaceXQSequence
- Throws:
XQException
-
writeSequence
- Specified by:
writeSequence
in interfaceXQSequence
- Throws:
XQException
-
writeSequenceToSAX
- Specified by:
writeSequenceToSAX
in interfaceXQSequence
- Throws:
XQException
-