Package io.bdeploy.bhive.objects.view
Class TreeView
java.lang.Object
io.bdeploy.bhive.objects.view.ElementView
io.bdeploy.bhive.objects.view.TreeView
- All Implemented Interfaces:
Comparable<ElementView>
- Direct Known Subclasses:
ManifestRefView
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChild(ElementView snapshot) voidvisit(TreeVisitor scanner) Visit all children of this tree recursively until the scanner opts out.voidvisitDfs(TreeVisitor scanner) Visit all children of this tree recursively in a DFS manner.Methods inherited from class io.bdeploy.bhive.objects.view.ElementView
compareTo, equals, getElementId, getName, getPath, getPathString, hashCode, toString
-
Constructor Details
-
TreeView
-
-
Method Details
-
addChild
- Parameters:
snapshot- the snapshot to add to the tree.
-
getChildren
- Returns:
- all children of this
TreeView.
-
visit
Visit all children of this tree recursively until the scanner opts out.- Parameters:
scanner- the scanner to call for each element.
-
visitDfs
Visit all children of this tree recursively in a DFS manner.- Parameters:
scanner- the scanner to call for each element.
-