org.apache.xpath.objects

Class XNodeSetForDOM

public class XNodeSetForDOM extends XNodeSet

This class overrides the XNodeSet#object() method to provide the original Node object, NodeList object, or NodeIterator.
Constructor Summary
XNodeSetForDOM(Node node, DTMManager dtmMgr)
XNodeSetForDOM(XNodeSet val)
Construct a XNodeSet object.
XNodeSetForDOM(NodeList nodeList, XPathContext xctxt)
XNodeSetForDOM(NodeIterator nodeIter, XPathContext xctxt)
Method Summary
NodeListnodelist()
Cast result object to a nodelist.
NodeIteratornodeset()
Cast result object to a nodelist.
Objectobject()
Return the original DOM object that the user passed in.

Constructor Detail

XNodeSetForDOM

public XNodeSetForDOM(Node node, DTMManager dtmMgr)

XNodeSetForDOM

public XNodeSetForDOM(XNodeSet val)
Construct a XNodeSet object.

Parameters: val Value of the XNodeSet object

XNodeSetForDOM

public XNodeSetForDOM(NodeList nodeList, XPathContext xctxt)

XNodeSetForDOM

public XNodeSetForDOM(NodeIterator nodeIter, XPathContext xctxt)

Method Detail

nodelist

public NodeList nodelist()
Cast result object to a nodelist. Always issues an error.

Returns: null

Throws: javax.xml.transform.TransformerException

nodeset

public NodeIterator nodeset()
Cast result object to a nodelist. Always issues an error.

Returns: null

Throws: javax.xml.transform.TransformerException

object

public Object object()
Return the original DOM object that the user passed in. For use primarily by the extension mechanism.

Returns: The object that this class wraps

Copyright B) 2005 Apache XML Project. All Rights Reserved.