|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value={METHOD,FIELD,ANNOTATION_TYPE}) @Retention(value=RUNTIME) @Documented @Constraint(validatedBy=NotBlankValidator.class) public @interface NotBlank
The annotated element of type String
must not be null
, empty or contain only whitespaces. With other words, the String value must not be blank.
Only String
values are allowed.
Optional Element Summary | |
---|---|
Class<?>[] |
groups Support of validation groups. |
String |
message Returns the message key to be rendered, if the constraint has been violated. |
Class<? extends javax.validation.Payload>[] |
payload Support of payloads. |
public abstract String message
Defaults to returning "{de.smartics.validation.constraints.NotBlank.message}".
public abstract Class<?>[] groups
public abstract Class<? extends javax.validation.Payload>[] payload
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |