|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object issrg.utils.xml.IterableChildList
public final class IterableChildList
Class implementing the Iterable interface to allow using the foreach construct rather than the clumsy NodeList approach to iterate over the children of a particular node.
Constructor Summary | |
---|---|
IterableChildList(org.w3c.dom.Node parent)
Constructs an IterableChildList object. |
Method Summary | |
---|---|
java.util.Iterator<org.w3c.dom.Node> |
iterator()
Returns an Iterator object to allow iterating over the child nodes of the parent element given in the constructor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IterableChildList(org.w3c.dom.Node parent)
parent
- the Node over whose children will be iterated.Method Detail |
---|
public java.util.Iterator<org.w3c.dom.Node> iterator()
iterator
in interface java.lang.Iterable<org.w3c.dom.Node>
ChildIterator
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |