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

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.DoubleRangeValidator
All Implemented Interfaces:
Serializable, IClusterable, INullAcceptingValidator, IValidator
Enclosing class:
NumberValidator<T extends Number>

Deprecated. see RangeValidator

@Deprecated
public static class NumberValidator.DoubleRangeValidator
extends NumberValidator

Validator for checking if a given double 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.DoubleRangeValidator(double minimum, double maximum)
          Deprecated. Constructor that sets the maximum and minimum values.
 
Method Summary
 double getMaximum()
          Deprecated. Gets the maximum.
 double getMinimum()
          Deprecated. Gets the minimum.
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.DoubleRangeValidator

public NumberValidator.DoubleRangeValidator(double minimum,
                                            double maximum)
Deprecated. 
Constructor that sets the maximum and minimum 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 double getMinimum()
Deprecated. 
Gets the minimum.

Returns:
minimum

getMaximum

public double getMaximum()
Deprecated. 
Gets the maximum.

Returns:
maximum


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