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 Constructor Description RecursiveNodeIterator(Node aNode)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RecursiveNodeIteratorcreateChildNodeIterator(Node aNode)Create aRecursiveNodeIteratorthat only iterates the child nodes of the given node.booleanhasNext()Nodenext()StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods 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, getCount
-
Methods inherited from interface com.helger.commons.collection.iterate.IIterableIterator
iterator, withFilter, withMapper
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
-
-
-
Method Detail
-
createChildNodeIterator
@Nonnull public static RecursiveNodeIterator createChildNodeIterator(@Nonnull Node aNode)
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.
-
-