public abstract class DistributedBranchHelper extends Object
If the underlying nodes are ordered and the helper is constructed with the ordered option, the handlers are called in the order the main nodes (the branch's children) were originally created, not the order in which they've become "completed" (their required properties satisfied)! Important: Assumes that once required properties are set they are never removed or unset (set to null), though they can be changed.
Constructor and Description |
---|
DistributedBranchHelper(DistributedTree tree,
String branchRoot,
boolean ordered) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(DistributedTree.Listener listener) |
List<String> |
getChildren() |
void |
init() |
protected abstract boolean |
isNodeComplete(String node,
Set<String> properties) |
void |
removeListener(DistributedTree.Listener listener) |
public DistributedBranchHelper(DistributedTree tree, String branchRoot, boolean ordered)
public final void init()
public void addListener(DistributedTree.Listener listener)
public void removeListener(DistributedTree.Listener listener)