Upgrade sonar plugin
[vid.git] / vid-app-common / src / main / java / org / openecomp / vid / asdc / beans / tosca / TopologyTemplate.java
1 /*-\r
2  * ============LICENSE_START=======================================================\r
3  * VID\r
4  * ================================================================================\r
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.\r
6  * ================================================================================\r
7  * Licensed under the Apache License, Version 2.0 (the "License");\r
8  * you may not use this file except in compliance with the License.\r
9  * You may obtain a copy of the License at\r
10  * \r
11  *      http://www.apache.org/licenses/LICENSE-2.0\r
12  * \r
13  * Unless required by applicable law or agreed to in writing, software\r
14  * distributed under the License is distributed on an "AS IS" BASIS,\r
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
16  * See the License for the specific language governing permissions and\r
17  * limitations under the License.\r
18  * ============LICENSE_END=========================================================\r
19  */\r
20 \r
21 package org.openecomp.vid.asdc.beans.tosca;\r
22 \r
23 import java.util.HashMap;\r
24 import java.util.Map;\r
25 \r
26 /**\r
27  * The Class TopologyTemplate.\r
28  */\r
29 public class TopologyTemplate {\r
30         \r
31         /** The substitution mappings. */\r
32         private SubstitutionMappings substitution_mappings;\r
33         \r
34         /** The inputs. */\r
35         private Map<String, Input> inputs;\r
36         \r
37         /** The node templates. */\r
38         private Map<String, NodeTemplate> node_templates;\r
39         \r
40         /** The groups. */\r
41         private Map<String, Group> groups;\r
42         \r
43         /**\r
44          * Instantiates a new topology template.\r
45          */\r
46         public TopologyTemplate() {\r
47                 substitution_mappings = new SubstitutionMappings();\r
48                 inputs = new HashMap<String, Input> ();\r
49                 node_templates = new HashMap<String, NodeTemplate> ();\r
50                 groups = new HashMap<String, Group> ();\r
51         }\r
52         \r
53         /**\r
54          * Gets the substitution mappings.\r
55          *\r
56          * @return the substitution mappings\r
57          */\r
58         public SubstitutionMappings getsubstitution_mappings() {\r
59                 return this.substitution_mappings;\r
60         }\r
61         \r
62         /**\r
63          * Sets the substitution mappings.\r
64          *\r
65          * @param substitution_mappings the new substitution mappings\r
66          */\r
67         public void setsubstitution_mappings(SubstitutionMappings substitution_mappings) {\r
68                 this.substitution_mappings = substitution_mappings;\r
69         }\r
70         \r
71         /**\r
72          * Gets the inputs.\r
73          *\r
74          * @return the inputs\r
75          */\r
76         public Map<String, Input> getInputs() {\r
77                 return inputs;\r
78         }\r
79         \r
80         /**\r
81          * Sets the inputs.\r
82          *\r
83          * @param inputs the inputs\r
84          */\r
85         public void setInputs(Map<String, Input> inputs) {\r
86                 this.inputs = inputs;\r
87         }\r
88         \r
89         /**\r
90          * Gets the node templates.\r
91          *\r
92          * @return the node templates\r
93          */\r
94         public Map<String, NodeTemplate> getnode_templates() {\r
95                 return node_templates;\r
96         }\r
97         \r
98         /**\r
99          * Setnode templates.\r
100          *\r
101          * @param node_templates the node templates\r
102          */\r
103         public void setnode_templates(Map<String, NodeTemplate> node_templates) {\r
104                 this.node_templates = node_templates;\r
105         }\r
106 \r
107         /**\r
108          * Gets the groups.\r
109          *\r
110          * @return the groups\r
111          */\r
112         public Map<String, Group> getGroups() {\r
113                 return groups;\r
114         }\r
115 \r
116         /**\r
117          * Sets the groups.\r
118          *\r
119          * @param groups the groups\r
120          */\r
121         public void setGroups(Map<String, Group> groups) {\r
122                 this.groups = groups;\r
123         }\r
124 }\r