@Documented @Constraint(validatedBy={}) @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-2014 Red Hat Middleware, LLC. All Rights Reserved