org.javalite.activejdbc.validation
Class NumericValidator
java.lang.Object
org.javalite.activejdbc.validation.ValidatorAdapter
org.javalite.activejdbc.validation.NumericValidator
- All Implemented Interfaces:
- Validator
public class NumericValidator
- extends ValidatorAdapter
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NumericValidator
public NumericValidator(String attribute)
validate
public void validate(Model m)
- Description copied from interface:
Validator
- Called by framework when a
Model.validate() method called.
- Parameters:
m - model 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)
convertNullIfEmpty
@Deprecated
public void convertNullIfEmpty(boolean convertNullIfEmpty)
- Deprecated. use
BlankToNullConverter instead
Copyright © 2015 JavaLite. All rights reserved.