|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springmodules.validation.validator.CompoundValidator
public class CompoundValidator
A validator that is compound of aother validators. This validator deligates the validation task to all its contained validators.
| Constructor Summary | |
|---|---|
CompoundValidator()
Constructs a new CompoundValidator with no internal validators. |
|
CompoundValidator(Validator[] validators)
Constructs a new CompoundValidator with the given internal validators. |
|
| Method Summary | |
|---|---|
void |
addValidator(Validator validator)
Adds the given validator to this compound validator. |
void |
addValidators(Validator[] validators)
Adds the given validators to this compound validator. |
void |
setValidators(Validator[] validators)
Sets the internal validators of this compound validator. |
boolean |
supports(Class clazz)
Returns whether this validator supports the given class. |
void |
validate(Object obj,
Errors errors)
Validates the given object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompoundValidator()
public CompoundValidator(Validator[] validators)
validators - The internal validators this validator is compound of.| Method Detail |
|---|
public boolean supports(Class clazz)
supports in interface Validatorclazz - The class to be validated.
Validator.supports(Class)
public void validate(Object obj,
Errors errors)
validate in interface Validatorobj - The validated object.errors - A registry where validation errors are registered.Validator.validate(Object, org.springframework.validation.Errors)public void addValidator(Validator validator)
validator - The validator to be added to this compound validator.public void addValidators(Validator[] validators)
validators - The validators to be added to this compound validator.public void setValidators(Validator[] validators)
validators - The internal validators of this compound validator.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||