Interface SimplePropertyFacet

  • All Superinterfaces:
    org.gcube.informationsystem.base.reference.Element, org.gcube.informationsystem.model.reference.entities.Entity, org.gcube.informationsystem.base.reference.entities.EntityElement, org.gcube.informationsystem.model.reference.ERElement, org.gcube.informationsystem.model.reference.entities.Facet, org.gcube.informationsystem.base.reference.IdentifiableElement, org.gcube.informationsystem.model.reference.ModelElement, org.gcube.informationsystem.base.reference.SchemaMixedElement, Serializable
    All Known Implementing Classes:
    SimplePropertyFacetImpl

    @TypeMetadata(name="SimplePropertyFacet",
                  description="Collect name-value property",
                  version="1.0.0")
    @Change(version="1.0.0",
            description="First Version")
    public interface SimplePropertyFacet
    extends org.gcube.informationsystem.model.reference.entities.Facet
    SimplePropertyFacet captures information on any property by a simple name-value pair. It is mainly used to add key-value pairs to the resource in order to describe some resource characteristics. Before using SimplePropertyFacet a developer should evaluate if it is possible to identify a specific Facet to capture the particular aspect of the resource. The usage of SimplePropertyFacet should be reduced to the maximum. https://wiki.gcube-system.org/gcube/GCube_Model#Simple_Property_Facet
    Author:
    Luca Frosini (ISTI - CNR)
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String NAME
      The name associated with this facet
      • Fields inherited from interface org.gcube.informationsystem.base.reference.Element

        DATETIME_PATTERN, TYPE_PROPERTY
      • 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
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      static SimplePropertyFacet getDefaultInstance()
      Returns a default instance of SimplePropertyFacet
      String getName()
      The property name
      String getValue()
      The property value
      void setName​(String name)
      Sets the property name
      void setValue​(String value)
      Sets the property value
      • 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
    • Method Detail

      • getDefaultInstance

        static SimplePropertyFacet getDefaultInstance()
        Returns a default instance of SimplePropertyFacet
        Returns:
        a default instance of SimplePropertyFacet
      • getName

        @ISProperty(mandatory=true,
                    nullable=false)
        String getName()
        The property name
        Returns:
        the name
      • setName

        void setName​(String name)
        Sets the property name
        Parameters:
        name - the name
      • getValue

        @ISProperty(mandatory=true,
                    nullable=false)
        String getValue()
        The property value
        Returns:
        the value
      • setValue

        void setValue​(String value)
        Sets the property value
        Parameters:
        value - the value