@Documented @Constraint(validatedBy=NotBlankValidator.class) @Target(value={METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER}) @Retention(value=RUNTIME) @NotNull public @interface NotBlank
null
or empty.
The difference to NotEmpty
is that trailing whitespaces are getting ignored.Copyright © 2007-2012 Red Hat Middleware, LLC. All Rights Reserved