|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Validator
Implementations of this interface are expected to validate a JavaBean's
properties. The JavaBean to be validated is the one returned by the call
to constructBeanToValidate().
The lifecycle of Validators (implementations of this interface) is as
follows:
| Method Summary | |
|---|---|
java.lang.Object |
constructBeanToValidate()
This is called prior to calling the validate() method. |
void |
validate(ValidatorContext context,
java.lang.Object beanToValidate)
This is the method that's called to validate the "bean-to-validate." Use the passed in ValidatorContext to report validation failures, etc. |
| Method Detail |
|---|
void validate(ValidatorContext context,
java.lang.Object beanToValidate)
context - The ValidatorContext, which is used to report failures.beanToValidate - The JavaBean to validate.java.lang.Object constructBeanToValidate()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||