public class NotEmptyValidator extends Object implements FieldAction
| Constructor and Description |
|---|
NotEmptyValidator() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isValid(Serializable toValidate) |
Serializable |
validate(String key,
Serializable value,
Record record)
Validate (and eventually convert) the value of the property identified by
the key.
|
protected boolean isValid(Serializable toValidate)
public Serializable validate(String key, Serializable value, Record record) throws InvalidValueException
validate in interface FieldActionkey - The key of the propertyvalue - The value to be validated (and eventually converted) of the
propertyrecord - the record the property is attachedInvalidValueException - if the validation or the eventual
conversion failsCopyright © 2016. All Rights Reserved.