Package io.vertigo.basics.constraint
Class ConstraintDoubleLength
- java.lang.Object
-
- io.vertigo.basics.constraint.ConstraintDoubleLength
-
- All Implemented Interfaces:
Constraint<Integer,Double>
public final class ConstraintDoubleLength extends Object
Contrainte vérifiant que l'objet est :- soit un Double comprit dans le segment ]-10^n, 10^n[
- soit null
- Author:
- pchretien
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkConstraint(Double value)
io.vertigo.core.locale.MessageText
getErrorMessage()
int
getMaxLength()
Property
getProperty()
Integer
getPropertyValue()
-
-
-
Constructor Detail
-
ConstraintDoubleLength
public ConstraintDoubleLength(String args, Optional<String> overrideMessageOpt, Optional<String> overrideResourceMessageOpt)
Constructeur nécessaire pour le ksp.- Parameters:
args
- Liste des arguments réduite à un seul castable en integer. Cet argument correspond au nombre de chiffres maximum autorisé sur le Double. maxLength Valeur n du segment ]-10^n, 10^n[ dans lequel est comprise la valeur.
-
-
Method Detail
-
checkConstraint
public boolean checkConstraint(Double value)
-
getErrorMessage
public io.vertigo.core.locale.MessageText getErrorMessage()
-
getMaxLength
public final int getMaxLength()
- Returns:
- int Nombre maximum de caractères, de chiffres...
-
getProperty
public final Property getProperty()
- Specified by:
getProperty
in interfaceConstraint<Integer,D>
-
getPropertyValue
public final Integer getPropertyValue()
- Specified by:
getPropertyValue
in interfaceConstraint<Integer,D>
-
-