@Documented
@Constraint(validatedBy=Gtin8Validator.class)
@Target({METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER})
@Retention(RUNTIME)
@Size(min=8)
@Digits(integer=8,
fraction=0)
public @interface Gtin8
The annotated element must be a valid Global Trade Item Number (until 2009 known as European
Article Number) in the short (8 digits) format.
Supported types are Strings, other Objects are transfered to Strings, null elements
are considered valid.
There are numeric, size and checksum tests by apache commons validation routines.
- Author:
- Manfred Tremmel