1 package org.openecomp.sdc.ci.tests.tosca.datatypes;
3 import org.openecomp.sdc.ci.tests.datatypes.enums.ToscaKeysEnum;
4 import org.yaml.snakeyaml.TypeDescription;
6 import java.util.HashMap;
9 public class ToscaAnnotationsTypesDefinition extends ToscaTypesDefinition {
11 public static final String SOURCE_ANNOTATION = "org.openecomp.annotations.Source";
13 private Map<String, ToscaTypeDefinition> annotation_types = new HashMap<>();
15 public Map<String, ToscaTypeDefinition> getAnnotation_types() {
16 return annotation_types;
19 public void setAnnotation_types(Map<String, ToscaTypeDefinition> annotation_types) {
20 this.annotation_types = annotation_types;
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;