Package io.vertigo.basics.constraint
Class ConstraintBigDecimal
java.lang.Object
io.vertigo.basics.constraint.ConstraintBigDecimal
- All Implemented Interfaces:
io.vertigo.datamodel.smarttype.definitions.Constraint<String,BigDecimal>
public final class ConstraintBigDecimal
extends Object
implements io.vertigo.datamodel.smarttype.definitions.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.LocaleMessageTextio.vertigo.datamodel.smarttype.definitions.Property<String>
-
Constructor Details
-
Method Details
-
checkConstraint
- Specified by:
checkConstraintin interfaceio.vertigo.datamodel.smarttype.definitions.Constraint<String,BigDecimal>
-
getErrorMessage
public io.vertigo.core.locale.LocaleMessageText getErrorMessage()- Specified by:
getErrorMessagein interfaceio.vertigo.datamodel.smarttype.definitions.Constraint<String,BigDecimal>
-
getProperty
- Specified by:
getPropertyin interfaceio.vertigo.datamodel.smarttype.definitions.Constraint<String,BigDecimal>
-
getPropertyValue
- Specified by:
getPropertyValuein interfaceio.vertigo.datamodel.smarttype.definitions.Constraint<String,BigDecimal>
-