|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object validator interface. Implementors of this class can be added to
any Validatable
object to verify
its value. The Validatable#isValid(Object)
iterates all
registered Validator
s, calling their validate(Object)
methods. validate(Object)
should throw the
Validator.InvalidValueException
if the given value is not valid
by its standards.
Nested Class Summary | |
static class |
Validator.InvalidValueException
Invalid value exception can be thrown by Validator when a
given value is not valid. |
static interface |
Validator.Suggestive
Adds the proposing functionality to a Validator . |
Method Summary | |
boolean |
isValid(java.lang.Object value)
Test if the the given value is valid. |
void |
validate(java.lang.Object value)
Checks the given value against this validator. |
Method Detail |
public void validate(java.lang.Object value) throws Validator.InvalidValueException
Validator.InvalidValueException
value
- the value to check
Validator.InvalidValueException
- if the value is not validpublic boolean isValid(java.lang.Object value)
value
- the value to check
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |