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();
21 } else if (property.getName().equals("param_name")) {
22 this.paramName = (String)property.getValue();
24 } else if (property.getName().equals("vf_module_label")) {
25 this.vfModuleLabel = getPropertyValueAsString(property);
31 public String getSourceType() {
35 public void setSourceType(String sourceType) {
36 this.sourceType = sourceType;
39 public String getVfModuleLabel() {
43 public void setVfModuleLabel(String vfModuleLabel) {
44 this.vfModuleLabel = vfModuleLabel;
47 public String getParamName() {
51 public void setParamName(String paramName) {
52 this.paramName = paramName;
55 private String getPropertyValueAsString(Property property) {
56 return property.getValue().toString().substring(1, property.getValue().toString().length()-1);