public class DOMNodeListByTagNameImpl
extends java.lang.Object
implements org.w3c.dom.NodeList
NodeList are accessible via an integral index, starting
from 0.| Modifier and Type | Field and Description |
|---|---|
private int |
currIndex
Current index.
|
private Node |
currNode
Current node.
|
private Node |
first
First node.
|
private int |
maxIndex
Max index (number of nodes).
|
private java.lang.String |
tagName
Tag name.
|
| Modifier | Constructor and Description |
|---|---|
protected |
DOMNodeListByTagNameImpl(Node first,
java.lang.String tagName)
Instantiates a new DOMNodeListByTagName.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getLength() |
org.w3c.dom.Node |
item(int index) |
protected void |
preTraverse(Node node)
Traverse the node list.
|
private Node first
private java.lang.String tagName
private int currIndex
private int maxIndex
private Node currNode
protected DOMNodeListByTagNameImpl(Node first, java.lang.String tagName)
first - first node.tagName - tag namepublic org.w3c.dom.Node item(int index)
item in interface org.w3c.dom.NodeListNodeList.item(int)public int getLength()
getLength in interface org.w3c.dom.NodeListNodeList.getLength()protected void preTraverse(Node node)
node - Node