| org.strecks.validator.Validator
Validator | public interface Validator (Code) | | Simple interface for validating an object. Implementations are generally two types:
Validators which uses raw form values. In this case, the parameterized type
should be assignable from the type of the form property
Validators which use converted form values. In this case, validator needs to
be used in conjunction with a Converter . At least one of the validators should be
parameterized to the actual conversion type (e.g. Integer ). Other validators can
be parameterized to types assignable from the type of the converted value of the form property
Returns true if validation is successful, otherwise false.
author: Phil Zoio |
Method Summary | |
public boolean | validate(T value) |
validate | public boolean validate(T value)(Code) | | Returns true if validation is successful, otherwise false
|
|
|