electric.xml.xpath
Class NodeSet
java.lang.Object
electric.xml.xpath.NodeSet
- All Implemented Interfaces:
- org.w3c.dom.NodeList
- public class NodeSet
- extends java.lang.Object
- implements org.w3c.dom.NodeList
NodeSet The set of nodes selected by an XPath, ref the
XPath spec. Unlike a DOM NodeList, it's not a live view of the DOM,
and unlike an EXML Nodes/Selections combo, it points directly to
the Nodes in question, which may be an issue on large documents.
- Author:
- webMethods
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NodeSet
public NodeSet()
NodeSet
public NodeSet(Nodes nodes)
- Parameters:
nodes
-
NodeSet
public NodeSet(NodeSet nodeSet)
- Parameters:
nodeSet
-
add
public void add(Node node)
- Parameters:
node
-
add
public void add(NodeSet nodes)
- Parameters:
nodes
-
contains
public boolean contains(Node node)
- Parameters:
node
-
indexOf
public int indexOf(Node node)
- Parameters:
node
-
- Returns:
- index of node in set, -1 if not found.
remove
public void remove(int pos)
- Parameters:
pos
-
getLength
public int getLength()
- Specified by:
getLength
in interface org.w3c.dom.NodeList
item
public org.w3c.dom.Node item(int i)
- Specified by:
item
in interface org.w3c.dom.NodeList
- Parameters:
i
-
clone
protected java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Throws:
java.lang.CloneNotSupportedException
copyright© 2001-2004 by webMethods All Rights Reserved.