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)
    The country codes of iban and bic are checked against the country code for validity.
    Supported types are beans, null elements are considered valid.
    If allowLowerCaseCountryCode is set to true, lower case country codes are accepted.
    Author:
    Manfred Tremmel
    • 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"
      • allowLowerCaseCountryCode

        boolean allowLowerCaseCountryCode
        are lower case country codes allowed (true/false).
        Returns:
        true if lower case countries are allowed
        Default:
        false
      • 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"