|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.binding.validation.support.CompositeRichValidator
public class CompositeRichValidator
This RichValidator allows combining several RichValidators.
Eg when using a validator for Hibernate (validation available on persistent
object through annotations), you might want to add a RulesValidator for more
specific rules or just to expand its features.
| Constructor Summary | |
|---|---|
CompositeRichValidator(RichValidator[] validators)
Create a CompositeRichValidator that combines all the results
from the given validators. |
|
CompositeRichValidator(RichValidator validator1,
RichValidator validator2)
Convenient creation of CompositeRichValidator using two
validators. |
|
| Method Summary | |
|---|---|
ValidationResults |
validate(Object object)
Validates the provided object. |
ValidationResults |
validate(Object object,
String property)
Validates the given property of the provided object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompositeRichValidator(RichValidator validator1,
RichValidator validator2)
CompositeRichValidator using two
validators.
public CompositeRichValidator(RichValidator[] validators)
CompositeRichValidator that combines all the results
from the given validators.
| Method Detail |
|---|
public ValidationResults validate(Object object,
String property)
RichValidator
validate in interface RichValidatorobject - the object to validate (may be an implementation ofproperty - the name of the only property that has changed since the
last call to validate.
public ValidationResults validate(Object object)
Validator
validate in interface Validatorobject - the object to validate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||