01: /*
02: * JFox - The most lightweight Java EE Application Server!
03: * more details please visit http://www.huihoo.org/jfox or http://www.jfox.org.cn.
04: *
05: * JFox is licenced and re-distributable under GNU LGPL.
06: */
07: package org.jfox.mvc.validate;
08:
09: import java.lang.annotation.Retention;
10: import java.lang.annotation.RetentionPolicy;
11: import java.lang.annotation.Target;
12: import java.lang.annotation.ElementType;
13:
14: /**
15: * @author <a href="mailto:jfox.young@gmail.com">Yang Yong</a>
16: */
17: @Retention(RetentionPolicy.RUNTIME)
18: @Target(ElementType.FIELD)
19: public @interface DateValidation {
20:
21: /**
22: * default email validator class
23: */
24: Class<? extends Validator> validatorClass() default DateValidator.class;
25:
26: String format() default "yyyy-MM-dd";
27:
28: /**
29: * 是��以为空
30: */
31: boolean nullable() default false;
32: }
|