Annotation Type Bic


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
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static @interface 
    Defines several @BIC annotations on the same element.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Class<?>[]
    groups to use.
    boolean
    should white spaces be ignored (true/false).
    localized message.
    Class<? extends jakarta.validation.Payload>[]
    payload whatever.
  • Element Details

    • message

      String message
      localized message.
      Returns:
      localized validation message
      Default:
      "{de.knightsoftnet.validators.shared.Bic.message}"
    • groups

      Class<?>[] groups
      groups to use.
      Returns:
      array of validation groups
      Default:
      {}
    • payload

      Class<? extends jakarta.validation.Payload>[] payload
      payload whatever.
      Returns:
      payload class
      Default:
      {}
    • ignoreWhitspaces

      @OverridesAttribute(constraint=AlternateSize.class, name="ignoreWhiteSpaces") boolean ignoreWhitspaces
      should white spaces be ignored (true/false).
      Returns:
      true if white spaces should be ignored
      Default:
      false