Package io.vertigo.basics.constraint
Class ConstraintBigDecimal
java.lang.Object
io.vertigo.basics.constraint.ConstraintBigDecimal
- All Implemented Interfaces:
Constraint<String,BigDecimal>
Manage BigDecimal's constraints.
The configuration is like the configuration of Database's decimal (DECIMAL(M,D)).
Where M is the maximum of digits (the precision) and D is the number of digits to the right of the decimal point (the scale).
The maximum number of digits to the left of the decimal point is check too and must be less than M-D.
- Author:
- mlaroche
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckConstraint(BigDecimal value) io.vertigo.core.locale.LocaleMessageText
-
Constructor Details
-
Method Details
-
checkConstraint
- Specified by:
checkConstraintin interfaceConstraint<String,BigDecimal>
-
getErrorMessage
public io.vertigo.core.locale.LocaleMessageText getErrorMessage()- Specified by:
getErrorMessagein interfaceConstraint<String,BigDecimal>
-
getProperty
- Specified by:
getPropertyin interfaceConstraint<String,BigDecimal>
-
getPropertyValue
- Specified by:
getPropertyValuein interfaceConstraint<String,BigDecimal>
-