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 EmailValidation {
20:
21: /**
22: * default email validator class
23: */
24: Class<? extends Validator> validatorClass() default EmailValidator.class;
25:
26: /**
27: * 是��以为空
28: */
29: boolean nullable() default false;
30: }
|