@IBAN annotation

back to index

Action

(Available since v1.1)
Requires that a value be a valid IBAN (International Bank Account Number) number. The annotation not only verifies the account checksum, but it also checks that the format of the account matches the official account format for that country. The set of patterns is stored in an external file called iban.properties, located in com\planetalia\dynject\validation\business. If a new country adopts the IBAN format or changes the internal structure of its accounts (unlikely), you should manually update this file.

Javadoc Ref :  Javadoc reference@IBAN

 Input Types 1
Number, CharSequence, byte, int, short, long, double, float
 Output Types
Same as input
   

1Automatic conversion will take place if the provided input does not match any of the input classes, as described in the conversions part of the manual.

Arguments

ignoreNonDigits

Whether nondigt characters are ignored. Default is false

ignoreChars
Set of characters to ignore. Default is " " (spaces will be ignored)
message

Literal message to use if validation fails.

errorCode
Error code to use if validation fails.
messageKey
Message key to use if validation fails.

 

Example

@IBAN
private String bankAccount