org.javalite.activejdbc.validation
Class NumericValidator

java.lang.Object
  extended by org.javalite.activejdbc.validation.ValidatorAdapter
      extended by org.javalite.activejdbc.validation.NumericValidator
All Implemented Interfaces:
Validator

public class NumericValidator
extends ValidatorAdapter


Constructor Summary
NumericValidator(String attribute)
           
 
Method Summary
 void convertNullIfEmpty(boolean convertNullIfEmpty)
           
static void main(String[] av)
           
 void setAllowNull(Boolean allowNull)
           
 void setMax(Double max)
           
 void setMin(Double min)
           
 void setOnlyInteger(boolean onlyInteger)
           
 void validate(Model m)
          Called by framework when a Model.validate() method called.
 
Methods inherited from class org.javalite.activejdbc.validation.ValidatorAdapter
formatMessage, getMessage, setMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumericValidator

public NumericValidator(String attribute)
Method Detail

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.