@Documented
@Constraint(validatedBy=IsbnFormatedValidator.class)
@Target({METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER})
@Retention(RUNTIME)
@AlternateSize(size1=13,
size2=17)
public @interface IsbnFormated
The annotated element must be a valid International Standard Book Number in the long (13 digits)
or short (10 digits) format.
Supported types are Strings, other Objects are transfered to Strings, null elements
are considered valid. Minus signs as separators must be set on the correct positions.
There are format, size and checksum tests by apache commons validation routines.
- Author:
- Manfred Tremmel