Class ValueSchemaImpl

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected URI schema
      The schema URI
      protected String value
      The value
      • Fields inherited from class org.gcube.informationsystem.base.impl.properties.PropertyElementImpl

        additionalProperties, allowedAdditionalKeys, expectedtype, supertypes
      • Fields inherited from interface org.gcube.informationsystem.base.reference.Element

        DATETIME_PATTERN, NAME, TYPE_PROPERTY
      • Fields inherited from interface org.gcube.resourcemanagement.model.reference.properties.GCubeProperty

        NAME
      • Fields inherited from interface org.gcube.informationsystem.model.reference.ModelElement

        EXPECTED_TYPE_PROPERTY, SUPERTYPES_PROPERTY
      • Fields inherited from interface org.gcube.informationsystem.model.reference.properties.Property

        NAME
      • Fields inherited from interface org.gcube.resourcemanagement.model.reference.properties.ValueSchema

        NAME
    • Constructor Summary

      Constructors 
      Constructor Description
      ValueSchemaImpl()
      Default Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      URI getSchema()
      An URI containing a schema used to validate/interpret the content of the value.
      String getValue()
      The value which schema is available at the URI provided in the schema property.
      void setSchema​(URI schema)
      Sets an URI containing a schema used to validate/interpret the content of the value.
      void setValue​(String value)
      Sets the value which schema is available at the URI provided in the schema property.
      • Methods inherited from class org.gcube.informationsystem.base.impl.properties.PropertyElementImpl

        addAllowedAdditionalKey, getAdditionalProperties, getAdditionalProperty, getExpectedtype, getSupertypes, setAdditionalProperties, setAdditionalProperty
      • 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.model.reference.ModelElement

        getExpectedtype, getSupertypes
      • Methods inherited from interface org.gcube.informationsystem.model.reference.properties.Property

        getAdditionalProperties, getAdditionalProperty, setAdditionalProperties, setAdditionalProperty
      • Methods inherited from interface org.gcube.resourcemanagement.model.reference.properties.ValueSchema

        validate
    • Field Detail

      • value

        protected String value
        The value
      • schema

        protected URI schema
        The schema URI
    • Constructor Detail

      • ValueSchemaImpl

        public ValueSchemaImpl()
        Default Constructor
    • Method Detail

      • getValue

        public String getValue()
        The value which schema is available at the URI provided in the schema property.
        Specified by:
        getValue in interface TypedProperty<URI,​String>
        Specified by:
        getValue in interface ValueSchema
        Returns:
        the value which schema is available at the URI provided in the schema property.
      • setValue

        public void setValue​(String value)
        Sets the value which schema is available at the URI provided in the schema property.
        Specified by:
        setValue in interface TypedProperty<URI,​String>
        Specified by:
        setValue in interface ValueSchema
        Parameters:
        value - the value to set
      • getSchema

        public URI getSchema()
        An URI containing a schema used to validate/interpret the content of the value. It is only an informative field. The validation is in charge of the client.
        Specified by:
        getSchema in interface TypedProperty<URI,​String>
        Specified by:
        getSchema in interface ValueSchema
        Returns:
        an URI containing a schema used to validate/interpret the content of the value. It is only an informative field. The validation is in charge of the client.
      • setSchema

        public void setSchema​(URI schema)
        Sets an URI containing a schema used to validate/interpret the content of the value. It is only an informative field. The validation is charge of the client.
        Specified by:
        setSchema in interface TypedProperty<URI,​String>
        Specified by:
        setSchema in interface ValueSchema
        Parameters:
        schema - an URI containing a schema used to validate/interpret the content of the value. It is only an informative field. The validation is charge of the client.