public final class NodelistElementCollectionAdapter
extends java.lang.Object
implements java.util.Iterator<org.w3c.dom.Element>, java.lang.Iterable<org.w3c.dom.Element>
Iterable for Elements in a NodeList.| Constructor and Description |
|---|
NodelistElementCollectionAdapter(org.w3c.dom.NodeList nodelist) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<org.w3c.dom.Element> |
asList()
Walks the iterator and converts to a
LinkedList. |
boolean |
hasNext() |
java.util.Iterator<org.w3c.dom.Element> |
iterator() |
org.w3c.dom.Element |
next() |
void |
remove() |
public NodelistElementCollectionAdapter(org.w3c.dom.NodeList nodelist)
public java.util.Iterator<org.w3c.dom.Element> iterator()
iterator in interface java.lang.Iterable<org.w3c.dom.Element>public java.util.List<org.w3c.dom.Element> asList()
LinkedList.public boolean hasNext()
hasNext in interface java.util.Iterator<org.w3c.dom.Element>public org.w3c.dom.Element next()
next in interface java.util.Iterator<org.w3c.dom.Element>public void remove()
remove in interface java.util.Iterator<org.w3c.dom.Element>