|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object issrg.utils.xml.ChildIterator
public final class ChildIterator
Class implementing the Iterator interface to allow fast iterating over the child nodes of an element.
Constructor Summary | |
---|---|
ChildIterator(org.w3c.dom.Node parent)
Construct the iterator. |
Method Summary | |
---|---|
boolean |
hasNext()
Checks whether this iterator can return an additional element. |
org.w3c.dom.Node |
next()
Returns the next child of the given parent node. |
void |
remove()
The remove operation is not supported. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChildIterator(org.w3c.dom.Node parent)
parent
- a Node whose children will be iterated over. Should not
be null.Method Detail |
---|
public boolean hasNext()
hasNext
in interface java.util.Iterator<org.w3c.dom.Node>
public org.w3c.dom.Node next()
next
in interface java.util.Iterator<org.w3c.dom.Node>
public void remove()
remove
in interface java.util.Iterator<org.w3c.dom.Node>
java.lang.UnsupportedOperationException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |