Class ResourceSchemaImpl
java.lang.Object
org.gcube.informationsystem.types.impl.TypeImpl
org.gcube.informationsystem.types.impl.entities.EntitySchemaImpl
org.gcube.informationsystem.types.impl.entities.ResourceSchemaImpl
- All Implemented Interfaces:
Serializable,Element,EntityElement,IdentifiableElement,EntitySchema,ResourceSchema,Type
The default implementation of the
ResourceSchema interface.- Author:
- Luca Frosini (ISTI - CNR)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<LinkedEntity>The ConsistsOf constraints of the resource type, empty when it declares none.protected List<LinkedEntity>The IsRelatedTo constraints of the resource type, empty when it declares none.Fields inherited from class org.gcube.informationsystem.types.impl.entities.EntitySchemaImpl
metadataFields inherited from class org.gcube.informationsystem.types.impl.TypeImpl
abstractType, additionalProperties, changelog, DEFAULT_CHANGELOG_MAP, description, extendedTypes, finalClass, locked, name, properties, uuid, versionFields inherited from interface org.gcube.informationsystem.base.reference.Element
DATETIME_PATTERN, REDACTED, TYPE_PROPERTY, UNKNOWN_USERFields inherited from interface org.gcube.informationsystem.types.reference.entities.EntitySchema
NAMEFields inherited from interface org.gcube.informationsystem.base.reference.IdentifiableElement
ID_PROPERTY, METADATA_PROPERTYFields inherited from interface org.gcube.informationsystem.types.reference.entities.ResourceSchema
CONSISTS_OF_PROPERTY, IS_RELATED_TO_PROPERTY, NAME, VERSIONFields inherited from interface org.gcube.informationsystem.types.reference.Type
ABSTRACT_PROPERTY, CHANGELOG_PROPERTY, DESCRIPTION_PROPERTY, EXTENDED_TYPES_PROPERTY, FINAL_PROPERTY, LOCKED_PROPERTY, NAME, NAME_PROPERTY, PROPERTIES_PROPERTY, VERSION_PROPERTY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor.ResourceSchemaImpl(Class<? extends Resource> clz) Constructs a newResourceSchemaImplfrom a class.ResourceSchemaImpl(String name) Constructs a newResourceSchemaImplwith the given type name. -
Method Summary
Modifier and TypeMethodDescriptionReturns theAccessTypeof this type definition.Returns the list of ConsistsOf constraints (target Facet types) associated with this resource type.Returns the list of IsRelatedTo constraints (related resource types) for this resource type.protected voidsetConsistsOf(List<LinkedEntity> consistsOf) Sets the ConsistsOf constraints; anulllist means none.protected voidsetIsRelatedTo(List<LinkedEntity> isRelatedTo) Sets the IsRelatedTo constraints; anulllist means none.Methods inherited from class org.gcube.informationsystem.types.impl.entities.EntitySchemaImpl
getEntitySchemaInstance, getMetadata, setMetadata, toStringMethods inherited from class org.gcube.informationsystem.types.impl.TypeImpl
getAdditionalProperties, getChangelog, getChangelogWithVersionAsString, getDescription, getExtendedTypes, getGenericClass, getID, getInstance, getName, getProperties, getTypeName, getVersion, getVersionAsString, isAbstract, isFinal, isLocked, retrieveListOfProperties, retrieveSuperClasses, setAdditionalProperty, setChangelog, setExtendedTypes, setID, setLocked, 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.EntitySchema
getDescription, getExtendedTypes, getName, isAbstractMethods inherited from interface org.gcube.informationsystem.types.reference.Type
getAdditionalProperties, getChangelog, getChangelogWithVersionAsString, getID, getMetadata, getProperties, getVersion, getVersionAsString, isFinal, isLocked, setAdditionalProperty, setExtendedTypes, setID, setLocked, setMetadata
-
Field Details
-
consistsOf
The ConsistsOf constraints of the resource type, empty when it declares none. -
isRelatedTo
The IsRelatedTo constraints of the resource type, empty when it declares none.
-
-
Constructor Details
-
ResourceSchemaImpl
protected ResourceSchemaImpl()Default constructor. -
ResourceSchemaImpl
Constructs a newResourceSchemaImplwith the given type name.- Parameters:
name- The type name.
-
ResourceSchemaImpl
Constructs a newResourceSchemaImplfrom a class.- Parameters:
clz- The class.
-
-
Method Details
-
getConsistsOf
Returns the list of ConsistsOf constraints (target Facet types) associated with this resource type.- Specified by:
getConsistsOfin interfaceResourceSchema- Returns:
- A list of
LinkedEntityobjects representing the ConsistsOf constraints.
-
getIsRelatedTo
Returns the list of IsRelatedTo constraints (related resource types) for this resource type.- Specified by:
getIsRelatedToin interfaceResourceSchema- Returns:
- A list of
LinkedEntityobjects representing the IsRelatedTo constraints.
-
setConsistsOf
Sets the ConsistsOf constraints; anulllist means none.- Parameters:
consistsOf- The constraints.
-
setIsRelatedTo
Sets the IsRelatedTo constraints; anulllist means none.- Parameters:
isRelatedTo- The constraints.
-
getAccessType
Returns theAccessTypeof this type definition.- Specified by:
getAccessTypein interfaceType- Overrides:
getAccessTypein classEntitySchemaImpl- Returns:
- The access type.
-