Release version 1.13.7
[sdc.git] / catalog-model / src / main / java / org / openecomp / sdc / be / model / NodeTypeInfo.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
4  * ================================================================================
5  * Copyright (C) 2019 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 package org.openecomp.sdc.be.model;
21
22 import java.util.List;
23 import java.util.Map;
24
25 public class NodeTypeInfo {
26
27     String type;
28     String templateFileName;
29     List<String> derivedFrom;
30     boolean isNested;
31     boolean isSubstitutionMapping;
32     Map<String, Object> mappedToscaTemplate;
33
34     public NodeTypeInfo getUnmarkedCopy() {
35         NodeTypeInfo unmarked = new NodeTypeInfo();
36         unmarked.type = this.type;
37         unmarked.templateFileName = this.templateFileName;
38         unmarked.derivedFrom = this.derivedFrom;
39         unmarked.isNested = false;
40         unmarked.mappedToscaTemplate = this.mappedToscaTemplate;
41         unmarked.isSubstitutionMapping = this.isSubstitutionMapping;
42         return unmarked;
43     }
44
45     public String getType() {
46         return type;
47     }
48
49     public void setType(String type) {
50         this.type = type;
51     }
52
53     public String getTemplateFileName() {
54         return templateFileName;
55     }
56
57     public void setTemplateFileName(String templateFileName) {
58         this.templateFileName = templateFileName;
59     }
60
61     public List<String> getDerivedFrom() {
62         return derivedFrom;
63     }
64
65     public void setDerivedFrom(List<String> derivedFrom) {
66         this.derivedFrom = derivedFrom;
67     }
68
69     public boolean isNested() {
70         return isNested;
71     }
72
73     public void setNested(boolean isNested) {
74         this.isNested = isNested;
75     }
76
77     public boolean isSubstitutionMapping() {
78         return isSubstitutionMapping;
79     }
80
81     public void setSubstitutionMapping(boolean isSubstitutionMapping) {
82         this.isSubstitutionMapping = isSubstitutionMapping;
83     }
84
85     public Map<String, Object> getMappedToscaTemplate() {
86         return mappedToscaTemplate;
87     }
88
89     public void setMappedToscaTemplate(Map<String, Object> mappedToscaTemplate) {
90         this.mappedToscaTemplate = mappedToscaTemplate;
91     }
92 }