01: package org.conform.validator;
02:
03: import java.lang.annotation.*;
04:
05: @Target({ElementType.FIELD})
06: @Retention(RetentionPolicy.RUNTIME)
07: @ValidatorImplementation(CLASS=RegularExpressionValidator.class)
08: public @interface RegularExpression {
09: RegularExpressionType type() default RegularExpressionType.CUSTOM;
10:
11: String expression() default ".*";
12: }
|