public final class ConstraintLongLength extends AbstractConstraintImpl<Integer,D>
REGEX_DEFINITION_URN, SEPARATOR| Constructor and Description |
|---|
ConstraintLongLength(String name) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkConstraint(Long value) |
protected MessageText |
getDefaultMessage() |
int |
getMaxLength() |
Property |
getProperty() |
Integer |
getPropertyValue() |
void |
initParameters(String args)
Initialisation de la contrainte par des arguments passés en chaine de caractères.
|
protected void |
setMaxLength(String max) |
getErrorMessage, getName, initMsg, toStringpublic ConstraintLongLength(String name)
public void initParameters(String args)
AbstractConstraintImplinitParameters in class AbstractConstraintImpl<Integer,Long>args - Liste des arguments réduite à un seul castable en long.
Cet argument correspond au nombre de chifres maximum authorisé sur le Long.public boolean checkConstraint(Long value)
protected MessageText getDefaultMessage()
getDefaultMessage in class AbstractConstraintImpl<Integer,Long>protected final void setMaxLength(String max)
max - Nombre maximum de caractères, de chiffres...public final int getMaxLength()
public final Property getProperty()
public final Integer getPropertyValue()
Copyright © 2014. All Rights Reserved.