DCAE-D be initial commit
[sdc/dcae-d/dt-be-main.git] / dcaedt_validator / checker / src / main / java / org / onap / sdc / dcae / checker / annotations / Checks.java
1 package org.onap.sdc.dcae.checker.annotations;
2
3 import java.lang.annotation.Retention;
4 import java.lang.annotation.RetentionPolicy;
5 import java.lang.annotation.ElementType;
6 import java.lang.annotation.Target;
7
8
9 /** */
10 @Retention(RetentionPolicy.RUNTIME)
11 @Target({ElementType.TYPE, ElementType.METHOD}) 
12 /* The iffy part: as a type annotaton we do not need a path or a version specification,
13    as a method annotation it is mandatory (cannot be the default) 
14          We could forsee that a version indcation at type level would cover all check handler within the type
15  */
16 public @interface Checks {
17   String path() default "/";
18         String[] version() default { "1.0", "1.0.0", "1.1", "1.1.0" };
19 }