2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.openecomp.sdc.be.tosca.model;
23 import org.apache.commons.lang3.tuple.Triple;
24 import org.openecomp.sdc.be.model.Component;
26 import java.util.List;
29 public class ToscaTemplate {
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, ToscaNodeType> node_types;
36 private ToscaTopolgyTemplate topology_template;
38 private List<Triple<String, String, Component>> dependencies;
40 public ToscaTemplate(String tosca_definitions_version) {
41 this.tosca_definitions_version = tosca_definitions_version;
44 public Map<String, ToscaNodeType> getNode_types() {
48 public void setNode_types(Map<String, ToscaNodeType> node_types) {
49 this.node_types = node_types;
53 public List<Map<String, Map<String, String>>> getImports() {
57 public void setImports(List<Map<String, Map<String, String>>> imports) {
58 this.imports = imports;
61 public String getTosca_definitions_version() {
62 return tosca_definitions_version;
65 public void setTosca_definitions_version(String tosca_definitions_version) {
66 this.tosca_definitions_version = tosca_definitions_version;
69 public ToscaMetadata getMetadata() {
73 public void setMetadata(ToscaMetadata metadata) {
74 this.metadata = metadata;
77 public ToscaTopolgyTemplate getTopology_template() {
78 return topology_template;
81 public void setTopology_template(ToscaTopolgyTemplate topology_template) {
82 this.topology_template = topology_template;
85 public List<Triple<String, String, Component>> getDependencies() {
89 public void setDependencies(List<Triple<String, String, Component>> dependencies) {
90 this.dependencies = dependencies;
93 public Map<String, Object> getInterface_types() {
94 return interface_types;
97 // public void setInterface_types(Map<String, Object> interface_types) {
98 // this.interface_types = interface_types;
101 public void setInterface_types(Map<String, Object> interface_types) {
102 this.interface_types = interface_types;