Class XObjectImpl
- java.lang.Object
-
- org.xmldb.common.xml.queries.xalan2.XObjectImpl
-
- All Implemented Interfaces:
java.io.Serializable,XObject
public final class XObjectImpl extends java.lang.Object implements XObject
Wrapper for the Xalan XObject and maybe other XPath implementation specific things.- Version:
- $Revision: 1.1 $ $Date: 2004/05/30 11:54:45 $
- Author:
- SMB
- See Also:
- Serialized Form
-
-
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
Constructors Constructor Description XObjectImpl(org.apache.xpath.objects.XObject xobj)Creates a new XalanXObject.
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Constructor Detail
-
XObjectImpl
public XObjectImpl(org.apache.xpath.objects.XObject xobj) throws java.lang.IllegalArgumentExceptionCreates a new XalanXObject.- Parameters:
xobj- Xalans native XObject that should be wrapped.- Throws:
java.lang.IllegalArgumentException- If the given XObject was null.
-
-
Method Detail
-
bool
public boolean bool() throws javax.xml.transform.TransformerExceptionDescription copied from interface:XObjectCast result object to a boolean.
-
num
public double num() throws javax.xml.transform.TransformerExceptionDescription copied from interface:XObjectCast result object to a number.
-
str
public java.lang.String str()
Description copied from interface:XObjectCast result object to a string.
-
nodeset
public org.w3c.dom.NodeList nodeset() throws javax.xml.transform.TransformerExceptionDescription copied from interface:XObjectCast result object to a nodelist.
-
-