01: package org.conform.validator;
02:
03: import java.lang.annotation.*;
04:
05: @Target({ElementType.FIELD})
06: @Retention(RetentionPolicy.RUNTIME)
07: @ValidatorImplementation(CLASS=NumberRangeValidator.class)
08: public @interface NumberRange {
09: String from() default "";
10:
11: boolean fromInclusive() default false;
12:
13: String until() default "";
14:
15: boolean untilInclusive() default false;
16: }
|