Interface TraverseAndLeafsHandler<I,O,L>
- Type Parameters:
I- type of current depth items to iterate over.O- type of the deeper depth items to iterate over.L- type of the leaf object.
- All Superinterfaces:
TraverseHandler<I,O>
- All Known Implementing Classes:
DslAttrHandler,DsParamHandler
Describes paths to iterate over and explains how to construct leaf. Make possible to iterate over
tree of different types of objects.
-
Method Summary
Modifier and TypeMethodDescriptionInvoked when iteration goes upper to parents in a tree hierarchy.constructLeaf(I leaf) May return null if leaf should be filtered.forwardToNewParent(I parent) Invoked when iteration goes deeper to children which becomes new parent in a tree hierarchy.Methods inherited from interface org.qubership.atp.dataset.model.utils.tree.TraverseHandler
getChildren
-
Method Details
-
backToPreviousParent
Description copied from interface:TraverseHandlerInvoked when iteration goes upper to parents in a tree hierarchy.- Specified by:
backToPreviousParentin interfaceTraverseHandler<I,O> - Returns:
- handler of previous depth.
-
forwardToNewParent
Description copied from interface:TraverseHandlerInvoked when iteration goes deeper to children which becomes new parent in a tree hierarchy.- Specified by:
forwardToNewParentin interfaceTraverseHandler<I,O> - Returns:
- handler of deeper depth level.
-
constructLeaf
May return null if leaf should be filtered.- Parameters:
leaf- leaf.- Returns:
- leaf object.
-