Annotation Type ModCheck
-
@Documented @Deprecated @Constraint(validatedBy={}) @Target({METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER,TYPE_USE}) @Retention(RUNTIME) @Repeatable(List.class) public @interface ModCheck
Deprecated.As of release 5.1.0, replaced byMod10CheckandMod11CheckModulo check constraint.Allows to validate that a series of digits pass the mod 10 or mod 11 checksum algorithm.
The supported type is
CharSequence.nullis considered valid.- Author:
- George Gastaldi, Hardy Ferentschik
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description ModCheck.ModTypemodTypeDeprecated.intmultiplierDeprecated.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description intcheckDigitPositionDeprecated.intendIndexDeprecated.Class<?>[]groupsDeprecated.booleanignoreNonDigitCharactersDeprecated.StringmessageDeprecated.Class<? extends Payload>[]payloadDeprecated.intstartIndexDeprecated.
-
-
-
Element Detail
-
modType
ModCheck.ModType modType
Deprecated.- Returns:
- The modulus algorithm to be used
-
-
-
message
String message
Deprecated.- Default:
- "{org.hibernate.validator.constraints.ModCheck.message}"
-
-
-
groups
Class<?>[] groups
Deprecated.- Default:
- {}
-
-
-
checkDigitPosition
int checkDigitPosition
Deprecated.- Returns:
- The position of the check digit in input. Per default it is assumes that the check digit is part of the
specified range. If set, the digit at the specified position is used as check digit. If set it the following holds
true:
checkDigitPosition > 0 && (checkDigitPosition < startIndex || checkDigitPosition >= endIndex.
- Default:
- -1
-
-