@Documented @Constraint(validatedBy={}) @Target(value={METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER,TYPE_USE}) @Retention(value=RUNTIME) @Repeatable(value=ISBN.List.class) public @interface ISBN
The supported type is CharSequence
. null
is 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
).
Copyright © 2019 JBoss by Red Hat. All rights reserved.