Package elki.utilities.xml
Class XMLNodeIterator
- java.lang.Object
-
- elki.utilities.xml.XMLNodeIterator
-
- All Implemented Interfaces:
java.util.Iterator<org.w3c.dom.Node>
public final class XMLNodeIterator extends java.lang.Object implements java.util.Iterator<org.w3c.dom.Node>
Simple adapter class to iterate over a DOM tree nodes children.- Since:
- 0.2
- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description private org.w3c.dom.Node
next
Store the next node
-
Constructor Summary
Constructors Constructor Description XMLNodeIterator(org.w3c.dom.Node first)
Constructor with first element to iterate over.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
Check if the next node is defined.org.w3c.dom.Node
next()
Return next and advance iterator.
-