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 aType.- Author:
- Luca Frosini (ISTI - CNR)
-
-
Constructor Summary
Constructors Constructor Description TypeInformation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessTypegetAccessType(Type type)Returns theAccessTypeof the given element.StringgetIdentifier(Type type)Returns a unique identifier for the given element.Set<String>getParentIdentifiers(Type root, Type type)Returns the identifiers of the parents of the given element.TypegetRoot(AccessType accessType)Returns the root element for a givenAccessType.
-
-
-
Method Detail
-
getIdentifier
public String getIdentifier(Type type)
Returns a unique identifier for the given element.- Specified by:
getIdentifierin interfaceNodeInformation<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:
getParentIdentifiersin interfaceNodeInformation<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 theAccessTypeof the given element.- Specified by:
getAccessTypein interfaceTypeInformation<Type>- Parameters:
type- The element.- Returns:
- The access type.
-
getRoot
public Type getRoot(AccessType accessType)
Returns the root element for a givenAccessType.- Specified by:
getRootin interfaceTypeInformation<Type>- Parameters:
accessType- The access type.- Returns:
- The root element.
-
-