@Documented @Constraint(validatedBy=NullableNotBlankValidator.class) @Target(value={METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER}) @Retention(value=RUNTIME) public @interface NullableNotBlank
When a String is not null it should not be empty nor consists of only whitespaces.
Compared to NotEmpty this validator will not accept whitespaces as valid.
Compared to NotBlank this validator will accept null as valid.
public abstract java.lang.Class<?>[] groups
Groups.
public abstract java.lang.String message
Message.
public abstract java.lang.Class<? extends javax.validation.Payload>[] payload
Payload.
Copyright © 2014-2015 Konik.io. All Rights Reserved.