org.apache.wicket.validation.validator
Class NumberValidator.MaximumValidator
java.lang.Object
org.apache.wicket.validation.validator.AbstractValidator<T>
org.apache.wicket.validation.validator.NumberValidator
org.apache.wicket.validation.validator.NumberValidator.MaximumValidator
- All Implemented Interfaces:
- Serializable, IClusterable, INullAcceptingValidator, IValidator
- Enclosing class:
- NumberValidator<T extends Number>
Deprecated. see MaximumValidator
@Deprecated
public static class NumberValidator.MaximumValidator
- extends NumberValidator
Validator for checking if a given number meets the maximum requirement.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NumberValidator.MaximumValidator
public NumberValidator.MaximumValidator(long maximum)
- Deprecated.
- Constructor that sets the maximum value.
- Parameters:
maximum
- the maximum value
variablesMap
protected Map<String,Object> variablesMap(IValidatable validatable)
- Deprecated.
- Description copied from class:
AbstractValidator
- Gets the default
Map
of variables.
NOTE: THIS METHOD SHOULD NEVER RETURN null
.
- Overrides:
variablesMap
in class AbstractValidator
- Parameters:
validatable
- the IValidatable
instance being validated
- Returns:
- a
Map
of variables for variable interpolation - See Also:
AbstractValidator.variablesMap(IValidatable)
resourceKey
protected String resourceKey()
- Deprecated.
- Description copied from class:
AbstractValidator
- Gets the message resource key for this validator's error message from the
ApplicationSettings
class.
NOTE: THIS METHOD SHOULD NEVER RETURN null
.
- Overrides:
resourceKey
in class AbstractValidator
- Returns:
- the message resource key for this validator
- See Also:
AbstractValidator.resourceKey(FormComponent)
onValidate
protected void onValidate(IValidatable validatable)
- Deprecated.
- Description copied from class:
AbstractValidator
- Validates the
IValidatable
instance.
- Specified by:
onValidate
in class AbstractValidator
- Parameters:
validatable
- the given IValidatable
instance- See Also:
AbstractValidator.onValidate(IValidatable)
getMaximum
public long getMaximum()
- Deprecated.
- Gets the maximum.
- Returns:
- maximum
Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.