| |
|
| java.lang.Object org.strecks.validator.IntegerValidator org.strecks.validator.IntegerRangeValidator
IntegerRangeValidator | public class IntegerRangeValidator extends IntegerValidator implements Validator<Integer>(Code) | | Validator which ensures that value is within a given range. Uses Commons Validator
GenericValidator.isInRange() . Uses converted value, so must be used in conjuction
with a Converter
author: Phil Zoio |
Method Summary | |
public int | getMax() | public int | getMin() | public void | setMax(int max) Sets the maximum value in range. | public void | setMin(int min) Sets the minimum value in range. | public boolean | validate(Integer value) Uses GenericValidator.isInRange() to determine whether value is within given
range. |
IntegerRangeValidator | public IntegerRangeValidator()(Code) | | |
getMax | public int getMax()(Code) | | |
getMin | public int getMin()(Code) | | |
setMax | public void setMax(int max)(Code) | | Sets the maximum value in range. Defaults to Integer.MAX_VALUE
|
setMin | public void setMin(int min)(Code) | | Sets the minimum value in range. Defaults to Integer.MIN_VALUE
|
validate | public boolean validate(Integer value)(Code) | | Uses GenericValidator.isInRange() to determine whether value is within given
range. If not required and no value specified, then returns true
|
Methods inherited from org.strecks.validator.IntegerValidator | public boolean validate(Integer value)(Code)(Java Doc)
|
|
|
|