Annotation Type BicValue
@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,
If
It's a formal test, against format definition, size and SWIFT country list.
There is no test of validity of the BIC!
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfaceDefines several@BicValueannotations on the same element. -
Optional Element Summary
Optional Elements
-
Element Details
-
message
String messagelocalized message.- Returns:
- localized validation message
- Default:
- "{de.knightsoftnet.validators.shared.Bic.message}"
-
groups
Class<?>[] groupsgroups to use.- Returns:
- array of validation groups
- Default:
- {}
-
payload
Class<? extends jakarta.validation.Payload>[] payloadpayload whatever.- Returns:
- payload class
- Default:
- {}
-
ignoreWhitspaces
@OverridesAttribute(constraint=AlternateSize.class, name="ignoreWhiteSpaces") boolean ignoreWhitspacesshould white spaces be ignored (true/false).- Returns:
- true if white spaces should be ignored
- Default:
- false
-