Class 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
    • 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
      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

      • XObjectImpl

        public XObjectImpl​(org.apache.xpath.objects.XObject xobj)
                    throws java.lang.IllegalArgumentException
        Creates a new XalanXObject.
        Parameters:
        xobj - Xalans native XObject that should be wrapped.
        Throws:
        java.lang.IllegalArgumentException - If the given XObject was null.
    • Method Detail

      • getType

        public int getType()
        Specified by:
        getType in interface XObject
      • bool

        public boolean bool()
                     throws javax.xml.transform.TransformerException
        Description copied from interface: XObject
        Cast result object to a boolean.
        Specified by:
        bool in interface XObject
        Returns:
        The Object casted to boolean
        Throws:
        javax.xml.transform.TransformerException
      • num

        public double num()
                   throws javax.xml.transform.TransformerException
        Description copied from interface: XObject
        Cast result object to a number.
        Specified by:
        num in interface XObject
        Returns:
        The Object casted to double.
        Throws:
        javax.xml.transform.TransformerException
      • str

        public java.lang.String str()
        Description copied from interface: XObject
        Cast result object to a string.
        Specified by:
        str in interface XObject
        Returns:
        The Object casted to string.
      • nodeset

        public org.w3c.dom.NodeList nodeset()
                                     throws javax.xml.transform.TransformerException
        Description copied from interface: XObject
        Cast result object to a nodelist.
        Specified by:
        nodeset in interface XObject
        Returns:
        The Object casted to NodeList.
        Throws:
        javax.xml.transform.TransformerException
      • rtree

        public org.w3c.dom.DocumentFragment rtree()
        Description copied from interface: XObject
        Cast result object to a result tree fragment.
        Specified by:
        rtree in interface XObject
        Returns:
        The Object casted to DocumentFragment.