Class ResourceTypeImpl
java.lang.Object
org.gcube.informationsystem.types.impl.TypeImpl
org.gcube.informationsystem.types.impl.entities.EntityTypeImpl
org.gcube.informationsystem.types.impl.entities.ResourceTypeImpl
- All Implemented Interfaces:
Serializable,Element,EntityElement,IdentifiableElement,EntityType,ResourceType,Type
The default implementation of the
ResourceType interface.- Author:
- Luca Frosini (ISTI - CNR)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<LinkedEntity>The facets of the resource type.protected List<LinkedEntity>The resources of the resource type.Fields inherited from class org.gcube.informationsystem.types.impl.entities.EntityTypeImpl
metadataFields inherited from class org.gcube.informationsystem.types.impl.TypeImpl
abstractType, changelog, DEFAULT_CHANGELOG_MAP, description, extendedTypes, finalClass, name, properties, uuid, versionFields inherited from interface org.gcube.informationsystem.base.reference.Element
DATETIME_PATTERN, TYPE_PROPERTYFields inherited from interface org.gcube.informationsystem.types.reference.entities.EntityType
NAMEFields inherited from interface org.gcube.informationsystem.base.reference.IdentifiableElement
ID_PROPERTY, METADATA_PROPERTYFields inherited from interface org.gcube.informationsystem.types.reference.entities.ResourceType
FACETS_PROPERTY, NAME, RESOURCES_PROPERTYFields inherited from interface org.gcube.informationsystem.types.reference.Type
ABSTRACT_PROPERTY, CHANGELOG_PROPERTY, DESCRIPTION_PROPERTY, EXTENDED_TYPES_PROPERTY, FINAL_PROPERTY, NAME, NAME_PROPERTY, PROPERTIES_PROPERTY, VERSION_PROPERTY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor.ResourceTypeImpl(Class<? extends Resource> clz) Constructs a newResourceTypeImplfrom a class. -
Method Summary
Modifier and TypeMethodDescriptionReturns theAccessTypeof this type definition.Returns the list of facets associated with this resource type.Returns the list of related resources for this resource type.Methods inherited from class org.gcube.informationsystem.types.impl.entities.EntityTypeImpl
getEntityTypeDefinitionInstance, getMetadata, setMetadata, toStringMethods inherited from class org.gcube.informationsystem.types.impl.TypeImpl
getChangelog, getChangelogWithVersionAsString, getDescription, getExtendedTypes, getGenericClass, getID, getInstance, getName, getProperties, getTypeName, getVersion, getVersionAsString, isAbstract, isFinal, retrieveListOfProperties, retrieveSuperClasses, setChangelog, setID, setVersionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.gcube.informationsystem.base.reference.Element
getTypeNameMethods inherited from interface org.gcube.informationsystem.base.reference.entities.EntityElement
getID, getMetadata, setID, setMetadataMethods inherited from interface org.gcube.informationsystem.types.reference.entities.EntityType
getDescription, getExtendedTypes, getName, isAbstractMethods inherited from interface org.gcube.informationsystem.types.reference.Type
getChangelog, getChangelogWithVersionAsString, getID, getMetadata, getProperties, getVersion, getVersionAsString, isFinal, setID, setMetadata
-
Field Details
-
facets
The facets of the resource type. -
resources
The resources of the resource type.
-
-
Constructor Details
-
ResourceTypeImpl
protected ResourceTypeImpl()Default constructor. -
ResourceTypeImpl
Constructs a newResourceTypeImplfrom a class.- Parameters:
clz- The class.
-
-
Method Details
-
getFacets
Returns the list of facets associated with this resource type.- Specified by:
getFacetsin interfaceResourceType- Returns:
- A list of
LinkedEntityobjects representing the facets.
-
getResources
Returns the list of related resources for this resource type.- Specified by:
getResourcesin interfaceResourceType- Returns:
- A list of
LinkedEntityobjects representing the related resources.
-
getAccessType
Returns theAccessTypeof this type definition.- Specified by:
getAccessTypein interfaceType- Overrides:
getAccessTypein classEntityTypeImpl- Returns:
- The access type.
-