Interface ITreeParentAccessor<TNode,​TIdentifier>

  • Type Parameters:
    TNode - Type of the tree's nodes.
    TIdentifier - Type of the identifier of each node.
    All Known Implementing Classes:
    TreeAccessorWithDataWorkflowNode, TreeAccessorWorkflowNode, TreeParentAccessorXItem

    public interface ITreeParentAccessor<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 parent of the item.
    Since:
    8.2.0
    Author:
    XIMA MEDIA GmbH
    • Method Detail

      • getParent

        TNode getParent​(TNode node)
        Parameters:
        node - The node for which to get the parent.
        Returns:
        Parent of the node, null if it is a root 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.