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
15
16 @Target({ TYPE })
17 @Retention(RUNTIME)
18 @Constraint(validatedBy = NoBlankMapKeysValidator.class)
19 @Documented
20 public @interface NoBlankMapKeys {
21
22 String message() default "blank map keys are not allowed";
23
24 Class<?>[] groups() default {};
25
26 Class<? extends Payload>[] payload() default {};
27
28 }