Package io.keikai.doc.collab.types
Class YXmlTreeWalker
- java.lang.Object
-
- io.keikai.doc.collab.types.YXmlTreeWalker
-
public class YXmlTreeWalker extends java.lang.ObjectRepresents a subset of the nodes of a YXmlElement / YXmlFragment and a position within them.Can be created with
YXmlFragment.createTreeWalker(java.util.function.Function<io.keikai.doc.collab.types.AbstractType, java.lang.Boolean>)
-
-
Constructor Summary
Constructors Constructor Description YXmlTreeWalker(AbstractType root, java.util.function.Function<AbstractType,java.lang.Boolean> filter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description YXmlTreeWalkerResultnext()Get the next node.
-
-
-
Constructor Detail
-
YXmlTreeWalker
public YXmlTreeWalker(AbstractType root, java.util.function.Function<AbstractType,java.lang.Boolean> filter)
- Parameters:
root- The root element to start walking from.filter- The filter function to apply on the nodes.
-
-
Method Detail
-
next
public YXmlTreeWalkerResult next()
Get the next node.- Returns:
- The next node.
-
-