re base code
[sdc.git] / catalog-be / src / main / java / org / openecomp / sdc / be / tosca / model / ToscaAnnotation.java
1 package org.openecomp.sdc.be.tosca.model;
2
3 import java.util.HashMap;
4 import java.util.Map;
5
6 public class ToscaAnnotation {
7     private String type;
8
9     private Map<String ,Object> properties ;
10
11     public void setDescription(String description) {
12         this.description = description;
13     }
14
15     public String getDescription() {
16         return description;
17     }
18
19     private String description;
20
21     public String getType() {
22         return type;
23     }
24
25     public void setType(String type) {
26         this.type = type;
27     }
28     
29     public void addProperty(String name, Object property){
30         if ( properties == null ){
31             properties = new HashMap<>();
32         }
33         properties.put(name, property);
34     }
35
36     public void setProperties(Map<String, Object> properties) {
37         this.properties = properties;
38     }
39
40     public Map<String, Object> getProperties() {
41         return properties;
42     }
43
44
45
46
47 }