|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ozoneDB.xml.dom.NodeListImpl
Used to traverse childs of a node. NodeList
is a live
list, meaning that any change to the node is reflected in this list and vice
versa.
The functionality of NodeList is implemented in NodeImpl
itself
using a double-linked list. This class is only provided to hide the
interface of NodeImpl
.
This class is not entirely thread-safe due to thread-safe limitations on
NodeImpl
itself.
NodeImpl
,
Serialized FormField Summary | |
protected java.util.Vector |
_nodes
|
protected org.w3c.dom.Node |
_rootNode
The node which this list traverses. |
Constructor Summary | |
NodeListImpl(org.w3c.dom.Node node)
Constructor requires node. |
Method Summary | |
int |
getLength()
Return the number of childs in this node. |
org.w3c.dom.Node |
item(int index)
Return the nth child in the node (zero based). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected org.w3c.dom.Node _rootNode
protected java.util.Vector _nodes
Constructor Detail |
public NodeListImpl(org.w3c.dom.Node node)
node
- Node to traverseMethod Detail |
public org.w3c.dom.Node item(int index)
item
in interface org.w3c.dom.NodeList
index
- Index of child to return (zero based)
NodeImpl.getChild(int)
public int getLength()
getLength
in interface org.w3c.dom.NodeList
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |