Package net.sf.saxon.xqj
Class SaxonXQItem
- java.lang.Object
-
- net.sf.saxon.xqj.SaxonXQItem
-
- All Implemented Interfaces:
XQItem
,XQItemAccessor
,XQResultItem
public class SaxonXQItem extends java.lang.Object implements XQResultItem
-
-
Constructor Summary
Constructors Constructor Description SaxonXQItem(Item item, Configuration config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearWarnings()
void
close()
java.lang.String
getAtomicValue()
boolean
getBoolean()
byte
getByte()
(package private) Configuration
getConfiguration()
XQConnection
getConnection()
double
getDouble()
float
getFloat()
int
getInt()
(package private) Item
getItem()
javax.xml.stream.XMLStreamReader
getItemAsStream()
java.lang.String
getItemAsString()
java.lang.String
getItemAsString(java.util.Properties props)
XQItemType
getItemType()
long
getLong()
org.w3c.dom.Node
getNode()
java.net.URI
getNodeUri()
java.lang.Object
getObject()
java.lang.Object
getObject(XQCommonHandler handler)
short
getShort()
XQWarning
getWarnings()
boolean
instanceOf(XQItemType type)
boolean
isClosed()
(package private) void
setConnection(SaxonXQConnection connection)
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)
-
-
-
Constructor Detail
-
SaxonXQItem
public SaxonXQItem(Item item, Configuration config)
-
-
Method Detail
-
getConfiguration
Configuration getConfiguration()
-
getItem
Item getItem()
-
setConnection
void setConnection(SaxonXQConnection connection)
-
clearWarnings
public void clearWarnings()
- Specified by:
clearWarnings
in interfaceXQResultItem
-
getConnection
public XQConnection getConnection() throws XQException
- Specified by:
getConnection
in interfaceXQResultItem
- Throws:
XQException
-
getWarnings
public XQWarning getWarnings() throws XQException
- Specified by:
getWarnings
in interfaceXQResultItem
- Throws:
XQException
-
close
public void close() throws XQException
- Specified by:
close
in interfaceXQItem
- 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
-
getItemAsString
public java.lang.String getItemAsString(java.util.Properties props) throws XQException
- 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
-
-