Package de.xima.fc.interfaces.workflow
Interface ITreeAccessor<TNode,TIdentifier>
-
- Type Parameters:
TNode
- Type of the tree's nodes.TIdentifier
- Type of the identifier of each node.
- All Known Subinterfaces:
ITreeWithDataAccessor<TNode,TIdentifier,TNodeData>
- All Known Implementing Classes:
GagawaNodeTreeAccessor
,TreeAccessorNodeModel
,TreeAccessorWithDataNodeModel
,TreeAccessorWithDataWorkflowNode
,TreeAccessorWorkflowNode
public interface ITreeAccessor<TNode,TIdentifier>
Interface for treating an item as a node in a tree-like structure. Contains two method for accessing the ID of the item, and the children of the item.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<TNode>
getChildren(TNode node)
TIdentifier
getId(TNode node)
-
-
-
Method Detail
-
getChildren
List<TNode> getChildren(TNode node)
- 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
TIdentifier getId(TNode node)
- Parameters:
node
- A node for which to retrieve its ID.- Returns:
- The (unique) identifier of the given tree node.
-
-