Top Description Inners Methods
org.hibernate.validator.constraints

public @Interface EAN

extends Annotation
Annotations
@Documented
@Constraint
validatedBy:
@Target:METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE
@Retention:RUNTIME
@Repeatable:List
@ReportAsSingleViolation
@Mod10Check
Static Imports
java.lang.annotation.ElementType.ANNOTATION_TYPE, .ElementType.CONSTRUCTOR, .ElementType.FIELD, .ElementType.METHOD, .ElementType.PARAMETER, .ElementType.TYPE_USE, .RetentionPolicy.RUNTIME

Checks that the annotated character sequence is a valid EAN 13 number. The length of the number and the check digit are verified

The supported type is CharSequence. null is considered valid.

Author
Hardy Ferentschik

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static @interface
EAN.List

Defines several @EAN annotations on the same element.

public static enum

Method Summary

Modifier and TypeMethod and Description
public Class<?>[]
public String
public Class<? extends Payload>[]
public EAN.Type
type()

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

groupsback to summary
public Class<?>[] groups()
messageback to summary
public String message()
payloadback to summary
public Class<? extends Payload>[] payload()
typeback to summary
public EAN.Type type()
org.hibernate.validator.constraints back to summary

public @Interface EAN.List

extends Annotation
Annotations
@Target:METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE
@Retention:RUNTIME
@Documented

Defines several @EAN annotations on the same element.

Method Summary

Modifier and TypeMethod and Description
public EAN[]
Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public EAN[] value()
org.hibernate.validator.constraints back to summary

public final Enum EAN.Type

extends Enum<EAN.Type>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final EAN.Type
public static final EAN.Type

Constructor Summary

AccessConstructor and Description
private
Type()

Method Summary

Modifier and TypeMethod and Description
public static EAN.Type
public static EAN.Type[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

EAN13back to summary
public static final EAN.Type EAN13
EAN8back to summary
public static final EAN.Type EAN8

Constructor Detail

Typeback to summary
private Type()

Method Detail

valueOfback to summary
public static EAN.Type valueOf(String name)
valuesback to summary
public static EAN.Type[] values()