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