01: package nl.knowlogy.validation.annotations;
02:
03: import static java.lang.annotation.RetentionPolicy.RUNTIME;
04:
05: import java.lang.annotation.ElementType;
06: import java.lang.annotation.Retention;
07: import java.lang.annotation.Target;
08:
09: @Retention(RUNTIME)
10: @Target({ElementType.METHOD})
11: public @interface ValidateAllowedValues {
12:
13: String[] allowedValues();
14:
15: String errorCode() default "[unassigned]";
16:
17: }
|