Upgrade sonar plugin
[vid.git] / vid-app-common / src / main / java / org / openecomp / vid / asdc / beans / tosca / ToscaModel.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.Collection;\r
24 import java.util.LinkedList;\r
25 import java.util.Map;\r
26 \r
27 /**\r
28  * The Class ToscaModel.\r
29  */\r
30 public class ToscaModel {\r
31 \r
32         /** The tosca definitions version. */\r
33         private String tosca_definitions_version;\r
34         \r
35         /** The description. */\r
36         private String description;\r
37         \r
38         /** The metadata. */\r
39         private ToscaMetadata metadata;\r
40         \r
41         /** The topology template. */\r
42         private TopologyTemplate topology_template;\r
43         \r
44         /** The imports. */\r
45         private Collection<Map<String, Map<String, String>>> imports;\r
46         \r
47         /** The node types. */\r
48         private Map<String, Object> node_types;\r
49         \r
50         /**\r
51          * Instantiates a new tosca model.\r
52          */\r
53         public ToscaModel() {\r
54                 metadata = new ToscaMetadata();\r
55                 topology_template = new TopologyTemplate();\r
56                 imports = new LinkedList<Map<String, Map<String, String>>> ();\r
57         }\r
58         \r
59         /**\r
60          * Gets the metadata.\r
61          *\r
62          * @return the metadata\r
63          */\r
64         public ToscaMetadata getMetadata() {\r
65                 return metadata;\r
66         }\r
67         \r
68         /**\r
69          * Sets the metadata.\r
70          *\r
71          * @param metadata the new metadata\r
72          */\r
73         public void setMetadata(ToscaMetadata metadata) {\r
74                 this.metadata = metadata;\r
75         }\r
76         \r
77         /**\r
78          * Gets the tosca definitions version.\r
79          *\r
80          * @return the tosca definitions version\r
81          */\r
82         public String gettosca_definitions_version() {\r
83                 return tosca_definitions_version;\r
84         }\r
85         \r
86         /**\r
87          * Sets the tosca definitions version.\r
88          *\r
89          * @param tosca_definitions_version the new tosca definitions version\r
90          */\r
91         public void settosca_definitions_version(String tosca_definitions_version) {\r
92                 this.tosca_definitions_version = tosca_definitions_version;\r
93         }\r
94         \r
95         /**\r
96          * Gets the topology template.\r
97          *\r
98          * @return the topology template\r
99          */\r
100         public TopologyTemplate gettopology_template() {\r
101                 return topology_template;\r
102         }\r
103         \r
104         /**\r
105          * Sets the topology template.\r
106          *\r
107          * @param topology_template the new topology template\r
108          */\r
109         public void settopology_template(TopologyTemplate topology_template) {\r
110                 this.topology_template = topology_template;\r
111         }\r
112 \r
113         /**\r
114          * Gets the description.\r
115          *\r
116          * @return the description\r
117          */\r
118         public String getDescription() {\r
119                 return description;\r
120         }\r
121 \r
122         /**\r
123          * Sets the description.\r
124          *\r
125          * @param description the new description\r
126          */\r
127         public void setDescription(String description) {\r
128                 this.description = description;\r
129         }\r
130 \r
131         /**\r
132          * Gets the imports.\r
133          *\r
134          * @return the imports\r
135          */\r
136         public Collection<Map<String, Map<String, String>>> getImports() {\r
137                 return imports;\r
138         }\r
139 \r
140         /**\r
141          * Sets the imports.\r
142          *\r
143          * @param imports the imports\r
144          */\r
145         public void setImports(Collection<Map<String, Map<String, String>>> imports) {\r
146                 this.imports = imports;\r
147         }\r
148         \r
149         /**\r
150          * Gets the node types.\r
151          *\r
152          * @return the node types\r
153          */\r
154         public Map<String, Object> getnode_types() {\r
155                 return node_types;\r
156         }\r
157         \r
158         /**\r
159          * Setnode types.\r
160          *\r
161          * @param node_types the node types\r
162          */\r
163         public void setnode_types(Map<String, Object> node_types) { \r
164                 this.node_types = node_types;\r
165         }\r
166 }\r