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.mso.asdc.installer;
23 import java.util.ArrayList;
24 import java.util.HashMap;
25 import java.util.List;
28 import org.codehaus.jackson.annotate.JsonAnySetter;
29 import org.codehaus.jackson.annotate.JsonIgnore;
30 import org.codehaus.jackson.annotate.JsonProperty;
32 import org.openecomp.sdc.api.notification.IVfModuleMetadata;
34 public class VfModuleMetaData implements IVfModuleData {
36 @JsonProperty("artifacts")
37 private List<String> artifacts;
39 @JsonProperty("properties")
40 //private List<Map<String, Object>> properties = new ArrayList<>();
41 private Map<String,String> properties = new HashMap<>();
44 private Map<String,Object> attributesMap = new HashMap<>();
47 public List<String> getArtifacts() {
51 public Map<String, String> getProperties() {
56 public String getVfModuleModelDescription() {
57 return (String)attributesMap.get("vfModuleModelDescription");
61 public String getVfModuleModelInvariantUUID() {
62 return (String)attributesMap.get("vfModuleModelInvariantUUID");
65 public String getVfModuleModelCustomizationUUID() {
66 return (String)attributesMap.get("vfModuleModelCustomizationUUID");
70 public String getVfModuleModelName() {
71 return (String)attributesMap.get("vfModuleModelName");
75 public String getVfModuleModelUUID() {
76 return (String)attributesMap.get("vfModuleModelUUID");
80 public String getVfModuleModelVersion() {
81 return (String)attributesMap.get("vfModuleModelVersion");
85 public boolean isBase() {
86 return (boolean)attributesMap.get("isBase");
91 @SuppressWarnings("unused")
93 public final void setAttribute(String attrName, Object attrValue) {
94 if ((null != attrName) && (!attrName.isEmpty()) && (null != attrValue) && (null != attrValue.toString())) {
95 this.attributesMap.put(attrName,attrValue);