Class TreeAccessorNodeModel
- java.lang.Object
-
- de.xima.fc.workflow.taglib.helper.TreeAccessorNodeModel
-
- All Implemented Interfaces:
ITreeAccessor<NodeModel,UUID>
@Immutable public class TreeAccessorNodeModel extends Object implements ITreeAccessor<NodeModel,UUID>
Accessor for treatingNodeModel
s as a tree, so that they can be used with the execution analyzer.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Field Summary
Fields Modifier and Type Field Description static ITreeAccessor<NodeModel,UUID>
INSTANCE
The immutable instance of this accessor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<NodeModel>
getChildren(NodeModel node)
UUID
getId(NodeModel node)
-
-
-
Field Detail
-
INSTANCE
public static final ITreeAccessor<NodeModel,UUID> INSTANCE
The immutable instance of this accessor.
-
-
Method Detail
-
getChildren
public List<NodeModel> getChildren(NodeModel node)
- Specified by:
getChildren
in interfaceITreeAccessor<NodeModel,UUID>
- Parameters:
node
- The node for which to get the children.- Returns:
- A list of all children of the given tree node, empty array if it is a leaf node.
-
-