Interface FieldAction
- All Known Implementing Classes:
NotEmptyIfNotNullValidator,NotEmptyValidator,NotNullValidator,ValidBooleanValidator,ValidIntegerValidator,ValidLongValidator
public interface FieldAction
- Author:
- Luca Frosini (ISTI - CNR)
-
Method Summary
Modifier and TypeMethodDescriptionvalidate(String key, Serializable value, Record record) Validate (and eventually convert) the value of the property identified by the key.
-
Method Details
-
validate
Validate (and eventually convert) the value of the property identified by the key.- Parameters:
key- The key of the propertyvalue- The value to be validated (and eventually converted) of the propertyrecord- the record the property is attached- Returns:
- the validated (and eventually converted) value of the property
- Throws:
InvalidValueException- if the validation or the eventual conversion fails
-