2 * Copyright © 2016-2017 European Support Limited
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 package org.openecomp.sdc.tosca.datatypes.model;
19 import org.openecomp.sdc.tosca.datatypes.model.heatextend.AnnotationType;
20 import java.util.List;
25 public class ServiceTemplate implements Template {
27 private String tosca_definitions_version;
28 private Map<String, String> metadata;
29 private String description;
30 private List<Map<String, Import>> imports;
31 private Map<String, ArtifactType> artifact_types;
32 private Map<String, DataType> data_types;
33 private Map<String, CapabilityType> capability_types;
34 private Map<String, Object> interface_types;
35 private Map<String, RelationshipType> relationship_types;
36 private Map<String, NodeType> node_types;
37 private Map<String, GroupType> group_types;
38 private Map<String, PolicyType> policy_types;
39 private Map<String, AnnotationType> annotation_types;
40 private TopologyTemplate topology_template;
42 public String getTosca_definitions_version() {
43 return tosca_definitions_version;
46 public void setTosca_definitions_version(String tosca_definitions_version) {
47 this.tosca_definitions_version = tosca_definitions_version;
50 public Map<String, String> getMetadata() {
54 public void setMetadata(Map<String, String> metadata) {
55 this.metadata = metadata;
58 public String getDescription() {
62 public void setDescription(String description) {
63 this.description = description;
66 public List<Map<String, Import>> getImports() {
70 public void setImports(
71 List<Map<String, Import>> imports) {
72 this.imports = imports;
75 public Map<String, ArtifactType> getArtifact_types() {
76 return artifact_types;
79 public void setArtifact_types(Map<String, ArtifactType> artifact_types) {
80 this.artifact_types = artifact_types;
83 public Map<String, DataType> getData_types() {
87 public void setData_types(Map<String, DataType> data_types) {
88 this.data_types = data_types;
91 public Map<String, CapabilityType> getCapability_types() {
92 return capability_types;
95 public void setCapability_types(Map<String, CapabilityType> capability_types) {
96 this.capability_types = capability_types;
99 public Map<String, RelationshipType> getRelationship_types() {
100 return relationship_types;
103 public void setRelationship_types(Map<String, RelationshipType> relationship_types) {
104 this.relationship_types = relationship_types;
107 public Map<String, NodeType> getNode_types() {
111 public void setNode_types(Map<String, NodeType> node_types) {
112 this.node_types = node_types;
115 public Map<String, GroupType> getGroup_types() {
119 public void setGroup_types(Map<String, GroupType> group_types) {
120 this.group_types = group_types;
123 public Map<String, Object> getInterface_types() {
124 return interface_types;
127 public void setInterface_types(Map<String, Object> interface_types) {
128 this.interface_types = interface_types;
131 public Map<String, PolicyType> getPolicy_types() {
135 public void setPolicy_types(Map<String, PolicyType> policy_types) {
136 this.policy_types = policy_types;
139 public TopologyTemplate getTopology_template() {
140 return topology_template;
143 public void setTopology_template(TopologyTemplate topology_template) {
144 this.topology_template = topology_template;
147 public Map<String, AnnotationType> getAnnotation_types() {
148 return annotation_types;
151 public void setAnnotation_types(Map<String, AnnotationType> annotation_types) {
152 this.annotation_types = annotation_types;