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 ValidateMinSize {
14:
15: long size();
16:
17: String errorCode() default ErrorCodes.INVALID_MIN_SIZE;
18:
19: }
|