Interface ITreeAccessor<TNode, TIdentifier>

Type Parameters:
TNode - Type of the tree's nodes.
TIdentifier - Type of the identifier of each node.
All Superinterfaces:
ITreeAccessor<TNode, TIdentifier>
All Known Implementing Classes:
GagawaNodeTreeAccessor, TreeAccessorWithDataWorkflowNode, TreeAccessorWorkflowNode, TreeAccessorXItem

public interface ITreeAccessor<TNode, TIdentifier> extends ITreeAccessor<TNode, TIdentifier>
Deprecated.
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

    Modifier and Type
    Method
    Description
    Deprecated.
    Gets the children of the given node.
    getId(TNode node)
    Deprecated.
    Gets the ID of the given node.
  • Method Details

    • getChildren

      List<TNode> getChildren(TNode node)
      Deprecated.
      Description copied from interface: ITreeAccessor
      Gets 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:
      getChildren in interface ITreeAccessor<TNode, TIdentifier>
      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)
      Deprecated.
      Description copied from interface: ITreeAccessor
      Gets 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:
      getId in interface ITreeAccessor<TNode, TIdentifier>
      Parameters:
      node - A node for which to retrieve its ID.
      Returns:
      The (unique) identifier of the given tree node.