@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
).
public abstract java.lang.String message
public abstract ISBN.Type type
Copyright © 2007-2022 Red Hat, Inc. All Rights Reserved