Top Description Inners Methods
javax.validation.constraints

public @Interface NotBlank

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

The annotated element must not be null and must contain at least one non-whitespace character. Accepts CharSequence.
Author
Hardy Ferentschik
Since
2.0
See Also
Character#isWhitespace(char)

Nested and Inner Type Summary

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

Defines several @NotBlank constraints on the same element.

Method Summary

Modifier and TypeMethod and Description
public Class<?>[]
public String
public Class<? extends Payload>[]
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()
javax.validation.constraints back to summary

public @Interface NotBlank.List

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

Defines several @NotBlank constraints on the same element.
See Also
NotBlank

Method Summary

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

Method Detail

valueback to summary
public NotBlank[] value()