Package step.core.artefacts.reports
Class ReportTreeVisitor
- java.lang.Object
-
- step.core.artefacts.reports.ReportTreeVisitor
-
public class ReportTreeVisitor extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ReportTreeVisitor.ReportNodeEvent
-
Constructor Summary
Constructors Constructor Description ReportTreeVisitor(ReportTreeAccessor reportTreeAccessor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReportNode
getRootReportNode(java.lang.String executionId)
void
visit(java.lang.String executionId, java.util.function.Consumer<ReportTreeVisitor.ReportNodeEvent> consumer)
void
visit(java.lang.String executionId, ReportNodeVisitorEventHandler reportNodeVisitorEventHandler)
Visits the report tree of an execution using a an event based handlerprotected void
visitChildrenWithEvents(ReportNode root, java.util.Stack<ReportNode> stack, java.util.function.Consumer<ReportTreeVisitor.ReportNodeEvent> consumer)
protected void
visitChildrenWithHandler(ReportNode root, java.util.Stack<ReportNode> stack, ReportNodeVisitorEventHandler reportNodeVisitorEventHandler)
void
visitNodes(java.lang.String executionId, java.util.function.Consumer<ReportNode> consumer)
-
-
-
Constructor Detail
-
ReportTreeVisitor
public ReportTreeVisitor(ReportTreeAccessor reportTreeAccessor)
-
-
Method Detail
-
getRootReportNode
public ReportNode getRootReportNode(java.lang.String executionId)
-
visitNodes
public void visitNodes(java.lang.String executionId, java.util.function.Consumer<ReportNode> consumer)
-
visit
public void visit(java.lang.String executionId, ReportNodeVisitorEventHandler reportNodeVisitorEventHandler)
Visits the report tree of an execution using a an event based handler- Parameters:
executionId
- the ID of the execution to be visitedreportNodeVisitorEventHandler
- the event handler to be used
-
visit
public void visit(java.lang.String executionId, java.util.function.Consumer<ReportTreeVisitor.ReportNodeEvent> consumer)
-
visitChildrenWithEvents
protected void visitChildrenWithEvents(ReportNode root, java.util.Stack<ReportNode> stack, java.util.function.Consumer<ReportTreeVisitor.ReportNodeEvent> consumer)
-
visitChildrenWithHandler
protected void visitChildrenWithHandler(ReportNode root, java.util.Stack<ReportNode> stack, ReportNodeVisitorEventHandler reportNodeVisitorEventHandler)
-
-