Class DslAttrHandler
java.lang.Object
org.qubership.atp.dataset.model.utils.DslAttrHandler
- All Implemented Interfaces:
TraverseAndLeafsHandler<DataSetList,,Attribute, List<String>> TraverseHandler<DataSetList,Attribute>
public class DslAttrHandler
extends Object
implements TraverseAndLeafsHandler<DataSetList,Attribute,List<String>>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionInvoked when iteration goes upper to parents in a tree hierarchy.constructLeaf(DataSetList leaf) May return null if leaf should be filtered.forwardToNewParent(DataSetList parent) Invoked when iteration goes deeper to children which becomes new parent in a tree hierarchy.getChildren(DataSetList item) Explains how to get children from parent.
-
Constructor Details
-
DslAttrHandler
public DslAttrHandler()
-
-
Method Details
-
backToPreviousParent
Description copied from interface:TraverseHandlerInvoked when iteration goes upper to parents in a tree hierarchy.- Specified by:
backToPreviousParentin interfaceTraverseAndLeafsHandler<DataSetList,Attribute, List<String>> - Specified by:
backToPreviousParentin interfaceTraverseHandler<DataSetList,Attribute> - Returns:
- handler of previous depth.
-
forwardToNewParent
@Nonnull public TraverseAndLeafsHandler<Attribute,?, forwardToNewParentList<String>> (@Nonnull DataSetList parent) Description copied from interface:TraverseHandlerInvoked when iteration goes deeper to children which becomes new parent in a tree hierarchy.- Specified by:
forwardToNewParentin interfaceTraverseAndLeafsHandler<DataSetList,Attribute, List<String>> - Specified by:
forwardToNewParentin interfaceTraverseHandler<DataSetList,Attribute> - Returns:
- handler of deeper depth level.
-
getChildren
Description copied from interface:TraverseHandlerExplains how to get children from parent. May return null. Invoked when iteration goes deeper.- Specified by:
getChildrenin interfaceTraverseHandler<DataSetList,Attribute> - Parameters:
item- go get children from- Returns:
- children
-
constructLeaf
Description copied from interface:TraverseAndLeafsHandlerMay return null if leaf should be filtered.- Specified by:
constructLeafin interfaceTraverseAndLeafsHandler<DataSetList,Attribute, List<String>> - Parameters:
leaf- leaf.- Returns:
- leaf object.
-