1 package org.onap.vid.asdc.beans.tosca;
3 import org.onap.sdc.toscaparser.api.Property;
7 public class InputProperties {
8 private String sourceType;
9 private String vfModuleLabel;
10 private String paramName;
12 public InputProperties(){
16 public InputProperties(List<Property> properties) {
17 for(Property property: properties) {
18 if (property.getName().equals("source_type")) {
19 this.sourceType = (String)property.getValue();
20 } else if (property.getName().equals("param_name")) {
21 this.paramName = (String)property.getValue();
22 } else if (property.getName().equals("vf_module_label")) {
23 this.vfModuleLabel = getPropertyValueAsString(property);
28 public String getSourceType() {
32 public void setSourceType(String sourceType) {
33 this.sourceType = sourceType;
36 public String getVfModuleLabel() {
40 public void setVfModuleLabel(String vfModuleLabel) {
41 this.vfModuleLabel = vfModuleLabel;
44 public String getParamName() {
48 public void setParamName(String paramName) {
49 this.paramName = paramName;
52 private String getPropertyValueAsString(Property property) {
53 return property.getValue().toString().substring(1, property.getValue().toString().length()-1);