Package net.sf.saxon.xqj
Class SaxonXQSequence
java.lang.Object
net.sf.saxon.xqj.SaxonXQSequence
- All Implemented Interfaces:
XQItemAccessor
,XQResultSequence
,XQSequence
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
ConstructorsConstructorDescriptionSaxonXQSequence
(Value value, Configuration config) SaxonXQSequence
(Value value, Configuration config, SaxonXQConnection connection) -
Method Summary
Modifier and TypeMethodDescriptionboolean
absolute
(int itempos) void
void
void
void
close()
int
count()
boolean
first()
boolean
byte
getByte()
(package private) Configuration
double
float
getFloat()
int
getInt()
getItem()
long
getLong()
getNode()
getObject
(XQCommonHandler handler) int
getSequenceAsString
(Properties props) short
getShort()
(package private) Value
getValue()
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)
-
Constructor Details
-
SaxonXQSequence
SaxonXQSequence(Value value, Configuration config) -
SaxonXQSequence
SaxonXQSequence(Value value, Configuration config, SaxonXQConnection connection)
-
-
Method Details
-
getValue
Value getValue() -
getConfiguration
Configuration getConfiguration() -
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
-
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
-
clearWarnings
public void clearWarnings()- Specified by:
clearWarnings
in interfaceXQResultSequence
-
getConnection
- Specified by:
getConnection
in interfaceXQResultSequence
-
getWarnings
- Specified by:
getWarnings
in interfaceXQResultSequence
-