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)
          Deprecated. use BlankToNullConverter instead
 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.

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.