Package com.helger.xml
Class RecursiveNodeIterator
java.lang.Object
com.helger.xml.RecursiveNodeIterator
- All Implemented Interfaces:
com.helger.commons.collection.impl.ICommonsIterable<Node>,com.helger.commons.collection.iterate.IIterableIterator<Node>,Iterable<Node>,Iterator<Node>
public class RecursiveNodeIterator
extends Object
implements com.helger.commons.collection.iterate.IIterableIterator<Node>
Iterate all children of the start node, but NOT the start node itself.
- Since:
- 10.1.7
- Author:
- Philip Helger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RecursiveNodeIteratorcreateChildNodeIterator(Node aNode) Create aRecursiveNodeIteratorthat only iterates the child nodes of the given node.booleanhasNext()next()toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.helger.commons.collection.impl.ICommonsIterable
containsAny, containsNone, containsOnly, findAll, findAllInstanceOf, findAllMapped, findAllMapped, findAllMapped, findFirst, findFirst, findFirstIndex, findFirstMapped, findFirstMapped, findLastIndex, forEachBreakable, forEachByIndex, forEachThrowing, getCount, getCountMethods inherited from interface com.helger.commons.collection.iterate.IIterableIterator
iterator, withFilter, withMapperMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
RecursiveNodeIterator
-
-
Method Details
-
hasNext
public boolean hasNext() -
next
-
toString
-
createChildNodeIterator
Create aRecursiveNodeIteratorthat only iterates the child nodes of the given node.- Parameters:
aNode- The node to iterate the children from. May not benull.- Returns:
- Never
null.
-