01: /*******************************************************************************
02: * Portions created by Sebastian Thomschke are copyright (c) 2005-2007 Sebastian
03: * Thomschke.
04: *
05: * All Rights Reserved. This program and the accompanying materials
06: * are made available under the terms of the Eclipse Public License v1.0
07: * which accompanies this distribution, and is available at
08: * http://www.eclipse.org/legal/epl-v10.html
09: *
10: * Contributors:
11: * Sebastian Thomschke - initial implementation.
12: *******************************************************************************/package net.sf.oval.configuration.annotation;
13:
14: import java.lang.annotation.Annotation;
15: import java.lang.annotation.Documented;
16: import java.lang.annotation.ElementType;
17: import java.lang.annotation.Retention;
18: import java.lang.annotation.RetentionPolicy;
19: import java.lang.annotation.Target;
20:
21: /**
22: * Annotations tagged with this annotation
23: * represent single-value constraints.<br>
24: * @author Sebastian Thomschke
25: */
26: @Documented
27: @Retention(RetentionPolicy.RUNTIME)
28: @Target(ElementType.ANNOTATION_TYPE)
29: public @interface Constraint {
30: /**
31: * The class implementing the constraint logic. It can
32: * check if a value satisfies the constraint.
33: */
34: Class<? extends AnnotationCheck<? extends Annotation>> checkWith();
35: }
|