Annotation Type Bic


  • @Documented
    @Constraint(validatedBy=BicValidator.class)
    @Target({METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER})
    @Retention(RUNTIME)
    @AlternateSize(size1=8,
                   size2=11)
    public @interface 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
    • Optional Element Summary

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

      • 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 javax.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