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 int
CLASS_BOOLEAN
Result type is a boolean.static int
CLASS_NODESET
Result type is a NodeSet.static int
CLASS_NULL
Result is null.static int
CLASS_NUMBER
Result type is a Integer.static int
CLASS_RTREEFRAG
Result type is a Document Fragment.static int
CLASS_STRING
Result type is a String.static int
CLASS_UNKNOWN
Result type is not known.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.
-
-
-
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.Exception
Cast 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.Exception
Cast 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.Exception
Cast result object to a string.- Returns:
- The Object casted to string.
- Throws:
java.lang.Exception
-
nodeset
org.w3c.dom.NodeList nodeset() throws java.lang.Exception
Cast 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.Exception
Cast result object to a result tree fragment.- Returns:
- The Object casted to DocumentFragment.
- Throws:
java.lang.Exception
-
-