Change to enable SDC list type input
[sdc.git] / catalog-be / src / main / java / org / openecomp / sdc / be / tosca / model / ToscaTemplate.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.be.tosca.model;
22
23 import org.apache.commons.lang3.tuple.Triple;
24 import org.openecomp.sdc.be.model.Component;
25
26 import java.util.List;
27 import java.util.Map;
28
29 public class ToscaTemplate {
30
31     private String tosca_definitions_version;
32     private ToscaMetadata metadata;
33     private List<Map<String, Map<String, String>>> imports;
34     private Map<String, Object> interface_types;
35     private Map<String, ToscaDataType> data_types;
36     private Map<String, ToscaNodeType> node_types;
37     private ToscaTopolgyTemplate topology_template;
38
39     private List<Triple<String, String, Component>> dependencies;
40
41     public ToscaTemplate(String tosca_definitions_version) {
42         this.tosca_definitions_version = tosca_definitions_version;
43     }
44
45     public Map<String, ToscaNodeType> getNode_types() {
46         return node_types;
47     }
48
49     public void setNode_types(Map<String, ToscaNodeType> node_types) {
50         this.node_types = node_types;
51     }
52
53
54     public List<Map<String, Map<String, String>>> getImports() {
55         return imports;
56     }
57
58     public void setImports(List<Map<String, Map<String, String>>> imports) {
59         this.imports = imports;
60     }
61
62     public String getTosca_definitions_version() {
63         return tosca_definitions_version;
64     }
65
66     public void setTosca_definitions_version(String tosca_definitions_version) {
67         this.tosca_definitions_version = tosca_definitions_version;
68     }
69
70     public ToscaMetadata getMetadata() {
71         return metadata;
72     }
73
74     public void setMetadata(ToscaMetadata metadata) {
75         this.metadata = metadata;
76     }
77
78     public ToscaTopolgyTemplate getTopology_template() {
79         return topology_template;
80     }
81
82     public void setTopology_template(ToscaTopolgyTemplate topology_template) {
83         this.topology_template = topology_template;
84     }
85
86     public List<Triple<String, String, Component>> getDependencies() {
87         return dependencies;
88     }
89
90     public void setDependencies(List<Triple<String, String, Component>> dependencies) {
91         this.dependencies = dependencies;
92     }
93
94     public Map<String, Object> getInterface_types() {
95         return interface_types;
96     }
97
98     //    public void setInterface_types(Map<String, Object> interface_types) {
99     //        this.interface_types = interface_types;
100     //    }
101
102     public void setInterface_types(Map<String, Object> interface_types) {
103         this.interface_types = interface_types;
104
105     }
106
107     /**
108      * Gets data_types map.
109      * @return Current data_types map.
110      */
111     public Map<String, ToscaDataType> getData_types() {
112         return data_types;
113     }
114
115     /**
116      * Sets data_types map.
117      * @param data_types New data_types map.
118      */
119     public void setData_types(Map<String, ToscaDataType> data_types) {
120         this.data_types = data_types;
121     }
122 }
123