2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 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.vendorsoftwareproduct.types.composition;
25 public class ExtractCompositionDataContext {
26 private List<Network> networks = new ArrayList<>();
27 private List<Component> components = new ArrayList<>();
28 private Map<String, Nic> nics = new HashMap<>();
29 private Map<String, Image> images = new HashMap<>();
30 private Map<String, ComputeData> computes = new HashMap<>();
31 private Set<String> handledServiceTemplates = new HashSet<>();
32 private Set<String> createdComponents = new HashSet<>();
34 public Set<String> getCreatedComponents() {
35 return createdComponents;
38 public void setCreatedComponents(Set<String> createdComponents) {
39 this.createdComponents = createdComponents;
42 public Set<String> getHandledServiceTemplates() {
43 return handledServiceTemplates;
46 public void setHandledServiceTemplates(Set<String> handledServiceTemplates) {
47 this.handledServiceTemplates = handledServiceTemplates;
50 public void addHandledServiceTemplates(String handledServiceTemplate) {
51 this.handledServiceTemplates.add(handledServiceTemplate);
54 public List<Network> getNetworks() {
58 public void setNetworks(List<Network> networks) {
59 this.networks = networks;
65 * @param network the network
67 public void addNetwork(Network network) {
68 if (network != null) {
69 networks.add(network);
76 * @param network the network
78 public void addNetworks(List<Network> network) {
79 if (networks != null) {
80 networks.addAll(network);
84 public List<Component> getComponents() {
88 public void setComponents(List<Component> components) {
89 this.components = components;
95 * @param component the component
97 public void addComponent(Component component) {
98 if (component != null) {
99 components.add(component);
106 * @param components the components
108 public void addComponents(List<Component> components) {
109 if (components != null) {
110 this.components.addAll(components);
114 public Map<String, Nic> getNics() {
118 public void setNics(Map<String, Nic> nics) {
122 public void addNic(String nicId, Nic nic) {
123 this.nics.put(nicId, nic);
126 public Map<String, Image> getImages() {
130 public void setImages(Map<String, Image> images) {
131 this.images = images;
134 public void addImage(String imageId, Image image) {
135 this.images.put(imageId, image);
139 public Map<String, ComputeData> getComputes() {
143 public void setComputes(
144 Map<String, ComputeData> computes) {
145 this.computes = computes;
148 public void addCompute(String computeId, ComputeData computedata ){
149 this.computes.put(computeId,computedata);