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.
|
Node |
item(int index)
Returns the
index th item in the collection. |
protected void |
preTraverse(Node node) |
protected DOMNodeListByTagNameImpl(Node first, java.lang.String tagName)
public Node item(int index)
NodeList
index
th 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 NodeList
index
th position in the
NodeList
, or null
if that is not a valid
index.NodeList.item(int)
public int getLength()
NodeList
length-1
inclusive.getLength
in interface NodeList
NodeList.getLength()
protected void preTraverse(Node node)