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 -
Field Summary
FieldsFields inherited from interface org.gcube.informationsystem.base.reference.Element
DATETIME_PATTERN, TYPE_PROPERTYFields inherited from interface org.gcube.informationsystem.model.reference.ModelElement
EXPECTED_TYPE_PROPERTY, SUPERTYPES_PROPERTY -
Method Summary
Modifier and TypeMethodDescriptionstatic RegexPropertyReturns a default instance of RegexPropertyGets the schema of the property.getValue()Gets the value of the property.voidSets the schema of the property.voidSets the value of the property.default Validationvalidate()Applies this validation to the property.Methods inherited from interface org.gcube.informationsystem.base.reference.Element
getTypeNameMethods inherited from interface org.gcube.informationsystem.model.reference.ModelElement
getExpectedtype, getSupertypesMethods inherited from interface org.gcube.informationsystem.model.reference.properties.Property
getAdditionalProperties, getAdditionalProperty, setAdditionalProperties, setAdditionalProperty
-
Field Details
-
NAME
The name associated with this property- See Also:
-
-
Method Details
-
getDefaultInstance
Returns a default instance of RegexProperty- Returns:
- a default instance of RegexProperty
-
validate
Applies this validation to the property.- Specified by:
validatein interfaceValidatedTypedProperty<String,String> - Returns:
- the validation result
-
getValue
Gets the value of the property.- Specified by:
getValuein interfaceTypedProperty<String,String> - Returns:
- the value
-
setValue
Sets the value of the property.- Specified by:
setValuein interfaceTypedProperty<String,String> - Parameters:
value- the new value
-
getSchema
Gets the schema of the property.- Specified by:
getSchemain interfaceTypedProperty<String,String> - Returns:
- the schema
-
setSchema
Sets the schema of the property.- Specified by:
setSchemain interfaceTypedProperty<String,String> - Parameters:
type- the new schema
-