|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ClassValidator
A ClassValidator is responsible for validation object's.
It can validate objects of specific classes.
Therefore you can
PropertyValidation instances.
PropertyValidation| Method Summary | |
|---|---|
void |
add(PropertyValidation propertyValidation)
|
void |
addPropertyToGroups(String groupNames,
String propertyName)
|
Class |
getClazz()
Returns clazz that can be validated by this validator. |
void |
validate(Object toValidate)
Validates the object, if an error is signaled a Validation exception is thrown. |
void |
validate(Object toValidate,
Messages messages)
Validates the whole object. |
void |
validateGroup(Object toValidate,
String groupName,
Messages messages)
Validates only the properties, which are contained in the group. |
void |
validateProperties(Object toValidate,
List propertyNames,
Messages messages)
Validates only the properties, supplied in de propertyNames list, of the object toValidate. |
| Method Detail |
|---|
Class getClazz()
void add(PropertyValidation propertyValidation)
propertyValidation -
void addPropertyToGroups(String groupNames,
String propertyName)
groupNames - propertyName - void validate(Object toValidate)
toValidate - object to validate
void validate(Object toValidate,
Messages messages)
toValidate - object to validatemessages - container to which validate messages are added.
void validateGroup(Object toValidate,
String groupName,
Messages messages)
toValidate - object which group is validated.groupName - name of the group.messages - container to which validate messages are added.
void validateProperties(Object toValidate,
List propertyNames,
Messages messages)
toValidate - object which properties are validatedpropertyNames - List of names (String) of the properties which are
validatedmessages - container to which validate messages are added.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||