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
public final class ResourceTypeImpl extends EntityTypeImpl implements ResourceType
The default implementation of theResourceTypeinterface.- Author:
- Luca Frosini (ISTI - CNR)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected List<LinkedEntity>facetsThe facets of the resource type.protected List<LinkedEntity>resourcesThe resources of the resource type.-
Fields inherited from class org.gcube.informationsystem.types.impl.entities.EntityTypeImpl
metadata
-
Fields inherited from class org.gcube.informationsystem.types.impl.TypeImpl
abstractType, changelog, DEFAULT_CHANGELOG_MAP, description, extendedTypes, finalClass, name, properties, uuid, version
-
Fields inherited from interface org.gcube.informationsystem.base.reference.Element
DATETIME_PATTERN, TYPE_PROPERTY
-
Fields inherited from interface org.gcube.informationsystem.types.reference.entities.EntityType
NAME
-
Fields inherited from interface org.gcube.informationsystem.base.reference.IdentifiableElement
ID_PROPERTY, METADATA_PROPERTY
-
Fields inherited from interface org.gcube.informationsystem.types.reference.entities.ResourceType
FACETS_PROPERTY, NAME, RESOURCES_PROPERTY
-
Fields 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
Constructors Modifier Constructor Description protectedResourceTypeImpl()Default constructor.ResourceTypeImpl(Class<? extends Resource> clz)Constructs a newResourceTypeImplfrom a class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessTypegetAccessType()Returns theAccessTypeof this type definition.List<LinkedEntity>getFacets()Returns the list of facets associated with this resource type.List<LinkedEntity>getResources()Returns the list of related resources for this resource type.-
Methods inherited from class org.gcube.informationsystem.types.impl.entities.EntityTypeImpl
getEntityTypeDefinitionInstance, getMetadata, setMetadata, toString
-
Methods 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, setVersion
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.gcube.informationsystem.base.reference.Element
getTypeName
-
Methods inherited from interface org.gcube.informationsystem.base.reference.entities.EntityElement
getID, getMetadata, setID, setMetadata
-
Methods inherited from interface org.gcube.informationsystem.types.reference.entities.EntityType
getDescription, getExtendedTypes, getName, isAbstract
-
Methods inherited from interface org.gcube.informationsystem.types.reference.Type
getChangelog, getChangelogWithVersionAsString, getID, getMetadata, getProperties, getVersion, getVersionAsString, isFinal, setID, setMetadata
-
-
-
-
Field Detail
-
facets
protected List<LinkedEntity> facets
The facets of the resource type.
-
resources
protected List<LinkedEntity> resources
The resources of the resource type.
-
-
Method Detail
-
getFacets
public List<LinkedEntity> getFacets()
Returns the list of facets associated with this resource type.- Specified by:
getFacetsin interfaceResourceType- Returns:
- A list of
LinkedEntityobjects representing the facets.
-
getResources
public List<LinkedEntity> 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
public AccessType getAccessType()
Returns theAccessTypeof this type definition.- Specified by:
getAccessTypein interfaceType- Overrides:
getAccessTypein classEntityTypeImpl- Returns:
- The access type.
-
-