|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.validation.CompoundValidator
public class CompoundValidator
A compound IValidator. Once an error is reported against the IValidatable being
checked, the rest of the validator chain is ignored.
| Constructor Summary | |
|---|---|
CompoundValidator()
Constructor. |
|
| Method Summary | |
|---|---|
CompoundValidator |
add(IValidator validator)
Adds an IValidator to the chain of validators. |
java.util.List |
getValidators()
Gets an unmodifiable list of the registered validators. |
void |
validate(IValidatable validatable)
Validates the IValidatable instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompoundValidator()
| Method Detail |
|---|
public final CompoundValidator add(IValidator validator)
IValidator to the chain of validators.
validator - an IValidator to be added
ValidationError for chaining purposespublic final void validate(IValidatable validatable)
IValidatorIValidatable instance. Validation errors should be reported
using the IValidatable.error(IValidationError) method.
validate in interface IValidatorvalidatable - the IValidatable instance being validatedIValidator.validate(IValidatable)public final java.util.List getValidators()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||