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<String,String>, ValidatedTypedProperty<String,String>
All Known Implementing Classes:
RegexPropertyImpl

@TypeMetadata(name="RegexProperty", description="A property validated with a regular expression.", version="1.0.0") @Change(version="1.0.0", description="First Version") public interface RegexProperty extends GCubeProperty, ValidatedTypedProperty<String,String>
A property validated with a regular expression.
Author:
Manuele Simi (ISTI - CNR), Luca Frosini (ISTI - CNR)
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    Validator for RegexProperty properties.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The name associated with this property

    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

    Modifier and Type
    Method
    Description
    Returns a default instance of RegexProperty
    Gets the schema of the property.
    Gets the value of the property.
    void
    Sets the schema of the property.
    void
    Sets the value of the property.
    default Validation
    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
  • Field Details

  • Method Details

    • getDefaultInstance

      static RegexProperty getDefaultInstance()
      Returns a default instance of RegexProperty
      Returns:
      a default instance of RegexProperty
    • validate

      default Validation validate()
      Applies this validation to the property.
      Specified by:
      validate in interface ValidatedTypedProperty<String,String>
      Returns:
      the validation result
    • getValue

      @ISProperty(description="The value to be validated against the regular expression.") String getValue()
      Gets the value of the property.
      Specified by:
      getValue in interface TypedProperty<String,String>
      Returns:
      the value
    • setValue

      void setValue(String value)
      Sets the value of the property.
      Specified by:
      setValue in interface TypedProperty<String,String>
      Parameters:
      value - the new value
    • getSchema

      @ISProperty(description="The regular expression used to validate the value.") String getSchema()
      Gets the schema of the property.
      Specified by:
      getSchema in interface TypedProperty<String,String>
      Returns:
      the schema
    • setSchema

      void setSchema(String type)
      Sets the schema of the property.
      Specified by:
      setSchema in interface TypedProperty<String,String>
      Parameters:
      type - the new schema