Interface EnumStringProperty

  • All Superinterfaces:
    org.gcube.informationsystem.base.reference.Element, GCubeProperty, org.gcube.informationsystem.model.reference.ModelElement, org.gcube.informationsystem.model.reference.properties.Property, org.gcube.informationsystem.base.reference.properties.PropertyElement, org.gcube.informationsystem.base.reference.SchemaMixedElement, Serializable, TypedProperty<Set<String>,​String>, ValidatedTypedProperty<Set<String>,​String>
    All Known Implementing Classes:
    EnumStringPropertyImpl

    @TypeMetadata(name="EnumStringProperty",
                  description="EnumStringProperty is a string property validated against a set of accepted values.",
                  version="1.1.0")
    @Change(version="1.1.0",description="Declared the \'value\' and \'schema\' properties.") @Change(version="1.0.0",description="First Version")
    public interface EnumStringProperty
    extends GCubeProperty, ValidatedTypedProperty<Set<String>,​String>
    EnumStringProperty is a string property validated against a set of accepted values.
    Author:
    Manuele Simi (ISTI - CNR), Luca Frosini (ISTI - CNR)
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String NAME
      The name associated with this property
      static String VERSION
      The version of this type definition.
      • Fields inherited from interface org.gcube.informationsystem.base.reference.Element

        DATETIME_PATTERN, REDACTED, TYPE_PROPERTY, UNKNOWN_USER
      • 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 Default Methods 
      Modifier and Type Method Description
      static EnumStringProperty getDefaultInstance()
      Returns a default instance of EnumStringProperty
      Set<String> getSchema()
      Gets the schema of the property.
      String getValue()
      Gets the value of the property.
      void setSchema​(Set<String> schema)
      Sets the schema of the property.
      void setValue​(String value)
      Sets the value of the property.
      default Validation validate()
      Applies this validation to the property.
      • 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