re base code
[sdc.git] / test-apis-ci / src / main / java / org / openecomp / sdc / ci / tests / tosca / datatypes / ToscaAnnotationsTypesDefinition.java
1 package org.openecomp.sdc.ci.tests.tosca.datatypes;
2
3 import org.openecomp.sdc.ci.tests.datatypes.enums.ToscaKeysEnum;
4 import org.yaml.snakeyaml.TypeDescription;
5
6 import java.util.HashMap;
7 import java.util.Map;
8
9 public class ToscaAnnotationsTypesDefinition extends ToscaTypesDefinition {
10
11     public static final String SOURCE_ANNOTATION = "org.openecomp.annotations.Source";
12
13     private Map<String, ToscaTypeDefinition> annotation_types = new HashMap<>();
14
15     public Map<String, ToscaTypeDefinition> getAnnotation_types() {
16         return annotation_types;
17     }
18
19     public void setAnnotation_types(Map<String, ToscaTypeDefinition> annotation_types) {
20         this.annotation_types = annotation_types;
21     }
22
23     public static TypeDescription getTypeDescription(){
24         TypeDescription typeDescription = new TypeDescription(ToscaAnnotationsTypesDefinition.class);
25         typeDescription.putListPropertyType(ToscaKeysEnum.IMPORTS.getToscaKey(), String.class);
26         typeDescription.putMapPropertyType(ToscaKeysEnum.ANNOTATION_TYPES.getToscaKey(), String.class, ToscaTypeDefinition.class);
27         return typeDescription;
28     }
29 }