[SDC-29] rebase continue work to align source
[sdc.git] / test-apis-ci / src / main / java / org / openecomp / sdc / ci / tests / tosca / datatypes / ToscaTopologyTemplateDefinition.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 //      spec page 104   
29 public class ToscaTopologyTemplateDefinition {
30
31         String description;
32         Map<String, Object> inputs;
33         Map<String,ToscaNodeTemplatesTopologyTemplateDefinition> node_templates;
34 //      Map<String,ToscaRelationshipTemplatesTopologyTemplateDefinition> relationship_templates;
35         Map<String,ToscaGroupsTopologyTemplateDefinition> groups;
36 //      Map<String,ToscaPoliciesTopologyTemplateDefinition> policies;
37 //      Map<String,ToscaOutputsTopologyTemplateDefinition> outputs;
38         ToscaSubstitutionMappingsDefinition substitution_mappings;
39         
40         public ToscaTopologyTemplateDefinition() {
41                 super();
42                 // TODO Auto-generated constructor stub
43         }
44
45
46         public ToscaSubstitutionMappingsDefinition getSubstitution_mappings() {
47                 return substitution_mappings;
48         }
49
50
51         public void setSubstitution_mappings(ToscaSubstitutionMappingsDefinition substitution_mappings) {
52                 this.substitution_mappings = substitution_mappings;
53         }
54
55         public String getDescription() {
56                 return description;
57         }
58
59         public void setDescription(String description) {
60                 this.description = description;
61         }
62
63         public Map<String, Object> getInputs() {
64                 return inputs;
65         }
66
67         public void setInputs(Map<String, Object> inputs) {
68                 this.inputs = inputs;
69         }
70
71         public Map<String, ToscaNodeTemplatesTopologyTemplateDefinition> getNode_templates() {
72                 return node_templates;
73         }
74
75         public void setNode_templates(Map<String, ToscaNodeTemplatesTopologyTemplateDefinition> node_templates) {
76                 this.node_templates = node_templates;
77         }
78
79 //      public Map<String, ToscaRelationshipTemplatesTopologyTemplateDefinition> getRelationship_templates() {
80 //              return relationship_templates;
81 //      }
82 //
83 //      public void setRelationship_templates(Map<String, ToscaRelationshipTemplatesTopologyTemplateDefinition> relationship_templates) {
84 //              this.relationship_templates = relationship_templates;
85 //      }
86
87         public Map<String, ToscaGroupsTopologyTemplateDefinition> getGroups() {
88                 return groups;
89         }
90
91         public void setGroups(Map<String, ToscaGroupsTopologyTemplateDefinition> groups) {
92                 this.groups = groups;
93         }
94 //
95 //      public Map<String, ToscaPoliciesTopologyTemplateDefinition> getPolicies() {
96 //              return policies;
97 //      }
98 //
99 //      public void setPolicies(Map<String, ToscaPoliciesTopologyTemplateDefinition> policies) {
100 //              this.policies = policies;
101 //      }
102 //
103 //      public Map<String, ToscaOutputsTopologyTemplateDefinition> getOutputs() {
104 //              return outputs;
105 //      }
106 //
107 //      public void setOutputs(Map<String, ToscaOutputsTopologyTemplateDefinition> outputs) {
108 //              this.outputs = outputs;
109 //      }
110 //
111 //      public Map<String, ToscaSubstitutionMappingsDefinition> getSubstitution_mappings() {
112 //              return substitution_mappings;
113 //      }
114 //
115 //      public void setSubstitution_mappings(Map<String, ToscaSubstitutionMappingsDefinition> substitution_mappings) {
116 //              this.substitution_mappings = substitution_mappings;
117 //      }
118
119 //      @Override
120 //      public String toString() {
121 //              return "ToscaTopologyTemplateDefinition [description=" + description + ", inputs=" + inputs + ", node_templates=" + node_templates + ", relationship_templates=" + relationship_templates + ", groups=" + groups + ", policies="
122 //                              + policies + ", outputs=" + outputs + ", substitution_mappings=" + substitution_mappings + "]";
123 //      }
124
125         //gets Type description for Yaml snake
126         public static TypeDescription getTypeDescription(){
127         TypeDescription typeDescription = new TypeDescription(ToscaTopologyTemplateDefinition.class);
128         typeDescription.putMapPropertyType("inputs", String.class, Object.class);
129         typeDescription.putMapPropertyType("node_templates", String.class, ToscaNodeTemplatesTopologyTemplateDefinition.class);
130         typeDescription.putMapPropertyType("groups", String.class, ToscaGroupsTopologyTemplateDefinition.class);
131         return typeDescription;
132         }
133         
134         
135 }