2 * ============LICENSE_START=======================================================
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
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.model;
23 import java.util.List;
26 public class NodeTypeInfo {
28 String templateFileName;
29 List<String> derivedFrom;
31 boolean isSubstitutionMapping;
32 Map<String, Object> mappedToscaTemplate;
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;
45 public String getType() {
48 public void setType(String type) {
51 public String getTemplateFileName() {
52 return templateFileName;
54 public void setTemplateFileName(String templateFileName) {
55 this.templateFileName = templateFileName;
57 public List<String> getDerivedFrom() {
60 public void setDerivedFrom(List<String> derivedFrom) {
61 this.derivedFrom = derivedFrom;
63 public boolean isNested() {
66 public void setNested(boolean isNested) {
67 this.isNested = isNested;
69 public boolean isSubstitutionMapping() {
70 return isSubstitutionMapping;
72 public void setSubstitutionMapping(boolean isSubstitutionMapping) {
73 this.isSubstitutionMapping = isSubstitutionMapping;
76 public Map<String, Object> getMappedToscaTemplate() {
77 return mappedToscaTemplate;
80 public void setMappedToscaTemplate(Map<String, Object> mappedToscaTemplate) {
81 this.mappedToscaTemplate = mappedToscaTemplate;