public class DOMNodeListByTagNameImpl
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 |
DOMNodeListByTagNameImpl(Node first,
java.lang.String tagName) |
| 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 void |
preTraverse(Node node) |
protected DOMNodeListByTagNameImpl(Node first, java.lang.String tagName)
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()protected void preTraverse(Node node)