Annotation Type 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 Payload>[]
     
     
  • Element Details

    • message

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

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

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

      EAN.Type type
      Default:
      EAN13