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.
- Specified by:
validate in interface Validator- Specified by:
validate in class ValidatorAdapter
- 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
public void convertNullIfEmpty(boolean convertNullIfEmpty)
main
public static void main(String[] av)
throws ParseException
- Throws:
ParseException
Copyright © 2013. All Rights Reserved.