Annotation Type BankCountry
-
@Documented @Constraint(validatedBy=BankCountryValidator.class) @Target({TYPE,ANNOTATION_TYPE}) @Retention(RUNTIME) public @interface BankCountry
The annotated bean must contain three properties:- country code (option
fieldCountryCode) - iban (option
fieldIban) - bic (option
fieldBic)
Supported types are beans,nullelements are considered valid.
IfallowLowerCaseCountryCodeis set to true, lower case country codes are accepted.- Author:
- Manfred Tremmel
- country code (option
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleanallowLowerCaseCountryCodeare lower case country codes allowed (true/false).StringfieldBicfield name of the bic field.StringfieldCountryCodefield name of the country code field.StringfieldIbanfield name of the iban field.Class<?>[]groupsgroups to use.Stringmessagelocalized message.StringmessageWrongBiclocalized message.Class<? extends javax.validation.Payload>[]payloadpayload whatever.
-
-
-
Element Detail
-
message
String message
localized message.- Returns:
- localized validation message
- Default:
- "{de.knightsoftnet.validators.shared.BankCountry.message}"
-
-
-
messageWrongBic
String messageWrongBic
localized message.- Returns:
- localized message for wrong bic
- Default:
- "{de.knightsoftnet.validators.shared.BankCountryWrongBic.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:
- {}
-
-
-
fieldCountryCode
String fieldCountryCode
field name of the country code field.- Returns:
- field/path contains country code
- Default:
- "countryCode"
-
-
-
fieldIban
String fieldIban
field name of the iban field.- Returns:
- field/path contains iban
- Default:
- "iban"
-
-
-
fieldBic
String fieldBic
field name of the bic field.- Returns:
- field/path contains bic
- Default:
- "bic"
-
-