/*- * ============LICENSE_START======================================================= * SDC * ================================================================================ * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ============LICENSE_END========================================================= */ package org.openecomp.sdc.translator.datatypes.heattotosca.to; import org.openecomp.sdc.heat.datatypes.manifest.FileData; import java.util.ArrayList; import java.util.Collection; public class FileDataCollection { Collection baseFiles; Collection addOnFiles; Collection nestedFiles; Collection artifactFiles; Collection HelmFiles; public Collection getBaseFile() { return baseFiles; } public Collection getHelmFile() { return HelmFiles; } public void setBaseFile(Collection baseFiles) { this.baseFiles = baseFiles; } public Collection getAddOnFiles() { return addOnFiles; } public void setAddOnFiles(Collection addOnFiles) { this.addOnFiles = addOnFiles; } public Collection getNestedFiles() { return nestedFiles; } public void setNestedFiles(Collection nestedFiles) { this.nestedFiles = nestedFiles; } public Collection getBaseFiles() { return baseFiles; } public void setBaseFiles(Collection baseFiles) { this.baseFiles = baseFiles; } public Collection getArtifactFiles() { return artifactFiles; } public void setArtifactFiles(Collection artifactFiles) { this.artifactFiles = artifactFiles; } /** * Add add on files. * * @param addonFile the addon file */ public void addAddOnFiles(FileData addonFile) { if (this.addOnFiles == null) { this.addOnFiles = new ArrayList<>(); } this.addOnFiles.add(addonFile); } /** * Add nested files. * * @param nestedFile the nested file */ public void addNestedFiles(FileData nestedFile) { if (this.nestedFiles == null) { this.nestedFiles = new ArrayList<>(); } this.nestedFiles.add(nestedFile); } /** * Add base files. * * @param baseFile the base file */ public void addBaseFiles(FileData baseFile) { if (this.baseFiles == null) { this.baseFiles = new ArrayList<>(); } this.baseFiles.add(baseFile); } public void addHelmFiles(FileData helmFile) { if (this.HelmFiles == null) { this.HelmFiles = new ArrayList<>(); } this.HelmFiles.add(helmFile); } /** * Add artifact files. * * @param artifactFile the artifact file */ public void addArtifactFiles(FileData artifactFile) { if (this.artifactFiles == null) { this.artifactFiles = new ArrayList<>(); } this.artifactFiles.add(artifactFile); } }