de.fraunhofer.ipsi.ipsixq.api.impl
Class XQResultItemImpl

java.lang.Object
  extended by de.fraunhofer.ipsi.ipsixq.api.impl.XQAbstractResultItem
      extended by de.fraunhofer.ipsi.ipsixq.api.impl.XQResultItemImpl
All Implemented Interfaces:
XQItem, XQItemAccessor, XQResultItem

public class XQResultItemImpl
extends XQAbstractResultItem

Author:
Michael Stark

Constructor Summary
XQResultItemImpl(Item item)
           
 
Method Summary
 double getDouble()
          Gets a double value.
 int getInt()
          Gets an integer value.
 XQItemType getItemType()
          Gets the type of the 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.lang.String getString()
          Gets a string value.
 boolean instanceOf(XQItemType type)
          Checks if the item is an instance of the given type (exact or subset of given type).
 
Methods inherited from class de.fraunhofer.ipsi.ipsixq.api.impl.XQAbstractResultItem
clearWarnings, close, getCalendar, getConnection, getLexicalValue, getNodeUri, getObject, getObject, getWarnings, getXMLStreamReader, isClosed, writeSAX, writeXMLStream
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XQResultItemImpl

public XQResultItemImpl(Item item)
Method Detail

getDouble

public double getDouble()
                 throws XQException
Description copied from interface: XQItemAccessor
Gets a double value.

Specified by:
getDouble in interface XQItemAccessor
Overrides:
getDouble in class XQAbstractResultItem
Throws:
XQException

getInt

public int getInt()
           throws XQException
Description copied from interface: XQItemAccessor
Gets an integer value.

Specified by:
getInt in interface XQItemAccessor
Overrides:
getInt in class XQAbstractResultItem
Throws:
XQException

getLong

public long getLong()
             throws XQException
Description copied from interface: XQItemAccessor
Gets a long value.

Specified by:
getLong in interface XQItemAccessor
Overrides:
getLong in class XQAbstractResultItem
Throws:
XQException

getString

public java.lang.String getString()
                           throws XQException
Description copied from interface: XQItemAccessor
Gets a string value.

Specified by:
getString in interface XQItemAccessor
Overrides:
getString in class XQAbstractResultItem
Throws:
XQException

getNode

public org.w3c.dom.Node getNode()
                         throws XQException
Description copied from interface: XQItemAccessor
Gets the item as a DOM node (if the current item is known to be a node).

Specified by:
getNode in interface XQItemAccessor
Overrides:
getNode in class XQAbstractResultItem
Throws:
XQException

getItemType

public XQItemType getItemType()
                       throws XQException
Description copied from interface: XQItemAccessor
Gets the type of the the item.

Specified by:
getItemType in interface XQItemAccessor
Overrides:
getItemType in class XQAbstractResultItem
Throws:
XQException

instanceOf

public boolean instanceOf(XQItemType type)
                   throws XQException
Description copied from interface: XQItemAccessor
Checks if the item is an instance of the given type (exact or subset of given type).

Specified by:
instanceOf in interface XQItemAccessor
Overrides:
instanceOf in class XQAbstractResultItem
Throws:
XQException