public class NodeListImpl
extends java.lang.Object
implements org.w3c.dom.NodeList
| Constructor and Description |
|---|
NodeListImpl()
Creates an empty node list.
|
NodeListImpl(java.util.Collection<org.w3c.dom.Node> collection)
Creates a node list from a collection.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(org.w3c.dom.Node node)
Adds an item.
|
int |
getLength()
Returns the number of items in the list.
|
org.w3c.dom.Node |
item(int index)
Returns the item at the index.
|
java.util.Iterator<org.w3c.dom.Node> |
iterator() |
java.lang.String |
toString() |
public NodeListImpl()
public NodeListImpl(java.util.Collection<org.w3c.dom.Node> collection)
public void add(org.w3c.dom.Node node)
public org.w3c.dom.Node item(int index)
item in interface org.w3c.dom.NodeListpublic int getLength()
getLength in interface org.w3c.dom.NodeListpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Iterator<org.w3c.dom.Node> iterator()