Annotation Type Iban


The annotated element must be a valid International Bank Account Number.
Supported types are Strings, other Objects are transfered to Strings, null elements are considered valid. Whitespaces as separators are allowed when ignoreWhitspaces is set to true.
There are format, size, SEPA country and checksum tests by apache commons validation routines.
Author:
Manfred Tremmel
  • Nested Class Summary

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

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Class<?>[]
    groups to use.
    boolean
    should whitespaces 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.Iban.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=SizeWithoutSeparators.class, name="ignoreWhiteSpaces") boolean ignoreWhitspaces
      should whitespaces be ignored (true/false).
      Returns:
      true if separators should be ignored
      Default:
      false