|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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(java.lang.Class clazz)
Return whether or not this object can validate objects of the given class. |
void |
validate(java.lang.Object obj,
Errors errors)
Validate an object, which must be of a class for which the supports() method returned true. |
Method Detail |
public boolean supports(java.lang.Class clazz)
public void validate(java.lang.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 |