Class TypeInformation

java.lang.Object
org.gcube.informationsystem.types.knowledge.TypeInformation
All Implemented Interfaces:
TypeInformation<Type>, NodeInformation<Type>

public class TypeInformation extends Object implements TypeInformation<Type>
Provides information about a Type.
Author:
Luca Frosini (ISTI - CNR)
  • Constructor Details

    • TypeInformation

      public TypeInformation()
  • Method Details

    • getIdentifier

      public String getIdentifier(Type type)
      Returns a unique identifier for the given element.
      Specified by:
      getIdentifier in interface NodeInformation<Type>
      Parameters:
      type - The element.
      Returns:
      The unique identifier.
    • getParentIdentifiers

      public Set<String> getParentIdentifiers(Type root, Type type)
      Returns the identifiers of the parents of the given element.
      Specified by:
      getParentIdentifiers in interface NodeInformation<Type>
      Parameters:
      root - The root element of the tree.
      type - The element.
      Returns:
      A set of parent identifiers.
    • getAccessType

      public AccessType getAccessType(Type type)
      Returns the AccessType of the given element.
      Specified by:
      getAccessType in interface TypeInformation<Type>
      Parameters:
      type - The element.
      Returns:
      The access type.
    • getRoot

      public Type getRoot(AccessType accessType)
      Returns the root element for a given AccessType.
      Specified by:
      getRoot in interface TypeInformation<Type>
      Parameters:
      accessType - The access type.
      Returns:
      The root element.