2 * ============LICENSE_START=======================================================
\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
11 * http://www.apache.org/licenses/LICENSE-2.0
\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
21 package org.openecomp.vid.asdc.beans.tosca;
\r
23 import java.util.Collection;
\r
24 import java.util.LinkedList;
\r
25 import java.util.Map;
\r
28 * The Class ToscaModel.
\r
30 public class ToscaModel {
\r
32 /** The tosca definitions version. */
\r
33 private String tosca_definitions_version;
\r
35 /** The description. */
\r
36 private String description;
\r
38 /** The metadata. */
\r
39 private ToscaMetadata metadata;
\r
41 /** The topology template. */
\r
42 private TopologyTemplate topology_template;
\r
45 private Collection<Map<String, Map<String, String>>> imports;
\r
47 /** The node types. */
\r
48 private Map<String, Object> node_types;
\r
51 * Instantiates a new tosca model.
\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
60 * Gets the metadata.
\r
62 * @return the metadata
\r
64 public ToscaMetadata getMetadata() {
\r
69 * Sets the metadata.
\r
71 * @param metadata the new metadata
\r
73 public void setMetadata(ToscaMetadata metadata) {
\r
74 this.metadata = metadata;
\r
78 * Gets the tosca definitions version.
\r
80 * @return the tosca definitions version
\r
82 public String gettosca_definitions_version() {
\r
83 return tosca_definitions_version;
\r
87 * Sets the tosca definitions version.
\r
89 * @param tosca_definitions_version the new tosca definitions version
\r
91 public void settosca_definitions_version(String tosca_definitions_version) {
\r
92 this.tosca_definitions_version = tosca_definitions_version;
\r
96 * Gets the topology template.
\r
98 * @return the topology template
\r
100 public TopologyTemplate gettopology_template() {
\r
101 return topology_template;
\r
105 * Sets the topology template.
\r
107 * @param topology_template the new topology template
\r
109 public void settopology_template(TopologyTemplate topology_template) {
\r
110 this.topology_template = topology_template;
\r
114 * Gets the description.
\r
116 * @return the description
\r
118 public String getDescription() {
\r
119 return description;
\r
123 * Sets the description.
\r
125 * @param description the new description
\r
127 public void setDescription(String description) {
\r
128 this.description = description;
\r
132 * Gets the imports.
\r
134 * @return the imports
\r
136 public Collection<Map<String, Map<String, String>>> getImports() {
\r
141 * Sets the imports.
\r
143 * @param imports the imports
\r
145 public void setImports(Collection<Map<String, Map<String, String>>> imports) {
\r
146 this.imports = imports;
\r
150 * Gets the node types.
\r
152 * @return the node types
\r
154 public Map<String, Object> getnode_types() {
\r
161 * @param node_types the node types
\r
163 public void setnode_types(Map<String, Object> node_types) {
\r
164 this.node_types = node_types;
\r