Annotation Type EAN


@Documented @Constraint(validatedBy={}) @Target({METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER,TYPE_USE}) @Retention(RUNTIME) @Repeatable(List.class) @ReportAsSingleViolation @Mod10Check public @interface EAN
Checks that the annotated character sequence is a valid EAN 13 number. The length of the number and the check digit are verified

The supported type is CharSequence. null is considered valid.

Author:
Hardy Ferentschik
  • Nested Class Summary

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

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Class<?>[]
     
     
    Class<? extends jakarta.validation.Payload>[]
     
     
  • Element Details

    • message

      String message
      Default:
      "{org.hibernate.validator.constraints.EAN.message}"
    • groups

      Class<?>[] groups
      Default:
      {}
    • payload

      Class<? extends jakarta.validation.Payload>[] payload
      Default:
      {}
    • type

      EAN.Type type
      Default:
      EAN13