Package simpleorm.dataset.validation
Class SValidatorGreaterEqual
java.lang.Object
simpleorm.dataset.validation.SValidatorI
simpleorm.dataset.validation.SValidatorGreaterEqual
- All Implemented Interfaces:
Serializable
Validates that a numeric value is greater than or equal to a given value, normally 0.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
void
onValidate
(SFieldMeta field, SRecordInstance instance) Called when individual field changed, or when record updated.setMinVal
(double minVal)
-
Constructor Details
-
SValidatorGreaterEqual
public SValidatorGreaterEqual(double minVal)
-
-
Method Details
-
onValidate
Description copied from class:SValidatorI
Called when individual field changed, or when record updated. (Default behaviour is to call all registered validators.)- Specified by:
onValidate
in classSValidatorI
- See Also:
-
getMinVal
public double getMinVal() -
setMinVal
-