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).
| Modifier and Type | Class and Description |
|---|---|
| public static @interface | ISBN.List
Defines several |
| public static enum | ISBN.Type
Defines the ISBN length. |
| Modifier and Type | Method and Description |
|---|---|
| public Class | |
| public String | |
| public Class | |
| public ISBN. |
| groups | back to summary |
|---|---|
| public Class | |
| message | back to summary |
|---|---|
| public String message() | |
| payload | back to summary |
|---|---|
| public Class | |
| type | back to summary |
|---|---|
| public ISBN. | |
@ISBN annotations on the same element.
| Modifier and Type | Method and Description |
|---|---|
| public ISBN[] |
| value | back to summary |
|---|---|
| public ISBN[] value() | |
10 and 13
which are represented as Type#ISBN_10 and Type#ISBN_13 respectively.
Using Type#ANY allows to validate values that could either be ISBN10 or ISBN13.
In such case, ISBN type would be determined by the length of the corresponding value.
| Modifier and Type | Field and Description |
|---|---|
| public static final ISBN. | |
| public static final ISBN. | |
| public static final ISBN. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ISBN. | |
| public static ISBN. |
| ANY | back to summary |
|---|---|
| public static final ISBN. | |
| ISBN_10 | back to summary |
|---|---|
| public static final ISBN. | |
| ISBN_13 | back to summary |
|---|---|
| public static final ISBN. | |
| Type | back to summary |
|---|---|
| private Type() | |
| valueOf | back to summary |
|---|---|
| public static ISBN. | |
| values | back to summary |
|---|---|
| public static ISBN. | |