Class TemplateFacetImpl
java.lang.Object
org.gcube.informationsystem.base.impl.ElementImpl
org.gcube.informationsystem.base.impl.entities.EntityElementImpl
org.gcube.informationsystem.model.impl.entities.EntityImpl
org.gcube.informationsystem.model.impl.entities.FacetImpl
org.gcube.resourcemanagement.model.impl.entities.facets.TemplateFacetImpl
- All Implemented Interfaces:
Serializable,org.gcube.informationsystem.base.reference.Element,org.gcube.informationsystem.base.reference.entities.EntityElement,org.gcube.informationsystem.base.reference.IdentifiableElement,org.gcube.informationsystem.base.reference.SchemaMixedElement,org.gcube.informationsystem.model.reference.entities.Entity,org.gcube.informationsystem.model.reference.entities.Facet,org.gcube.informationsystem.model.reference.ERElement,org.gcube.informationsystem.model.reference.ModelElement,TemplateFacet,Named
public class TemplateFacetImpl
extends org.gcube.informationsystem.model.impl.entities.FacetImpl
implements TemplateFacet
- Author:
- Luca Frosini (ISTI - CNR)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe description of the templateprotected StringThe name of the templateprotected List<AttributeProperty>The properties of the templateprotected StringThe target type of the templateFields inherited from class org.gcube.informationsystem.model.impl.entities.FacetImpl
additionalProperties, allowedAdditionalKeysFields inherited from class org.gcube.informationsystem.model.impl.entities.EntityImpl
contexts, expectedtype, supertypesFields inherited from class org.gcube.informationsystem.base.impl.entities.EntityElementImpl
metadata, uuidFields inherited from interface org.gcube.informationsystem.base.reference.Element
DATETIME_PATTERN, NAME, TYPE_PROPERTYFields inherited from interface org.gcube.informationsystem.model.reference.entities.Entity
NAMEFields inherited from interface org.gcube.informationsystem.base.reference.entities.EntityElement
NAMEFields inherited from interface org.gcube.informationsystem.model.reference.ERElement
CONTEXTS_PROPERTYFields inherited from interface org.gcube.informationsystem.model.reference.entities.Facet
NAMEFields inherited from interface org.gcube.informationsystem.base.reference.IdentifiableElement
ID_PROPERTY, METADATA_PROPERTYFields inherited from interface org.gcube.informationsystem.model.reference.ModelElement
EXPECTED_TYPE_PROPERTY, SUPERTYPES_PROPERTYFields inherited from interface org.gcube.resourcemanagement.model.reference.properties.utilities.Named
NAME_PROPERTYFields inherited from interface org.gcube.resourcemanagement.model.reference.entities.facets.TemplateFacet
DESCRIPTION_PROPERTY, NAME, PROPERTIES_PROPERTY, TARGET_TYPE_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProperty(AttributeProperty property) Adds an attribute to the template to be created when instantiatedThe description of the templategetName()The name of the templateThe attributes of the template to be created when instantiatedThe type of Facet to instantiate with the attributes valuedvoidsetDescription(String description) Sets the description of the templatevoidSets the name of the templatevoidsetProperties(List<AttributeProperty> properties) Sets the attributes of the template to be created when instantiatedvoidsetTargetType(String targetType) Sets the type of Facet to instantiate with the attributes valuedMethods inherited from class org.gcube.informationsystem.model.impl.entities.FacetImpl
addAllowedAdditionalKey, getAdditionalProperties, getAdditionalProperty, setAdditionalProperties, setAdditionalPropertyMethods inherited from class org.gcube.informationsystem.model.impl.entities.EntityImpl
getContexts, getExpectedtype, getSupertypes, setContextsMethods inherited from class org.gcube.informationsystem.base.impl.entities.EntityElementImpl
getID, getMetadata, setID, setMetadataMethods inherited from class org.gcube.informationsystem.base.impl.ElementImpl
getTypeName, toStringMethods 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.model.reference.ERElement
getContextsMethods inherited from interface org.gcube.informationsystem.model.reference.entities.Facet
getAdditionalProperties, getAdditionalProperty, setAdditionalProperties, setAdditionalPropertyMethods inherited from interface org.gcube.informationsystem.model.reference.ModelElement
getExpectedtype, getSupertypes
-
Field Details
-
name
The name of the template -
description
The description of the template -
targetType
The target type of the template -
properties
The properties of the template
-
-
Constructor Details
-
TemplateFacetImpl
public TemplateFacetImpl()
-
-
Method Details
-
getName
The name of the template- Specified by:
getNamein interfaceNamed- Specified by:
getNamein interfaceTemplateFacet- Returns:
- the name
-
setName
Sets the name of the template- Specified by:
setNamein interfaceNamed- Specified by:
setNamein interfaceTemplateFacet- Parameters:
name- the name
-
getDescription
The description of the template- Specified by:
getDescriptionin interfaceTemplateFacet- Returns:
- the description
-
setDescription
Sets the description of the template- Specified by:
setDescriptionin interfaceTemplateFacet- Parameters:
description- the description
-
getTargetType
The type of Facet to instantiate with the attributes valued- Specified by:
getTargetTypein interfaceTemplateFacet- Returns:
- the targetType
-
setTargetType
Sets the type of Facet to instantiate with the attributes valued- Specified by:
setTargetTypein interfaceTemplateFacet- Parameters:
targetType- the targetType
-
getProperties
The attributes of the template to be created when instantiated- Specified by:
getPropertiesin interfaceTemplateFacet- Returns:
- the properties
-
setProperties
Sets the attributes of the template to be created when instantiated- Specified by:
setPropertiesin interfaceTemplateFacet- Parameters:
properties- the properties
-
addProperty
Adds an attribute to the template to be created when instantiated- Specified by:
addPropertyin interfaceTemplateFacet- Parameters:
property- the property
-