net.sf.saxon.xqj
Class SaxonXQItem
java.lang.Object
net.sf.saxon.xqj.Closable
net.sf.saxon.xqj.SaxonXQItem
- All Implemented Interfaces:
- javax.xml.xquery.XQItem, javax.xml.xquery.XQItemAccessor, javax.xml.xquery.XQResultItem, SaxonXQItemAccessor
public class SaxonXQItem
- extends Closable
- implements javax.xml.xquery.XQResultItem, SaxonXQItemAccessor
This Saxon class is used to implement both the XQItem and XQResultItem interfaces in XQJ.
Where the item is not a real XQResultItem, getConnection() will return null.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.xml.xquery.XQItem |
close, isClosed |
dataFactory
SaxonXQDataFactory dataFactory
SaxonXQItem
public SaxonXQItem(Item item,
SaxonXQDataFactory factory)
getConfiguration
Configuration getConfiguration()
getSaxonItem
public Item getSaxonItem()
- Description copied from interface:
SaxonXQItemAccessor
- Get the current item
- Specified by:
getSaxonItem in interface SaxonXQItemAccessor
- Returns:
- the current item
getConnection
public javax.xml.xquery.XQConnection getConnection()
throws javax.xml.xquery.XQException
- Specified by:
getConnection in interface javax.xml.xquery.XQResultItem
- Throws:
javax.xml.xquery.XQException
getAtomicValue
public java.lang.String getAtomicValue()
throws javax.xml.xquery.XQException
- Specified by:
getAtomicValue in interface javax.xml.xquery.XQItemAccessor
- Throws:
javax.xml.xquery.XQException
getBoolean
public boolean getBoolean()
throws javax.xml.xquery.XQException
- Specified by:
getBoolean in interface javax.xml.xquery.XQItemAccessor
- Throws:
javax.xml.xquery.XQException
getByte
public byte getByte()
throws javax.xml.xquery.XQException
- Specified by:
getByte in interface javax.xml.xquery.XQItemAccessor
- Throws:
javax.xml.xquery.XQException
getDouble
public double getDouble()
throws javax.xml.xquery.XQException
- Specified by:
getDouble in interface javax.xml.xquery.XQItemAccessor
- Throws:
javax.xml.xquery.XQException
getFloat
public float getFloat()
throws javax.xml.xquery.XQException
- Specified by:
getFloat in interface javax.xml.xquery.XQItemAccessor
- Throws:
javax.xml.xquery.XQException
getInt
public int getInt()
throws javax.xml.xquery.XQException
- Specified by:
getInt in interface javax.xml.xquery.XQItemAccessor
- Throws:
javax.xml.xquery.XQException
getItemAsStream
public javax.xml.stream.XMLStreamReader getItemAsStream()
throws javax.xml.xquery.XQException
- Specified by:
getItemAsStream in interface javax.xml.xquery.XQItemAccessor
- Throws:
javax.xml.xquery.XQException
getItemAsString
public java.lang.String getItemAsString(java.util.Properties props)
throws javax.xml.xquery.XQException
- Specified by:
getItemAsString in interface javax.xml.xquery.XQItemAccessor
- Throws:
javax.xml.xquery.XQException
getItemType
public javax.xml.xquery.XQItemType getItemType()
throws javax.xml.xquery.XQException
- Specified by:
getItemType in interface javax.xml.xquery.XQItemAccessor
- Throws:
javax.xml.xquery.XQException
getLong
public long getLong()
throws javax.xml.xquery.XQException
- Specified by:
getLong in interface javax.xml.xquery.XQItemAccessor
- Throws:
javax.xml.xquery.XQException
getNode
public org.w3c.dom.Node getNode()
throws javax.xml.xquery.XQException
- Specified by:
getNode in interface javax.xml.xquery.XQItemAccessor
- Throws:
javax.xml.xquery.XQException
getNodeUri
public java.net.URI getNodeUri()
throws javax.xml.xquery.XQException
- Specified by:
getNodeUri in interface javax.xml.xquery.XQItemAccessor
- Throws:
javax.xml.xquery.XQException
getObject
public java.lang.Object getObject()
throws javax.xml.xquery.XQException
- Specified by:
getObject in interface javax.xml.xquery.XQItemAccessor
- Throws:
javax.xml.xquery.XQException
getShort
public short getShort()
throws javax.xml.xquery.XQException
- Specified by:
getShort in interface javax.xml.xquery.XQItemAccessor
- Throws:
javax.xml.xquery.XQException
instanceOf
public boolean instanceOf(javax.xml.xquery.XQItemType type)
throws javax.xml.xquery.XQException
- Specified by:
instanceOf in interface javax.xml.xquery.XQItemAccessor
- Throws:
javax.xml.xquery.XQException
writeItem
public void writeItem(java.io.OutputStream os,
java.util.Properties props)
throws javax.xml.xquery.XQException
- Specified by:
writeItem in interface javax.xml.xquery.XQItemAccessor
- Throws:
javax.xml.xquery.XQException
writeItem
public void writeItem(java.io.Writer ow,
java.util.Properties props)
throws javax.xml.xquery.XQException
- Specified by:
writeItem in interface javax.xml.xquery.XQItemAccessor
- Throws:
javax.xml.xquery.XQException
writeItemToResult
public void writeItemToResult(javax.xml.transform.Result result)
throws javax.xml.xquery.XQException
- Specified by:
writeItemToResult in interface javax.xml.xquery.XQItemAccessor
- Throws:
javax.xml.xquery.XQException
writeItemToSAX
public void writeItemToSAX(org.xml.sax.ContentHandler saxHandler)
throws javax.xml.xquery.XQException
- Specified by:
writeItemToSAX in interface javax.xml.xquery.XQItemAccessor
- Throws:
javax.xml.xquery.XQException