|
EchoPoint 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ValidationCallback
is used by ValidationKit.validate()
as a call back mechanism when validating a hierarchy of Validateable
components.
Method Summary | |
boolean |
onInvalid(Validateable validateable)
This method is called when a Validateable is found
to be invalid, ie it failed some or all its rules.
|
boolean |
onInvalidRule(Validateable validateable,
ValidationRule rule)
This method is called when a ValidationRule of
the Validateable 's ValidationRuleSet is
found to be invalid.
|
void |
onValid(Validateable validateable)
This method is called when a Validateable is found
to be valid, ie it passed all its rules (or it has not rules). |
Method Detail |
public void onValid(Validateable validateable)
Validateable
is found
to be valid, ie it passed all its rules (or it has not rules).
validateable
- - the Validateable
that is validpublic boolean onInvalid(Validateable validateable)
Validateable
is found
to be invalid, ie it failed some or all its rules.
You should return true if all validation is to continue or false if it should stop abruptly.
validateable
- - the Validateable
that is invalid
public boolean onInvalidRule(Validateable validateable, ValidationRule rule)
ValidationRule
of
the Validateable
's ValidationRuleSet
is
found to be invalid.
You should return true if validation of the any following ValidationRule
's
is to continue or false if it should stop.
validateable
- - the Validateable
that is invalidrule
- - the ValidationRule
that failed.
Validateable
is to continue or false if it should stop.
|
EchoPoint 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |