public class NumericValidator extends ValidatorAdapter
Constructor and Description |
---|
NumericValidator(String attribute) |
Modifier and Type | Method and Description |
---|---|
void |
convertNullIfEmpty(boolean convertNullIfEmpty) |
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)
public void convertNullIfEmpty(boolean convertNullIfEmpty)
Copyright © 2019 JavaLite. All rights reserved.