|
XML:DB API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xmldb.common.xml.queries.xalan.XObjectImpl
Wrapper for the Xalan XObject and maybe other XPath implementation specific things.
Field Summary |
Fields inherited from interface org.xmldb.common.xml.queries.XObject |
CLASS_BOOLEAN, CLASS_NODESET, CLASS_NULL, CLASS_NUMBER, CLASS_RTREEFRAG, CLASS_STRING, CLASS_UNKNOWN |
Constructor Summary | |
XObjectImpl(org.apache.xalan.xpath.XObject xobj)
Creates a new XalanXObject. |
Method Summary | |
boolean |
bool()
Cast result object to a boolean. |
int |
getType()
|
org.w3c.dom.NodeList |
nodeset()
Cast result object to a nodelist. |
double |
num()
Cast result object to a number. |
org.w3c.dom.DocumentFragment |
rtree()
Cast result object to a result tree fragment. |
java.lang.String |
str()
Cast result object to a string. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XObjectImpl(org.apache.xalan.xpath.XObject xobj) throws java.lang.IllegalArgumentException
xobj
- Xalans native XObject that should be wrapped.
java.lang.IllegalArgumentException
- If the given XObject was null.Method Detail |
public int getType()
getType
in interface XObject
public boolean bool() throws org.xml.sax.SAXException
XObject
bool
in interface XObject
org.xml.sax.SAXException
- If any error occurs.public double num() throws org.xml.sax.SAXException
XObject
num
in interface XObject
org.xml.sax.SAXException
- If any error occurs.public java.lang.String str()
XObject
str
in interface XObject
public org.w3c.dom.NodeList nodeset() throws org.xml.sax.SAXException
XObject
nodeset
in interface XObject
org.xml.sax.SAXException
- If any error occurs.public org.w3c.dom.DocumentFragment rtree()
XObject
rtree
in interface XObject
|
XML:DB API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |