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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected StringdescriptionThe description of the templateprotected StringnameThe name of the templateprotected List<AttributeProperty>propertiesThe properties of the templateprotected StringtargetTypeThe target type of the template-
Fields inherited from class org.gcube.informationsystem.model.impl.entities.FacetImpl
additionalProperties, allowedAdditionalKeys
-
Fields inherited from class org.gcube.informationsystem.model.impl.entities.EntityImpl
contexts, expectedtype, supertypes
-
Fields inherited from class org.gcube.informationsystem.base.impl.entities.EntityElementImpl
metadata, uuid
-
Fields inherited from interface org.gcube.informationsystem.base.reference.Element
DATETIME_PATTERN, NAME, TYPE_PROPERTY
-
Fields inherited from interface org.gcube.informationsystem.base.reference.entities.EntityElement
NAME
-
Fields inherited from interface org.gcube.informationsystem.model.reference.ERElement
CONTEXTS_PROPERTY
-
Fields inherited from interface org.gcube.informationsystem.base.reference.IdentifiableElement
ID_PROPERTY, METADATA_PROPERTY
-
Fields inherited from interface org.gcube.informationsystem.model.reference.ModelElement
EXPECTED_TYPE_PROPERTY, SUPERTYPES_PROPERTY
-
Fields inherited from interface org.gcube.resourcemanagement.model.reference.properties.utilities.Named
NAME_PROPERTY
-
Fields inherited from interface org.gcube.resourcemanagement.model.reference.entities.facets.TemplateFacet
DESCRIPTION_PROPERTY, NAME, PROPERTIES_PROPERTY, TARGET_TYPE_PROPERTY
-
-
Constructor Summary
Constructors Constructor Description TemplateFacetImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddProperty(AttributeProperty property)Adds an attribute to the template to be created when instantiatedStringgetDescription()The description of the templateStringgetName()The name of the templateList<AttributeProperty>getProperties()The attributes of the template to be created when instantiatedStringgetTargetType()The type of Facet to instantiate with the attributes valuedvoidsetDescription(String description)Sets the description of the templatevoidsetName(String name)Sets 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 valued-
Methods inherited from class org.gcube.informationsystem.model.impl.entities.FacetImpl
addAllowedAdditionalKey, getAdditionalProperties, getAdditionalProperty, setAdditionalProperties, setAdditionalProperty
-
Methods inherited from class org.gcube.informationsystem.model.impl.entities.EntityImpl
getContexts, getExpectedtype, getSupertypes, setContexts
-
Methods inherited from class org.gcube.informationsystem.base.impl.entities.EntityElementImpl
getID, getMetadata, setID, setMetadata
-
Methods inherited from class org.gcube.informationsystem.base.impl.ElementImpl
getTypeName, toString
-
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.entities.EntityElement
getID, getMetadata, setID, setMetadata
-
-
-
-
Field Detail
-
name
protected String name
The name of the template
-
description
protected String description
The description of the template
-
targetType
protected String targetType
The target type of the template
-
properties
protected List<AttributeProperty> properties
The properties of the template
-
-
Method Detail
-
getName
public String getName()
The name of the template- Specified by:
getNamein interfaceNamed- Specified by:
getNamein interfaceTemplateFacet- Returns:
- the name
-
setName
public void setName(String name)
Sets the name of the template- Specified by:
setNamein interfaceNamed- Specified by:
setNamein interfaceTemplateFacet- Parameters:
name- the name
-
getDescription
public String getDescription()
The description of the template- Specified by:
getDescriptionin interfaceTemplateFacet- Returns:
- the description
-
setDescription
public void setDescription(String description)
Sets the description of the template- Specified by:
setDescriptionin interfaceTemplateFacet- Parameters:
description- the description
-
getTargetType
public String getTargetType()
The type of Facet to instantiate with the attributes valued- Specified by:
getTargetTypein interfaceTemplateFacet- Returns:
- the targetType
-
setTargetType
public void setTargetType(String targetType)
Sets the type of Facet to instantiate with the attributes valued- Specified by:
setTargetTypein interfaceTemplateFacet- Parameters:
targetType- the targetType
-
getProperties
public List<AttributeProperty> getProperties()
The attributes of the template to be created when instantiated- Specified by:
getPropertiesin interfaceTemplateFacet- Returns:
- the properties
-
setProperties
public void setProperties(List<AttributeProperty> properties)
Sets the attributes of the template to be created when instantiated- Specified by:
setPropertiesin interfaceTemplateFacet- Parameters:
properties- the properties
-
addProperty
public void addProperty(AttributeProperty property)
Adds an attribute to the template to be created when instantiated- Specified by:
addPropertyin interfaceTemplateFacet- Parameters:
property- the property
-
-