Interface RegexProperty
-
- 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 classRegexProperty.RegexValidatorValidator forRegexPropertyproperties.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static RegexPropertygetDefaultInstance()Returns a default instance of RegexPropertyStringgetSchema()Gets the schema of the property.StringgetValue()Gets the value of the property.voidsetSchema(String type)Sets the schema of the property.voidsetValue(String value)Sets the value of the property.default Validationvalidate()Applies this validation to the property.
-
-
-
Field Detail
-
NAME
static final String NAME
The name associated with this property- See Also:
- Constant Field Values
-
-
Method Detail
-
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:
validatein interfaceValidatedTypedProperty<String,String>- Returns:
- the validation result
-
getValue
@ISProperty String getValue()
Gets the value of the property.- Specified by:
getValuein interfaceTypedProperty<String,String>- Returns:
- the value
-
setValue
void setValue(String value)
Sets the value of the property.- Specified by:
setValuein interfaceTypedProperty<String,String>- Parameters:
value- the new value
-
getSchema
@ISProperty String getSchema()
Gets the schema of the property.- Specified by:
getSchemain interfaceTypedProperty<String,String>- Returns:
- the schema
-
setSchema
void setSchema(String type)
Sets the schema of the property.- Specified by:
setSchemain interfaceTypedProperty<String,String>- Parameters:
type- the new schema
-
-