re base code
[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 org.yaml.snakeyaml.TypeDescription;
24
25 import java.util.List;
26 import java.util.Map;
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 Map<String, Object> attributes;
36         private List<Map<String, Object>> requirements;
37         private Object capabilities;
38 //      private List<Map<String, Object>> capabilities;
39 //      private Map<String, ToscaPropertiesNodeTemplatesDefinition> properties;
40 //      private Map<String, ToscaRequirementsNodeTemplatesDefinition> requirements;
41 //      private Map<String, ToscaCapabilitiesNodeTemplatesDefinition> capabilities;
42         private Map<String, Object> interfaces;
43         private Map<String, Object> artifacts;
44         private Map<String, Object> node_filter;
45         private String copy;
46         private Map<String, String> metadata;
47
48
49         public ToscaNodeTemplatesTopologyTemplateDefinition() {
50                 super();
51         }
52         
53         public Object getCapabilities() {
54                 return capabilities;
55         }
56         
57         public void setCapabilities(Object capabilities) {
58                 this.capabilities = capabilities;
59         }
60         
61         public Map<String, String> getMetadata() {
62                 return metadata;
63         }
64
65         public void setMetadata(Map<String, String> metadata) {
66                 this.metadata = metadata;
67         }
68
69
70         public String getName() {
71                 return name;
72         }
73
74         public void setName(String name) {
75                 this.name = name;
76         }
77
78         public String getType() {
79                 return type;
80         }
81
82         public void setType(String type) {
83                 this.type = type;
84         }
85
86         public String getDescription() {
87                 return description;
88         }
89
90         public void setDescription(String description) {
91                 this.description = description;
92         }
93
94         public String[] getDirectives() {
95                 return directives;
96         }
97
98         public void setDirectives(String[] directives) {
99                 this.directives = directives;
100         }
101
102
103         public Map<String, Object> getProperties() {
104                 return properties;
105         }
106
107         public void setProperties(Map<String, Object> properties) {
108                 this.properties = properties;
109         }
110
111         public Map<String, Object> getAttributes() {
112                 return attributes;
113         }
114
115         public void setAttributes(Map<String, Object> attributes) {
116                 this.attributes = attributes;
117         }
118
119         public List<Map<String, Object>> getRequirements() {
120                 return requirements;
121         }
122
123         public void setRequirements(List<Map<String, Object>> requirements) {
124                 this.requirements = requirements;
125         }
126
127         public Map<String, Object> getInterfaces() {
128                 return interfaces;
129         }
130
131         public void setInterfaces(Map<String, Object> interfaces) {
132                 this.interfaces = interfaces;
133         }
134
135         public Map<String, Object> getArtifacts() {
136                 return artifacts;
137         }
138
139         public void setArtifacts(Map<String, Object> artifacts) {
140                 this.artifacts = artifacts;
141         }
142
143         public Map<String, Object> getNode_filter() {
144                 return node_filter;
145         }
146
147         public void setNode_filter(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.putMapPropertyType("capabilities",String.class, Object.class);
165 //        typeDescription.putListPropertyType("capabilities", Object.class);
166         typeDescription.putMapPropertyType("attributes", String.class, Object.class);
167         typeDescription.putMapPropertyType("interfaces", String.class, Object.class);
168         typeDescription.putMapPropertyType("artifacts", String.class, Object.class);
169         typeDescription.putMapPropertyType("node_filter", String.class, Object.class);
170         typeDescription.putMapPropertyType("metadata", String.class, String.class);
171         return typeDescription;
172         }
173         
174         
175 }