Class TreeAccessorWithDataNodeModel
java.lang.Object
de.xima.fc.workflow.designer.logic.TreeAccessorWithDataNodeModel
- All Implemented Interfaces:
ITreeAccessor<NodeModel, UUID>, ITreeWithDataAccessor<NodeModel, UUID, Object>
-
Constructor Summary
ConstructorsConstructorDescriptionTreeAccessorWithDataNodeModel(Map<ElementKey, com.alibaba.fastjson.JSONObject> paramsMap, Mandant client) Creates A new tree accessor that reads the custom properties from the given map. -
Method Summary
Modifier and TypeMethodDescriptiongetChildren(NodeModel node) Gets the children of the given node.Gets the ID of the given node.getNodeData(NodeModel node)
-
Constructor Details
-
TreeAccessorWithDataNodeModel
public TreeAccessorWithDataNodeModel(Map<ElementKey, com.alibaba.fastjson.JSONObject> paramsMap, Mandant client) Creates A new tree accessor that reads the custom properties from the given map.- Parameters:
paramsMap- Map with the custom properties of the nodes.client- The current client scoped, used for finding client plugins.
-
-
Method Details
-
getChildren
Description copied from interface:ITreeAccessorGets the children of the given node. It is generally recommended to return a list of nodes for fast random access, but implementations must be compatible with general iterables.- Specified by:
getChildrenin 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.
-
getId
Description copied from interface:ITreeAccessorGets the ID of the given node. The ID must be unique within the tree, but it is not required to be unique across different trees.- Specified by:
getIdin interfaceITreeAccessor<NodeModel, UUID>- Parameters:
node- A node for which to retrieve its ID.- Returns:
- The (unique) identifier of the given tree node.
-
getNodeData
- Specified by:
getNodeDatain interfaceITreeWithDataAccessor<NodeModel, UUID, Object>- Parameters:
node- Tree node for which to retrieve the data.- Returns:
- The data associated with the tree node.
-