public class DOMNodeListImpl
extends java.lang.Object
implements org.w3c.dom.NodeList
The items in the NodeList are accessible via an integral
index, starting from 0.
| Modifier | Constructor and Description |
|---|---|
protected |
DOMNodeListImpl(Node parent) |
| Modifier and Type | Method and Description |
|---|---|
int |
getLength()
The number of nodes in the list.
|
org.w3c.dom.Node |
item(int index)
Returns the
indexth item in the collection. |
protected DOMNodeListImpl(Node parent)
public org.w3c.dom.Node item(int index)
org.w3c.dom.NodeListindexth item in the collection. If
index is greater than or equal to the number of nodes in
the list, this returns null.item in interface org.w3c.dom.NodeListindexth position in the
NodeList, or null if that is not a valid
index.NodeList.item(int)public int getLength()
org.w3c.dom.NodeListlength-1 inclusive.getLength in interface org.w3c.dom.NodeListNodeList.getLength()