30c89accd019f94472f1f66dc99eb5f063e979c2
[sdc.git] /
1 /*
2  * Copyright © 2016-2018 European Support Limited
3  *
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
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16 package org.openecomp.sdc.translator.datatypes.heattotosca.unifiedmodel.composition.to;
17
18 import java.util.List;
19 import org.onap.sdc.tosca.datatypes.model.NodeTemplate;
20 import org.onap.sdc.tosca.datatypes.model.ServiceTemplate;
21 import org.openecomp.sdc.translator.datatypes.heattotosca.TranslationContext;
22 import org.openecomp.sdc.translator.datatypes.heattotosca.unifiedmodel.composition.UnifiedCompositionData;
23
24 public class UnifiedCompositionTo {
25
26     private ServiceTemplate serviceTemplate;
27     private ServiceTemplate substitutionServiceTemplate;
28     private List<UnifiedCompositionData> unifiedCompositionDataList;
29     private TranslationContext context;
30     private NodeTemplate nodeTemplate;
31
32     public UnifiedCompositionTo(ServiceTemplate serviceTemplate, ServiceTemplate substitutionServiceTemplate,
33                                 List<UnifiedCompositionData> unifiedCompositionDataList, TranslationContext context, NodeTemplate nodeTemplate) {
34         this.serviceTemplate = serviceTemplate;
35         this.substitutionServiceTemplate = substitutionServiceTemplate;
36         this.unifiedCompositionDataList = unifiedCompositionDataList;
37         this.context = context;
38         this.nodeTemplate = nodeTemplate;
39     }
40
41     public ServiceTemplate getServiceTemplate() {
42         return serviceTemplate;
43     }
44
45     public void setServiceTemplate(ServiceTemplate serviceTemplate) {
46         this.serviceTemplate = serviceTemplate;
47     }
48
49     public ServiceTemplate getSubstitutionServiceTemplate() {
50         return substitutionServiceTemplate;
51     }
52
53     public void setSubstitutionServiceTemplate(ServiceTemplate substitutionServiceTemplate) {
54         this.substitutionServiceTemplate = substitutionServiceTemplate;
55     }
56
57     public List<UnifiedCompositionData> getUnifiedCompositionDataList() {
58         return unifiedCompositionDataList;
59     }
60
61     public void setUnifiedCompositionDataList(List<UnifiedCompositionData> unifiedCompositionDataList) {
62         this.unifiedCompositionDataList = unifiedCompositionDataList;
63     }
64
65     public TranslationContext getContext() {
66         return context;
67     }
68
69     public void setContext(TranslationContext context) {
70         this.context = context;
71     }
72
73     public NodeTemplate getNodeTemplate() {
74         return nodeTemplate;
75     }
76
77     public void setNodeTemplate(NodeTemplate nodeTemplate) {
78         this.nodeTemplate = nodeTemplate;
79     }
80 }