Package org.xmldb.common.xml.queries
Interface XObject
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
XObjectImpl
,XObjectImpl
- Version:
- $Revision: 1.1 $ $Date: 2004/05/30 11:54:45 $
- Author:
- SMB
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Result type is a boolean.static final int
Result type is a NodeSet.static final int
Result is null.static final int
Result type is a Integer.static final int
Result type is a Document Fragment.static final int
Result type is a String.static final int
Result type is not known. -
Method Summary
-
Field Details
-
CLASS_NULL
static final int CLASS_NULLResult is null.- See Also:
-
CLASS_UNKNOWN
static final int CLASS_UNKNOWNResult type is not known.- See Also:
-
CLASS_BOOLEAN
static final int CLASS_BOOLEANResult type is a boolean.- See Also:
-
CLASS_NUMBER
static final int CLASS_NUMBERResult type is a Integer.- See Also:
-
CLASS_STRING
static final int CLASS_STRINGResult type is a String.- See Also:
-
CLASS_NODESET
static final int CLASS_NODESETResult type is a NodeSet.- See Also:
-
CLASS_RTREEFRAG
static final int CLASS_RTREEFRAGResult type is a Document Fragment.- See Also:
-
-
Method Details
-
getType
- Throws:
Exception
-
bool
Cast result object to a boolean.- Returns:
- The Object casted to boolean
- Throws:
SAXException
- If any error occurs.Exception
-
num
Cast result object to a number.- Returns:
- The Object casted to double.
- Throws:
SAXException
- If any error occurs.Exception
-
str
Cast result object to a string.- Returns:
- The Object casted to string.
- Throws:
Exception
-
nodeset
Cast result object to a nodelist.- Returns:
- The Object casted to NodeList.
- Throws:
SAXException
- If any error occurs.Exception
-
rtree
Cast result object to a result tree fragment.- Returns:
- The Object casted to DocumentFragment.
- Throws:
Exception
-