protected class DOMUtilsImplBase.NodeListImpl
extends java.lang.Object
implements org.w3c.dom.NodeList
NodeList interface. Used in method DOMUtilsImplBase.listToNodeList(java.util.List).| Modifier and Type | Field and Description |
|---|---|
java.util.List |
list_
The list collection backing this implementation.
|
| Constructor and Description |
|---|
NodeListImpl(java.util.List list)
Constructs a
NodeList from the specified list collection. |
| Modifier and Type | Method and Description |
|---|---|
int |
getLength()
Gets the number of nodes in the node list.
|
org.w3c.dom.Node |
item(int position)
Gets the node at the specified position.
|
public NodeListImpl(java.util.List list)
NodeList from the specified list collection.list - The list collection, form which the NodeList should be constructed.public int getLength()
getLength in interface org.w3c.dom.NodeListpublic org.w3c.dom.Node item(int position)
item in interface org.w3c.dom.NodeListposition - Specifies the position of the requested node in the node list.null, if the specified position is
invalid.