View Javadoc
1   package org.kuali.common.util.validate;
2   
3   import static java.lang.annotation.ElementType.TYPE;
4   import static java.lang.annotation.RetentionPolicy.RUNTIME;
5   
6   import java.lang.annotation.Documented;
7   import java.lang.annotation.Retention;
8   import java.lang.annotation.Target;
9   
10  import javax.validation.Constraint;
11  import javax.validation.Payload;
12  
13  /**
14   * The annotated class must not contain any fields whose value is {@code null}
15   */
16  @Target({ TYPE })
17  @Retention(RUNTIME)
18  @Constraint(validatedBy = NoNullFieldsValidator.class)
19  @Documented
20  public @interface NoNullFields {
21  
22  	String message() default "null not allowed";
23  
24  	Class<?>[] groups() default {};
25  
26  	Class<? extends Payload>[] payload() default {};
27  
28  }