Class TypeInformation
java.lang.Object
org.gcube.informationsystem.types.knowledge.TypeInformation
- All Implemented Interfaces:
TypeInformation<Type>,NodeInformation<Type>
Provides information about a
Type.- Author:
- Luca Frosini (ISTI - CNR)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAccessType(Type type) Returns theAccessTypeof the given element.getIdentifier(Type type) Returns a unique identifier for the given element.getParentIdentifiers(Type root, Type type) Returns the identifiers of the parents of the given element.getRoot(AccessType accessType) Returns the root element for a givenAccessType.
-
Constructor Details
-
TypeInformation
public TypeInformation()
-
-
Method Details
-
getIdentifier
Returns a unique identifier for the given element.- Specified by:
getIdentifierin interfaceNodeInformation<Type>- Parameters:
type- The element.- Returns:
- The unique identifier.
-
getParentIdentifiers
Returns the identifiers of the parents of the given element.- Specified by:
getParentIdentifiersin interfaceNodeInformation<Type>- Parameters:
root- The root element of the tree.type- The element.- Returns:
- A set of parent identifiers.
-
getAccessType
Returns theAccessTypeof the given element.- Specified by:
getAccessTypein interfaceTypeInformation<Type>- Parameters:
type- The element.- Returns:
- The access type.
-
getRoot
Returns the root element for a givenAccessType.- Specified by:
getRootin interfaceTypeInformation<Type>- Parameters:
accessType- The access type.- Returns:
- The root element.
-