Top Description Inners Methods
org.hibernate.validator.constraints

public @Interface Length

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

Validate that the string is between min and max included.
Authors
Emmanuel Bernard, Hardy Ferentschik

Nested and Inner Type Summary

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

Defines several @Length annotations on the same element.

Method Summary

Modifier and TypeMethod and Description
public Class<?>[]
public int
max()

public String
public int
min()

public Class<? extends Payload>[]
Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

groupsback to summary
public Class<?>[] groups()
maxback to summary
public int max()
messageback to summary
public String message()
minback to summary
public int min()
payloadback to summary
public Class<? extends Payload>[] payload()
org.hibernate.validator.constraints back to summary

public @Interface Length.List

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

Defines several @Length annotations on the same element.

Method Summary

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

Method Detail

valueback to summary
public Length[] value()