javax.xml.xquery
Interface XQItemAccessor

All Known Subinterfaces:
XQCachedItem, XQCachedSequence, XQItem, XQResultItem, XQResultSequence, XQSequence
All Known Implementing Classes:
XQAbstractResultItem, XQAbstractResultSequence, XQResultItemImpl, XQResultSequenceImpl

public interface XQItemAccessor

Author:
Michael Stark

Method Summary
 java.util.Calendar getCalendar()
          Gets a calendar value.
 double getDouble()
          Gets a double value.
 int getInt()
          Gets an integer value.
 XQItemType getItemType()
          Gets the type of the the item.
 java.lang.String getLexicalValue()
          Gets the lexical string representation of the item.
 long getLong()
          Gets a long value.
 org.w3c.dom.Node getNode()
          Gets the item as a DOM node (if the current item is known to be a node).
 java.net.URI getNodeUri()
          Gets the URI associated with the content of this item.
 java.lang.Object getObject()
          Returns a generic java object corresponding to the XQuery type.
 java.lang.Object getObject(XQCommonHandler hdlr)
          Returns a java object corresponding to the XQuery type using the XQCommonhandler passed in.
 java.lang.String getString()
          Gets a string value.
 javax.xml.stream.XMLStreamReader getXMLStreamReader()
          Gets the current item as an XMLStreamReader object.
 boolean instanceOf(XQItemType type)
          Checks if the item is an instance of the given type (exact or subset of given type).
 void writeSAX(org.xml.sax.ContentHandler saxhdlr)
          Writes the current item to the SAX stream.
 void writeXMLStream(javax.xml.stream.XMLStreamWriter writer)
          Writes the current item to the XMLStreamWriter stream.
 

Method Detail

getCalendar

java.util.Calendar getCalendar()
                               throws XQException
Gets a calendar value.

Throws:
XQException

getDouble

double getDouble()
                 throws XQException
Gets a double value.

Throws:
XQException

getInt

int getInt()
           throws XQException
Gets an integer value.

Throws:
XQException

getItemType

XQItemType getItemType()
                       throws XQException
Gets the type of the the item.

Throws:
XQException

getLexicalValue

java.lang.String getLexicalValue()
                                 throws XQException
Gets the lexical string representation of the item.

Throws:
XQException

getLong

long getLong()
             throws XQException
Gets a long value.

Throws:
XQException

getNode

org.w3c.dom.Node getNode()
                         throws XQException
Gets the item as a DOM node (if the current item is known to be a node).

Throws:
XQException

getNodeUri

java.net.URI getNodeUri()
                        throws XQException
Gets the URI associated with the content of this item.

Throws:
XQException

getObject

java.lang.Object getObject()
                           throws XQException
Returns a generic java object corresponding to the XQuery type.

Throws:
XQException

getObject

java.lang.Object getObject(XQCommonHandler hdlr)
                           throws XQException
Returns a java object corresponding to the XQuery type using the XQCommonhandler passed in.

Throws:
XQException

getString

java.lang.String getString()
                           throws XQException
Gets a string value.

Throws:
XQException

getXMLStreamReader

javax.xml.stream.XMLStreamReader getXMLStreamReader()
                                                    throws XQException
Gets the current item as an XMLStreamReader object.

Throws:
XQException

instanceOf

boolean instanceOf(XQItemType type)
                   throws XQException
Checks if the item is an instance of the given type (exact or subset of given type).

Throws:
XQException

writeSAX

void writeSAX(org.xml.sax.ContentHandler saxhdlr)
              throws XQException
Writes the current item to the SAX stream.

Throws:
XQException

writeXMLStream

void writeXMLStream(javax.xml.stream.XMLStreamWriter writer)
                    throws XQException
Writes the current item to the XMLStreamWriter stream.

Throws:
XQException