Package org.javalite.validation
Class NumericValidator
- java.lang.Object
-
- org.javalite.validation.ValidatorAdapter
-
- org.javalite.validation.NumericValidator
-
- All Implemented Interfaces:
Validator
public class NumericValidator extends ValidatorAdapter
-
-
Constructor Summary
Constructors Constructor Description NumericValidator(String attribute)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetAllowNull(Boolean allowNull)voidsetMax(Double max)voidsetMin(Double min)voidsetOnlyInteger(boolean onlyInteger)voidvalidate(Validatable validatable)Called by framework when validation is required-
Methods inherited from class org.javalite.validation.ValidatorAdapter
formatMessage, getMessage, pinMessage, setMessage
-
-
-
-
Constructor Detail
-
NumericValidator
public NumericValidator(String attribute)
-
-
Method Detail
-
validate
public void validate(Validatable validatable)
Description copied from interface:ValidatorCalled by framework when validation is required- Parameters:
validatable- map being validated.
-
setMin
public void setMin(Double min)
-
setMax
public void setMax(Double max)
-
setAllowNull
public void setAllowNull(Boolean allowNull)
-
setOnlyInteger
public void setOnlyInteger(boolean onlyInteger)
-
-