|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdesktop.beansbinding.Validator<T>
T - the type of value that this validator can validatepublic abstract class Validator<T>
Validator is responsible for validating the value from the target of
a Binding.
| Nested Class Summary | |
|---|---|
class |
Validator.Result
An instance of Result is returned from a Validator's
validate method to indicate an invalid value. |
| Constructor Summary | |
|---|---|
Validator()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Validator()
| Method Detail |
|---|
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 null
null for a valid value or a Result
describing the problem for an invalid value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||