Package org.javalite.validation
Class NumericValidator
java.lang.Object
org.javalite.validation.ValidatorAdapter
org.javalite.validation.NumericValidator
- All Implemented Interfaces:
Validator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setAllowNull(Boolean allowNull)
void
void
void
setOnlyInteger(boolean onlyInteger)
void
validate(Validatable validatable)
Called by framework when validation is requiredMethods inherited from class org.javalite.validation.ValidatorAdapter
formatMessage, getMessage, pinMessage, setMessage
-
Constructor Details
-
NumericValidator
-
-
Method Details
-
validate
Description copied from interface:Validator
Called by framework when validation is required- Parameters:
validatable
- map being validated.
-
setMin
-
setMax
-
setAllowNull
-
setOnlyInteger
public void setOnlyInteger(boolean onlyInteger)
-