Class ContextBranch
java.lang.Object
pro.verron.officestamper.core.ContextBranch
- All Implemented Interfaces:
ContextTree
A branch in the context tree.
-
Constructor Summary
ConstructorsConstructorDescriptionContextBranch(ContextRoot tree, Object root) Constructs a ContextBranch with a single root object.ContextBranch(ContextRoot tree, List<Object> branch) Constructs a ContextBranch with a list of objects forming the branch. -
Method Summary
-
Constructor Details
-
ContextBranch
Constructs a ContextBranch with a single root object.- Parameters:
tree- the context root tree.root- the root object of the branch.
-
ContextBranch
Constructs a ContextBranch with a list of objects forming the branch.- Parameters:
tree- the context root tree.branch- the list of objects in the branch.
-
-
Method Details
-
addBranch
Adds a new branch with the given object.- Specified by:
addBranchin interfaceContextTree- Parameters:
object- the object to add to the branch.- Returns:
- the key of the added branch.
-
root
-
list
-
toString
-