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,
UsageRecord usageRecord)
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, UsageRecord usageRecord) throws InvalidValueException
validate in interface FieldActionkey - The key of the propertyvalue - The value to be validated (and eventually converted) of the
propertyusageRecord - the Usage Record the property is attachedInvalidValueException - if the validation or the eventual
conversion failsCopyright © 2015. All Rights Reserved.