Annotation Type Isbn13
@Documented
@Constraint(validatedBy=Isbn13Validator.class)
@Target({METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER})
@Retention(RUNTIME)
@SizeWithoutSeparators(min=13,
max=13)
public @interface Isbn13
The annotated element must be a valid International Standard Book Number in the long (13 digits)
format.
Supported types are Strings, other Objects are transfered to Strings,
There are numeric, size and checksum tests by apache commons validation routines.
Supported types are Strings, other Objects are transfered to Strings,
null elements
are considered valid. Minus signs as separators are allowed, when ignoreSeparators
is set to true.There are numeric, size and checksum tests by apache commons validation routines.
- Author:
- Manfred Tremmel
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfaceDefines several@Isbn13annotations on the same element. -
Optional Element Summary
Optional Elements
-
Element Details
-
message
String messagelocalized message.- Returns:
- localized validation message
- Default:
- "{de.knightsoftnet.validators.shared.Isbn13.message}"
-
groups
Class<?>[] groupsgroups to use.- Returns:
- array of validation groups
- Default:
- {}
-
payload
Class<? extends jakarta.validation.Payload>[] payloadpayload whatever.- Returns:
- payload class
- Default:
- {}
-
ignoreSeparators
@OverridesAttribute(constraint=SizeWithoutSeparators.class, name="ignoreMinus") boolean ignoreSeparatorsshould separating minus signs be ignored (true/false).- Returns:
- true if separators should be ignored
- Default:
- false
-