org.apache.wicket.validation.validator
Class MaximumValidator<Z extends Comparable<Z> & Serializable>
java.lang.Object
org.apache.wicket.behavior.Behavior
org.apache.wicket.validation.validator.MaximumValidator<Z>
- Type Parameters:
Z
- type of validatable
- All Implemented Interfaces:
- Serializable, IEventSink, IClusterable, IHeaderContributor, IValidator<Z>
public class MaximumValidator<Z extends Comparable<Z> & Serializable>
- extends Behavior
- implements IValidator<Z>
Validator for checking that the value is not greater then a specified maximum value
- See Also:
- Serialized Form
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 |
MaximumValidator
public MaximumValidator(Z maximum)
- Constructor
- Parameters:
maximum
- the maximum value
validate
public void validate(IValidatable<Z> validatable)
- Validates the
IValidatable
instance. Validation errors should be reported using
the IValidatable.error(IValidationError)
method.
- Specified by:
validate
in interface IValidator<Z extends Comparable<Z> & Serializable>
- Parameters:
validatable
- the IValidatable
instance being validated
getMaximum
public Z getMaximum()
- Gets the maximum value.
- Returns:
- maximum value
Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.