|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.behavior.Behavior org.apache.wicket.validation.CompoundValidator<T>
T
- type of validatablepublic class CompoundValidator<T>
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<T> |
add(IValidator<T> validator)
Adds an IValidator to the chain of validators. |
List<IValidator<T>> |
getValidators()
Gets an unmodifiable list of the registered validators. |
void |
validate(IValidatable<T> validatable)
Validates the IValidatable instance. |
Methods inherited from class org.apache.wicket.behavior.Behavior |
---|
afterRender, beforeRender, bind, canCallListenerInterface, detach, getStatelessHint, isEnabled, isTemporary, onComponentTag, onConfigure, onEvent, onException, renderHead, unbind |
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<T> add(IValidator<T> validator)
IValidator
to the chain of validators.
validator
- an IValidator
to be added
ValidationError
for chaining purposespublic final void validate(IValidatable<T> validatable)
IValidator
IValidatable
instance. Validation errors should be reported using
the IValidatable.error(IValidationError)
method.
validate
in interface IValidator<T>
validatable
- the IValidatable
instance being validatedIValidator.validate(IValidatable)
public final List<IValidator<T>> getValidators()
IValidator
s inside this one
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |