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 Instance Methods Abstract Methods Default Methods Modifier and Type Method Description StringgetSchema()StringgetValue()voidsetSchema(String type)voidsetValue(String value)default Validationvalidate()Applies this validation to the property.
-
-
-
Field Detail
-
NAME
static final String NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
validate
default Validation validate()
Description copied from interface:ValidatedTypedPropertyApplies this validation to the property.- Specified by:
validatein interfaceValidatedTypedProperty<String,String>- Returns:
- the validation result
-
getValue
@ISProperty String getValue()
- Specified by:
getValuein interfaceTypedProperty<String,String>
-
setValue
void setValue(String value)
- Specified by:
setValuein interfaceTypedProperty<String,String>
-
getSchema
@ISProperty String getSchema()
- Specified by:
getSchemain interfaceTypedProperty<String,String>
-
setSchema
void setSchema(String type)
- Specified by:
setSchemain interfaceTypedProperty<String,String>
-
-