|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.esdihumboldt.hale.common.instance.helper.DepthFirstInstanceTraverser
public class DepthFirstInstanceTraverser
Instance traverser that traverses the model depth first.
Constructor Summary | |
---|---|
DepthFirstInstanceTraverser()
Creates a depth first instance traverser. |
|
DepthFirstInstanceTraverser(boolean cancelChildTraversalOnly)
Creates a depth first instance traverser. |
Method Summary | |
---|---|
boolean |
traverse(Group group,
InstanceTraversalCallback callback)
Traverse the given group. |
boolean |
traverse(Instance instance,
InstanceTraversalCallback callback)
Traverse the given instance. |
boolean |
traverse(Object value,
InstanceTraversalCallback callback)
Traverse the given value. |
protected boolean |
traverseChildren(Group group,
InstanceTraversalCallback callback)
Traverse the children of a given group. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DepthFirstInstanceTraverser()
public DepthFirstInstanceTraverser(boolean cancelChildTraversalOnly)
cancelChildTraversalOnly
- if when the callback cancels the
traversal, only the traversal of the children should be
canceled (meaning traversal is continued but not down from the
current object)Method Detail |
---|
public boolean traverse(Instance instance, InstanceTraversalCallback callback)
InstanceTraverser
traverse
in interface InstanceTraverser
instance
- the instancecallback
- the traversal callback
InstanceTraverser.traverse(Instance, InstanceTraversalCallback)
public boolean traverse(Group group, InstanceTraversalCallback callback)
InstanceTraverser
traverse
in interface InstanceTraverser
group
- the groupcallback
- the traversal callback
InstanceTraverser.traverse(Group, InstanceTraversalCallback)
protected boolean traverseChildren(Group group, InstanceTraversalCallback callback)
group
- the groupcallback
- the traversal callback
public boolean traverse(Object value, InstanceTraversalCallback callback)
InstanceTraverser
traverse
in interface InstanceTraverser
value
- the value, if a Group
or Instance
the call
must be handed over to the respective traverse methodscallback
- the traversal callback
InstanceTraverser.traverse(Object, InstanceTraversalCallback)
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |