public class RangeValidator extends PropertyValidatorBase
Constructor and Description |
---|
RangeValidator() |
RangeValidator(double min,
double max) |
Modifier and Type | Method and Description |
---|---|
void |
applyParams(HashMap<String,Object> params) |
double |
getMax() |
double |
getMin() |
String |
getNegativeMessage() |
String |
getPositiveMessage() |
void |
setMax(double value) |
void |
setMin(double value) |
setNegativeMessage, setPositiveMessage, validate
public RangeValidator()
public RangeValidator(double min, double max)
public double getMax()
public void setMax(double value)
public double getMin()
public void setMin(double value)
public String getNegativeMessage()
getNegativeMessage
in interface PropertyValidator
getNegativeMessage
in class PropertyValidatorBase
public String getPositiveMessage()
getPositiveMessage
in interface PropertyValidator
getPositiveMessage
in class PropertyValidatorBase
public void applyParams(HashMap<String,Object> params)
applyParams
in class PropertyValidatorBase