Package org.xmldb.common.xml.queries
Interface XObject
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
XObjectImpl,XObjectImpl
public interface XObject extends java.io.Serializable- Version:
- $Revision: 1.1 $ $Date: 2004/05/30 11:54:45 $
- Author:
- SMB
-
-
Field Summary
Fields Modifier and Type Field Description static intCLASS_BOOLEANResult type is a boolean.static intCLASS_NODESETResult type is a NodeSet.static intCLASS_NULLResult is null.static intCLASS_NUMBERResult type is a Integer.static intCLASS_RTREEFRAGResult type is a Document Fragment.static intCLASS_STRINGResult type is a String.static intCLASS_UNKNOWNResult type is not known.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanbool()Cast result object to a boolean.intgetType()org.w3c.dom.NodeListnodeset()Cast result object to a nodelist.doublenum()Cast result object to a number.org.w3c.dom.DocumentFragmentrtree()Cast result object to a result tree fragment.java.lang.Stringstr()Cast result object to a string.
-
-
-
Field Detail
-
CLASS_NULL
static final int CLASS_NULL
Result is null.- See Also:
- Constant Field Values
-
CLASS_UNKNOWN
static final int CLASS_UNKNOWN
Result type is not known.- See Also:
- Constant Field Values
-
CLASS_BOOLEAN
static final int CLASS_BOOLEAN
Result type is a boolean.- See Also:
- Constant Field Values
-
CLASS_NUMBER
static final int CLASS_NUMBER
Result type is a Integer.- See Also:
- Constant Field Values
-
CLASS_STRING
static final int CLASS_STRING
Result type is a String.- See Also:
- Constant Field Values
-
CLASS_NODESET
static final int CLASS_NODESET
Result type is a NodeSet.- See Also:
- Constant Field Values
-
CLASS_RTREEFRAG
static final int CLASS_RTREEFRAG
Result type is a Document Fragment.- See Also:
- Constant Field Values
-
-
Method Detail
-
getType
int getType() throws java.lang.Exception- Throws:
java.lang.Exception
-
bool
boolean bool() throws java.lang.ExceptionCast result object to a boolean.- Returns:
- The Object casted to boolean
- Throws:
org.xml.sax.SAXException- If any error occurs.java.lang.Exception
-
num
double num() throws java.lang.ExceptionCast result object to a number.- Returns:
- The Object casted to double.
- Throws:
org.xml.sax.SAXException- If any error occurs.java.lang.Exception
-
str
java.lang.String str() throws java.lang.ExceptionCast result object to a string.- Returns:
- The Object casted to string.
- Throws:
java.lang.Exception
-
nodeset
org.w3c.dom.NodeList nodeset() throws java.lang.ExceptionCast result object to a nodelist.- Returns:
- The Object casted to NodeList.
- Throws:
org.xml.sax.SAXException- If any error occurs.java.lang.Exception
-
rtree
org.w3c.dom.DocumentFragment rtree() throws java.lang.ExceptionCast result object to a result tree fragment.- Returns:
- The Object casted to DocumentFragment.
- Throws:
java.lang.Exception
-
-