org.hibernate.validator.constraints
Annotation Type NotEmpty
@Documented
@Constraint(validatedBy={})
@Target(value={METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER})
@Retention(value=RUNTIME)
@NotNull
@Size(min=1)
public @interface NotEmpty
Asserts that the annotated string, collection, map or array is not null
or empty.
- Author:
- Emmanuel Bernard, Hardy Ferentschik
message
public abstract String message
- Default:
- "{org.hibernate.validator.constraints.NotEmpty.message}"
groups
public abstract Class<?>[] groups
- Default:
- {}
payload
public abstract Class<? extends Payload>[] payload
- Default:
- {}
Copyright © 2007-2011 Red Hat Middleware, LLC. All Rights Reserved