public class NumericValidator extends ValidatorAdapter
Constructor and Description |
---|
NumericValidator(String attribute) |
Modifier and Type | Method and Description |
---|---|
void |
setAllowNull(Boolean allowNull) |
void |
setMax(Double max) |
void |
setMin(Double min) |
void |
setOnlyInteger(boolean onlyInteger) |
void |
validate(Validatable validatable)
Called by framework when validation is required
|
formatMessage, getMessage, pinMessage, setMessage
public NumericValidator(String attribute)
public void validate(Validatable validatable)
Validator
validatable
- map being validated.public void setMin(Double min)
public void setMax(Double max)
public void setAllowNull(Boolean allowNull)
public void setOnlyInteger(boolean onlyInteger)
Copyright © 2020 JavaLite. All rights reserved.