Annotation Type Iban
-
@Documented @Constraint(validatedBy=IbanValidator.class) @Target({METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER}) @Retention(RUNTIME) @SizeWithoutSeparators(min=16, max=34) public @interface Iban
The annotated element must be a valid International Bank Account Number.
Supported types are Strings, other Objects are transfered to Strings,nullelements are considered valid. Whitespaces as separators are allowed whenignoreWhitspacesis set totrue.
There are format, size, SEPA country and checksum tests by apache commons validation routines.- Author:
- Manfred Tremmel
-
-
Element Detail
-
message
String message
localized message.- Returns:
- localized validation message
- Default:
- "{de.knightsoftnet.validators.shared.Iban.message}"
-
-
-
groups
Class<?>[] groups
groups to use.- Returns:
- array of validation groups
- Default:
- {}
-
-
-
payload
Class<? extends javax.validation.Payload>[] payload
payload whatever.- Returns:
- payload class
- Default:
- {}
-
-
-
ignoreWhitspaces
@OverridesAttribute(constraint=SizeWithoutSeparators.class, name="ignoreWhiteSpaces") boolean ignoreWhitspaces
should whitespaces be ignored (true/false).- Returns:
- true if separators should be ignored
- Default:
- false
-
-