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: import nl.knowlogy.validation.ErrorCodes;
10:
11: @Retention(RUNTIME)
12: @Target({ElementType.METHOD})
13: public @interface ValidateRange {
14:
15: long min();
16:
17: long max();
18:
19: String errorCode() default ErrorCodes.INVALID_RANGE;
20: }
|