|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Validator
Interface to be implemented by objects that can validate application-specific objects. This enables validation to be decoupled from the interface and placed in business objects.
| Method Summary | |
|---|---|
boolean |
supports(Class clazz)
Return whether or not this object can validate objects of the given class. |
void |
validate(Object obj,
Errors errors)
Validate an object, which must be of a class for which the supports() method returned true. |
| Method Detail |
|---|
boolean supports(Class clazz)
void validate(Object obj,
Errors errors)
obj - Populated object to validateerrors - Errors object we're building. May contain
errors for this field relating to types.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||