Interface NodeInformation<T>

  • Type Parameters:
    T - The type of the element.
    All Known Subinterfaces:
    TypeInformation<T>
    All Known Implementing Classes:
    ClassInformation, TypeInformation

    public interface NodeInformation<T>
    An interface for extracting identification and relationship information from elements to be used in a Tree.
    Author:
    Luca Frosini (ISTI - CNR)
    • Method Detail

      • getIdentifier

        String getIdentifier​(T t)
        Returns a unique identifier for the given element.
        Parameters:
        t - The element.
        Returns:
        The unique identifier.
      • getParentIdentifiers

        Set<String> getParentIdentifiers​(T root,
                                         T t)
        Returns the identifiers of the parents of the given element.
        Parameters:
        root - The root element of the tree.
        t - The element.
        Returns:
        A set of parent identifiers.