public class NumericValidator extends ValidatorAdapter
Constructor and Description |
---|
NumericValidator(String attribute) |
Modifier and Type | Method and Description |
---|---|
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. |
formatMessage, getMessage, setMessage
public NumericValidator(String attribute)
public void validate(Model m)
Validator
Model.validate()
method called.m
- model being validated.public void setMin(Double min)
public void setMax(Double max)
public void setAllowNull(Boolean allowNull)
public void setOnlyInteger(boolean onlyInteger)
@Deprecated public void convertNullIfEmpty(boolean convertNullIfEmpty)
BlankToNullConverter
insteadCopyright © 2016 JavaLite. All rights reserved.