Annotation Type ISBN
-
@Documented @Constraint(validatedBy={}) @Target({METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER,TYPE_USE}) @Retention(RUNTIME) @Repeatable(List.class) public @interface ISBN
Checks that the annotated character sequence is a valid ISBN. The length of the number and the check digit are both verified.The supported type is
CharSequence.nullis considered valid.During validation all non ISBN characters are ignored. All digits and 'X' are considered to be valid ISBN characters. This is useful when validating ISBN with dashes separating parts of the number (ex.
978-161-729-045-9).- Since:
- 6.0.6
- Author:
- Marko Bekhta