org.apache.xpath.objects

Class XNodeSetForDOM

Implemented Interfaces:
Cloneable, DTMIterator, ExpressionNode, PathComponent, Serializable, SourceLocator, XPathVisitable

public class XNodeSetForDOM
extends XNodeSet

This class overrides the XNodeSet#object() method to provide the original Node object, NodeList object, or NodeIterator.

See Also:
Serialized Form

Field Summary

Fields inherited from class org.apache.xpath.objects.XObject

CLASS_BOOLEAN, CLASS_NODESET, CLASS_NULL, CLASS_NUMBER, CLASS_RTREEFRAG, CLASS_STRING, CLASS_UNKNOWN, CLASS_UNRESOLVEDVARIABLE

Fields inherited from interface org.apache.xml.dtm.DTMIterator

FILTER_ACCEPT, FILTER_REJECT, FILTER_SKIP

Constructor Summary

XNodeSetForDOM(XNodeSet val)
Construct a XNodeSet object.
XNodeSetForDOM(Node node, DTMManager dtmMgr)
XNodeSetForDOM(NodeList nodeList, XPathContext xctxt)
XNodeSetForDOM(NodeIterator nodeIter, XPathContext xctxt)

Method Summary

NodeList
nodelist()
Cast result object to a nodelist.
NodeIterator
nodeset()
Cast result object to a nodelist.
Object
object()
Return the original DOM object that the user passed in.

Methods inherited from class org.apache.xpath.objects.XNodeSet

appendToFsb, bool, boolWithSideEffects, compare, dispatchCharactersEvents, equals, getFresh, getNumberFromNode, getStringFromNode, getType, getTypeString, greaterThan, greaterThanOrEqual, iter, iterRaw, lessThan, lessThanOrEqual, mutableNodeset, nodelist, nodeset, notEquals, num, numWithSideEffects, object, release, str, xstr

Methods inherited from class org.apache.xpath.axes.NodeSequence

allowDetachToRelease, clone, cloneWithReset, detach, fixupVariables, getAnalysisBits, getAxis, getContainedIter, getCurrentNode, getCurrentPos, getDTM, getDTMManager, getExpandEntityReferences, getLength, getRoot, getWhatToShow, hasCache, isDocOrdered, isFresh, isMutable, item, nextNode, previousNode, reset, runTo, setCurrentPos, setItem, setIter, setRoot, setShouldCacheNodes

Methods inherited from class org.apache.xpath.objects.XObject

allowDetachToRelease, appendToFsb, bool, boolWithSideEffects, callVisitors, castToType, create, create, deepEquals, destruct, detach, dispatchCharactersEvents, equals, execute, fixupVariables, getFresh, getType, getTypeString, greaterThan, greaterThanOrEqual, iter, lessThan, lessThanOrEqual, mutableNodeset, nodelist, nodeset, notEquals, num, numWithSideEffects, object, reset, rtf, rtf, rtree, rtree, str, toString, xstr

Methods inherited from class org.apache.xpath.Expression

asIterator, asIteratorRaw, asNode, assertion, bool, canTraverseOutsideSubtree, deepEquals, error, execute, execute, execute, execute, executeCharsToContentHandler, exprAddChild, exprGetChild, exprGetNumChildren, exprGetParent, exprSetParent, fixupVariables, getColumnNumber, getExpressionOwner, getLineNumber, getPublicId, getSystemId, isNodesetExpr, isStableNumber, num, warn, xstr

Constructor Details

XNodeSetForDOM

public XNodeSetForDOM(XNodeSet val)
Construct a XNodeSet object.

Parameters:
val - Value of the XNodeSet object


XNodeSetForDOM

public XNodeSetForDOM(Node node,
                      DTMManager dtmMgr)


XNodeSetForDOM

public XNodeSetForDOM(NodeList nodeList,
                      XPathContext xctxt)


XNodeSetForDOM

public XNodeSetForDOM(NodeIterator nodeIter,
                      XPathContext xctxt)

Method Details

nodelist

public NodeList nodelist()
            throws TransformerException
Cast result object to a nodelist. Always issues an error.
Overrides:
nodelist in interface XNodeSet

Returns:
null

Throws:
TransformerException -


nodeset

public NodeIterator nodeset()
            throws TransformerException
Cast result object to a nodelist. Always issues an error.
Overrides:
nodeset in interface XNodeSet

Returns:
null

Throws:
TransformerException -


object

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

Returns:
The object that this class wraps


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