org.exist.dom
Class SingleNodeSet
java.lang.Object
org.exist.dom.NodeSet
org.exist.dom.SingleNodeSet
- All Implemented Interfaces:
- org.w3c.dom.NodeList
- public class SingleNodeSet
- extends NodeSet
A special node set containing just one, single node.
Methods inherited from class org.exist.dom.NodeSet |
add, add, add, addAll, contains, getAncestors, getChildren, getChildren, getContextNodes, getDescendants, getDescendants, getDescendants, getParents, getRange, getSiblings, hasIndex, intersection, nodeHasParent, nodeHasParent, nodeHasParent, nodeHasParent, parentWithChild, parentWithChild, parentWithChild, parentWithChild, remove, union |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SingleNodeSet
public SingleNodeSet(NodeProxy node)
iterator
public java.util.Iterator iterator()
- Specified by:
iterator
in class NodeSet
contains
public boolean contains(DocumentImpl doc,
long nodeId)
- Specified by:
contains
in class NodeSet
contains
public boolean contains(NodeProxy proxy)
- Specified by:
contains
in class NodeSet
addAll
public void addAll(NodeSet other)
- Specified by:
addAll
in class NodeSet
getLength
public int getLength()
- Specified by:
getLength
in interface org.w3c.dom.NodeList
- Specified by:
getLength
in class NodeSet
item
public org.w3c.dom.Node item(int pos)
- Specified by:
item
in interface org.w3c.dom.NodeList
- Specified by:
item
in class NodeSet
get
public NodeProxy get(int pos)
- Specified by:
get
in class NodeSet
get
public NodeProxy get(NodeProxy p)
- Specified by:
get
in class NodeSet
get
public NodeProxy get(DocumentImpl doc,
long nodeId)
- Specified by:
get
in class NodeSet
Copyright (C) Wolfgang Meier. All rights reserved.