Implementors of this class can be added to any {@link com.vaadin.data.Validatable Validatable} implementor to verify itsvalue.
{@link #validate(Object)} can be used to check if a value is valid. An{@link InvalidValueException} with an appropriate validation error message isthrown if the value is not valid.
Validators must not have any side effects.
Since Vaadin 7, the method isValid(Object) does not exist in the interface - {@link #validate(Object)} should be used instead, and the exception caughtwhere applicable. Concrete classes implementing {@link Validator} can stillinternally implement and use isValid(Object) for convenience or to ease migration from earlier Vaadin versions.
@author Vaadin Ltd. @since 3.0
|
|
|
|
|
|