1 package org.xmlfield.validation.annotations; 2 3 import java.lang.annotation.ElementType; 4 import java.lang.annotation.Retention; 5 import java.lang.annotation.RetentionPolicy; 6 import java.lang.annotation.Target; 7 8 @Retention(RetentionPolicy.RUNTIME) 9 @Target({ ElementType.METHOD }) 10 public @interface Size { 11 12 int min() default 0; 13 14 int max() default Integer.MAX_VALUE; 15 16 Class<?>[] groups() default {}; 17 18 }