|
|
|||||||||||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||||||||||
java.lang.Objectde.lmu.ifi.dbs.elki.utilities.xml.XMLNodeListIterator
public final class XMLNodeListIterator
Simple adapter class to iterate over a DOM tree nodes children.
| Field Summary | |
|---|---|
private int |
index
Store the next node |
private NodeList |
nodelist
The NodeList to iterate over. |
| Constructor Summary | |
|---|---|
XMLNodeListIterator(NodeList nl)
Constructor with first element to iterate over. |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
Check if the next node is defined. |
Iterator<Node> |
iterator()
Iterable interface adapter - clone. |
Node |
next()
Return next and advance iterator. |
void |
remove()
Removal: unsupported operation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private int index
private NodeList nodelist
NodeList to iterate over.
| Constructor Detail |
|---|
public XMLNodeListIterator(NodeList nl)
nl - NodeList to iterate over.| Method Detail |
|---|
public boolean hasNext()
hasNext in interface Iterator<Node>public Node next()
next in interface Iterator<Node>public void remove()
remove in interface Iterator<Node>public Iterator<Node> iterator()
iterator in interface Iterable<Node>
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||