Added oparent to sdc main
[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
21 package org.openecomp.sdc.be.model;
22
23 import java.util.List;
24 import java.util.Map;
25
26 public class NodeTypeInfo {
27     String type;
28     String templateFileName;
29     List<String> derivedFrom;
30     boolean isNested;
31     Map<String, Object> mappedToscaTemplate;
32
33     public NodeTypeInfo getUnmarkedCopy(){
34         NodeTypeInfo unmarked = new NodeTypeInfo();
35         unmarked.type = this.type;
36         unmarked.templateFileName = this.templateFileName;
37         unmarked.derivedFrom = this.derivedFrom;
38         unmarked.isNested = false;
39         unmarked.mappedToscaTemplate = this.mappedToscaTemplate;
40         return unmarked;
41     }
42
43     public String getType() {
44         return type;
45     }
46     public void setType(String type) {
47         this.type = type;
48     }
49     public String getTemplateFileName() {
50         return templateFileName;
51     }
52     public void setTemplateFileName(String templateFileName) {
53         this.templateFileName = templateFileName;
54     }
55     public List<String> getDerivedFrom() {
56         return derivedFrom;
57     }
58     public void setDerivedFrom(List<String> derivedFrom) {
59         this.derivedFrom = derivedFrom;
60     }
61     public boolean isNested() {
62         return isNested;
63     }
64     public void setNested(boolean isNested) {
65         this.isNested = isNested;
66     }
67
68     public Map<String, Object> getMappedToscaTemplate() {
69         return mappedToscaTemplate;
70     }
71
72     public void setMappedToscaTemplate(Map<String, Object> mappedToscaTemplate) {
73         this.mappedToscaTemplate = mappedToscaTemplate;
74     }
75 }