org.apache.wicket.validation.validator
Class NumberValidator.RangeValidator

java.lang.Object
  extended by org.apache.wicket.validation.validator.AbstractValidator<T>
      extended by org.apache.wicket.validation.validator.NumberValidator
          extended by org.apache.wicket.validation.validator.NumberValidator.RangeValidator
All Implemented Interfaces:
Serializable, IClusterable, INullAcceptingValidator, IValidator
Enclosing class:
NumberValidator<T extends Number>

Deprecated. see RangeValidator

@Deprecated
public static class NumberValidator.RangeValidator
extends NumberValidator

Validator for checking if a given number is within the specified range.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.wicket.validation.validator.NumberValidator
NumberValidator.DoubleMaximumValidator, NumberValidator.DoubleMinimumValidator, NumberValidator.DoubleRangeValidator, NumberValidator.MaximumValidator, NumberValidator.MinimumValidator, NumberValidator.RangeValidator
 
Field Summary
 
Fields inherited from class org.apache.wicket.validation.validator.NumberValidator
NEGATIVE, POSITIVE
 
Constructor Summary
NumberValidator.RangeValidator(long minimum, long maximum)
          Deprecated. Constructor that sets the minimum and maximum values.
 
Method Summary
 long getMaximum()
          Deprecated. Gets the maximum value.
 long getMinimum()
          Deprecated. Gets the minimum value.
protected  void onValidate(IValidatable validatable)
          Deprecated. Validates the IValidatable instance.
protected  String resourceKey()
          Deprecated. Gets the message resource key for this validator's error message from the ApplicationSettings class.
protected  Map<String,Object> variablesMap(IValidatable validatable)
          Deprecated. Gets the default Map of variables.
 
Methods inherited from class org.apache.wicket.validation.validator.NumberValidator
maximum, maximum, minimum, minimum, range, range
 
Methods inherited from class org.apache.wicket.validation.validator.AbstractValidator
error, error, error, error, messageModel, resourceKey, validate, validate, validateOnNullValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumberValidator.RangeValidator

public NumberValidator.RangeValidator(long minimum,
                                      long maximum)
Deprecated. 
Constructor that sets the minimum and maximum values.

Parameters:
minimum - the minimum value
maximum - the maximum value
Method Detail

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)

getMinimum

public long getMinimum()
Deprecated. 
Gets the minimum value.

Returns:
minimum value

getMaximum

public long getMaximum()
Deprecated. 
Gets the maximum value.

Returns:
maximum value


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.