Interface TypedProperty<T,V>
-
- Type Parameters:
T- The type of the schema/type descriptor.V- The type of the value.
- All Known Subinterfaces:
EnumStringProperty,RegexProperty,ValidatedTypedProperty<T,V>,ValueSchema
- All Known Implementing Classes:
EnumStringPropertyImpl,RegexPropertyImpl,ValueSchemaImpl
public interface TypedProperty<T,V>A generic pairing of a value with the schema/type descriptor that describes its expected shape.- Author:
- Manuele Simi (ISTI - CNR)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TgetSchema()Gets the schema of the property.VgetValue()Gets the value of the property.voidsetSchema(T type)Sets the schema of the property.voidsetValue(V value)Sets the value of the property.
-
-
-
Method Detail
-
getValue
V getValue()
Gets the value of the property.- Returns:
- the value
-
setValue
void setValue(V value)
Sets the value of the property.- Parameters:
value- the new value
-
getSchema
T getSchema()
Gets the schema of the property.- Returns:
- the schema
-
setSchema
void setSchema(T type)
Sets the schema of the property.- Parameters:
type- the new schema
-
-