re base code
[sdc.git] / test-apis-ci / src / main / java / org / openecomp / sdc / ci / tests / tosca / datatypes / ToscaInputsAnnotation.java
1 package org.openecomp.sdc.ci.tests.tosca.datatypes;
2
3 import org.yaml.snakeyaml.TypeDescription;
4
5 import java.util.Map;
6 import java.util.Objects;
7
8 public class ToscaInputsAnnotation {
9         
10         String name;
11         String type;
12         private Map<String, Object> properties;
13         
14         public String getName() {
15                 return name;
16         }
17         public void setName(String name) {
18                 this.name = name;
19         }
20         public String getType() {
21                 return type;
22         }
23         public void setType(String type) {
24                 this.type = type;
25         }
26         public Map<String, Object> getProperties() {
27                 return properties;
28         }
29         public void setProperties(Map<String, Object> properties) {
30                 this.properties = properties;
31         }
32         
33         
34         //gets Type description for Yaml snake
35         public static TypeDescription getTypeDescription(){
36         return new TypeDescription(ToscaInputsAnnotation.class);
37         }
38
39         @Override
40         public boolean equals(Object o) {
41                 if (this == o) return true;
42                 if (o == null || getClass() != o.getClass()) return false;
43                 ToscaInputsAnnotation that = (ToscaInputsAnnotation) o;
44                 return Objects.equals(type, that.type);
45         }
46
47         @Override
48         public int hashCode() {
49                 return Objects.hash(type);
50         }
51 }