re base code
[sdc.git] / catalog-be / src / main / java / org / openecomp / sdc / be / tosca / model / ToscaInput.java
1 package org.openecomp.sdc.be.tosca.model;
2
3 import java.util.HashMap;
4 import java.util.Map;
5
6 public class ToscaInput extends ToscaProperty {
7     private  Map<String,ToscaAnnotation> annotations;
8
9     //copy constructor
10     public ToscaInput(ToscaProperty toscaProperty){
11         super(toscaProperty);
12     }
13
14
15     public Map<String, ToscaAnnotation> getAnnotations() {
16         return annotations;
17     }
18
19     public void setAnnotations(Map<String, ToscaAnnotation> annotations) {
20         this.annotations = annotations;
21     }
22     public void addAnnotation(String name, ToscaAnnotation annotaion){
23         if ( annotations == null ){
24             annotations = new HashMap<>();
25         }
26         annotations.put(name, annotaion);
27
28
29     }
30 }