@Documented
@Constraint(validatedBy=BicValueValidator.class)
@Target({METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER})
@Retention(RUNTIME)
@AlternateSize(size1=8,
size2=11)
public @interface BicValue
The annotated element must be a valid BIC (Business Identifier Code in the past also known as
Bank Identifier Code).
Supported types are Strings, other Objects are transfered to Strings, null elements
are considered valid.
If ignoreWhiteSpaces is set to true, whitespaces are removed before
test is done.
It's a formal test, against format definition, size and SWIFT country list.
There is no test of validity of the BIC!
- Author:
- Manfred Tremmel