01: package org.conform.validator;
02:
03: import java.lang.annotation.*;
04:
05: @Target({ElementType.FIELD})
06: @Retention(RetentionPolicy.RUNTIME)
07: @ValidatorImplementation(CLASS=TimeRangeValidator.class)
08: public @interface TimeRange {
09: TimeRangeType from() default TimeRangeType.NONE;
10:
11: TimeRangeType until() default TimeRangeType.NONE;
12: }
|