[SDC-29] rebase continue work to align source
[sdc.git] / test-apis-ci / src / main / java / org / openecomp / sdc / ci / tests / tosca / datatypes / ToscaNodeTemplatesTopologyTemplateDefinition.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.openecomp.sdc.ci.tests.tosca.datatypes;
22
23 import java.util.List;
24 import java.util.Map;
25
26 import org.yaml.snakeyaml.TypeDescription;
27
28 public class ToscaNodeTemplatesTopologyTemplateDefinition {
29
30         private String name;
31         private String type;
32         private String description;
33         private String [] directives;
34         private Map<String, Object> properties;
35         private List<Map<String, Object>> attributes;
36         private List<Map<String, Object>> requirements;
37         private List<Map<String, Object>> capabilities;
38         private List<Map<String, Object>> interfaces;
39         private List<Map<String, Object>> artifacts;
40         private List<Map<String, Object>> node_filter;
41         private String copy;
42         private Map<String, String> metadata;
43
44         
45 //      private Map<String, ToscaPropertiesNodeTemplatesDefinition> properties;
46 //      private Map<String, ToscaRequirementsNodeTemplatesDefinition> requirements;
47 //      private Map<String, ToscaCapabilitiesNodeTemplatesDefinition> capabilities;
48
49         public ToscaNodeTemplatesTopologyTemplateDefinition() {
50                 super();
51         }
52         
53         public Map<String, String> getMetadata() {
54                 return metadata;
55         }
56
57         public void setMetadata(Map<String, String> metadata) {
58                 this.metadata = metadata;
59         }
60
61
62         public String getName() {
63                 return name;
64         }
65
66         public void setName(String name) {
67                 this.name = name;
68         }
69
70         public String getType() {
71                 return type;
72         }
73
74         public void setType(String type) {
75                 this.type = type;
76         }
77
78         public String getDescription() {
79                 return description;
80         }
81
82         public void setDescription(String description) {
83                 this.description = description;
84         }
85
86         public String[] getDirectives() {
87                 return directives;
88         }
89
90         public void setDirectives(String[] directives) {
91                 this.directives = directives;
92         }
93
94
95         public Map<String, Object> getProperties() {
96                 return properties;
97         }
98
99         public void setProperties(Map<String, Object> properties) {
100                 this.properties = properties;
101         }
102
103         public List<Map<String, Object>> getAttributes() {
104                 return attributes;
105         }
106
107         public void setAttributes(List<Map<String, Object>> attributes) {
108                 this.attributes = attributes;
109         }
110
111         public List<Map<String, Object>> getRequirements() {
112                 return requirements;
113         }
114
115         public void setRequirements(List<Map<String, Object>> requirements) {
116                 this.requirements = requirements;
117         }
118
119         public List<Map<String, Object>> getCapabilities() {
120                 return capabilities;
121         }
122
123         public void setCapabilities(List<Map<String, Object>> capabilities) {
124                 this.capabilities = capabilities;
125         }
126
127         public List<Map<String, Object>> getInterfaces() {
128                 return interfaces;
129         }
130
131         public void setInterfaces(List<Map<String, Object>> interfaces) {
132                 this.interfaces = interfaces;
133         }
134
135         public List<Map<String, Object>> getArtifacts() {
136                 return artifacts;
137         }
138
139         public void setArtifacts(List<Map<String, Object>> artifacts) {
140                 this.artifacts = artifacts;
141         }
142
143         public List<Map<String, Object>> getNode_filter() {
144                 return node_filter;
145         }
146
147         public void setNode_filter(List<Map<String, Object>> node_filter) {
148                 this.node_filter = node_filter;
149         }
150
151         public String getCopy() {
152                 return copy;
153         }
154
155         public void setCopy(String copy) {
156                 this.copy = copy;
157         }
158         
159         //gets Type description for Yaml snake
160         public static TypeDescription getTypeDescription(){
161         TypeDescription typeDescription = new TypeDescription(ToscaNodeTemplatesTopologyTemplateDefinition.class);
162         typeDescription.putMapPropertyType("properties", String.class, Object.class);
163         typeDescription.putListPropertyType("requirements", Map.class);
164         typeDescription.putListPropertyType("capabilities", Map.class);
165         typeDescription.putListPropertyType("attributes", Map.class);
166         typeDescription.putListPropertyType("interfaces", Map.class);
167         typeDescription.putListPropertyType("artifacts", Map.class);
168         typeDescription.putListPropertyType("node_filter", Map.class);
169         typeDescription.putMapPropertyType("metadata", String.class, String.class);
170         return typeDescription;
171         }
172         
173         
174 }