Class 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 String description
      The description of the template
      protected String name
      The name of the template
      protected List<AttributeProperty> properties
      The properties of the template
      protected String targetType
      The 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.model.reference.entities.Entity

        NAME
      • 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.model.reference.entities.Facet

        NAME
      • 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addProperty​(AttributeProperty property)
      Adds an attribute to the template to be created when instantiated
      String getDescription()
      The description of the template
      String getName()
      The name of the template
      List<AttributeProperty> getProperties()
      The attributes of the template to be created when instantiated
      String getTargetType()
      The type of Facet to instantiate with the attributes valued
      void setDescription​(String description)
      Sets the description of the template
      void setName​(String name)
      Sets the name of the template
      void setProperties​(List<AttributeProperty> properties)
      Sets the attributes of the template to be created when instantiated
      void setTargetType​(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 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.model.reference.ERElement

        getContexts
      • Methods inherited from interface org.gcube.informationsystem.model.reference.entities.Facet

        getAdditionalProperties, getAdditionalProperty, setAdditionalProperties, setAdditionalProperty
      • Methods inherited from interface org.gcube.informationsystem.model.reference.ModelElement

        getExpectedtype, getSupertypes
    • 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
    • Constructor Detail

      • TemplateFacetImpl

        public TemplateFacetImpl()
    • Method Detail

      • setName

        public void setName​(String name)
        Sets the name of the template
        Specified by:
        setName in interface Named
        Specified by:
        setName in interface TemplateFacet
        Parameters:
        name - the name
      • setDescription

        public void setDescription​(String description)
        Sets the description of the template
        Specified by:
        setDescription in interface TemplateFacet
        Parameters:
        description - the description
      • getTargetType

        public String getTargetType()
        The type of Facet to instantiate with the attributes valued
        Specified by:
        getTargetType in interface TemplateFacet
        Returns:
        the targetType
      • setTargetType

        public void setTargetType​(String targetType)
        Sets the type of Facet to instantiate with the attributes valued
        Specified by:
        setTargetType in interface TemplateFacet
        Parameters:
        targetType - the targetType
      • setProperties

        public void setProperties​(List<AttributeProperty> properties)
        Sets the attributes of the template to be created when instantiated
        Specified by:
        setProperties in interface TemplateFacet
        Parameters:
        properties - the properties
      • addProperty

        public void addProperty​(AttributeProperty property)
        Adds an attribute to the template to be created when instantiated
        Specified by:
        addProperty in interface TemplateFacet
        Parameters:
        property - the property