Package org.jdesktop.beansbinding
Class Validator<T>
- java.lang.Object
-
- org.jdesktop.beansbinding.Validator<T>
-
- Type Parameters:
T- the type of value that this validator can validate
public abstract class Validator<T> extends Object
Validatoris responsible for validating the value from the target of aBinding.- Author:
- Shannon Hickey
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classValidator.ResultAn instance ofResultis returned from aValidator'svalidatemethod to indicate an invalid value.
-
Constructor Summary
Constructors Constructor Description Validator()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract Validator.Resultvalidate(T value)Validates a value; returnsnullfor a valid value, and aResultobject describing the problem for an invalid value.
-
-
-
Method Detail
-
validate
public abstract Validator.Result validate(T value)
Validates a value; returnsnullfor a valid value, and aResultobject describing the problem for an invalid value.- Parameters:
value- the value to validate, may benull- Returns:
nullfor a valid value or aResultdescribing the problem for an invalid value
-
-