T - the type of value that this validator can validatepublic abstract class Validator<T>
extends java.lang.Object
Validator is responsible for validating the value from the target of
a Binding.| Modifier and Type | Class | Description |
|---|---|---|
class |
Validator.Result |
An instance of
Result is returned from a Validator's
validate method to indicate an invalid value. |
| Constructor | Description |
|---|---|
Validator() |
| Modifier and Type | Method | Description |
|---|---|---|
abstract Validator.Result |
validate(T value) |
Validates a value; returns
null for a valid value, and a
Result object describing the problem for an invalid value. |
public abstract Validator.Result validate(T value)
null for a valid value, and a
Result object describing the problem for an invalid value.value - the value to validate, may be nullnull for a valid value or a Result
describing the problem for an invalid value