01: package org.caramba.validator;
02:
03: import org.caramba.CarambaConstants;
04:
05: import static java.lang.annotation.ElementType.FIELD;
06: import java.lang.annotation.Retention;
07: import static java.lang.annotation.RetentionPolicy.RUNTIME;
08: import java.lang.annotation.Target;
09:
10: /**
11: * Created by IntelliJ IDEA.
12: * User: Pieter
13: * Date: Apr 7, 2006
14: * Time: 7:52:44 AM
15: * To change this template use File | Settings | File Templates.
16: */
17: @Target({FIELD})
18: @Retention(RUNTIME)
19: public @interface Validation {
20:
21: String name();
22:
23: /**
24: * The id of the CarambaErrors component to use for rendering the errors, generated by the Validator
25: */
26: String errorsId() default CarambaConstants.GLOBALERRORS;
27:
28: ValidationTrigger trigger() default ValidationTrigger.ALWAYS;
29:
30: }
|