re base code
[sdc.git] / catalog-model / src / main / java / org / openecomp / sdc / be / model / UploadPropInfo.java
index 2683407..536e251 100644 (file)
 
 package org.openecomp.sdc.be.model;
 
-import java.util.List;
-
 import org.openecomp.sdc.be.datatypes.elements.GetInputValueDataDefinition;
 
+import java.util.ArrayList;
+import java.util.List;
+
 
 public class UploadPropInfo extends UploadInfo {
 
-       private Object value;
+    private Object value;
 
-       private String description;
+    private String description;
 
-       private boolean password;
+    private boolean password;
 
-       private List<GetInputValueDataDefinition> get_input;
+    private List<GetInputValueDataDefinition> get_input;
 
-       public List<GetInputValueDataDefinition> getGet_input() {
-               return get_input;
-       }
+    public List<GetInputValueDataDefinition> getGet_input() {
+        if (get_input == null) {
+            get_input = new ArrayList<>();
+        }
+        return get_input;
+    }
 
-       public void setGet_input(List<GetInputValueDataDefinition> get_input) {
-               this.get_input = get_input;
-       }
+    public void setGet_input(List<GetInputValueDataDefinition> get_input) {
+        this.get_input = get_input;
+    }
 
-       public Object getValue() {
-               return value;
-       }
+    public Object getValue() {
+        return value;
+    }
 
-       public void setValue(Object value) {
-               this.value = value;
-       }
+    public void setValue(Object value) {
+        this.value = value;
+    }
 
-       public String getDescription() {
-               return description;
-       }
+    public String getDescription() {
+        return description;
+    }
 
-       public void setDescription(String description) {
-               this.description = description;
-       }
+    public void setDescription(String description) {
+        this.description = description;
+    }
 
-       public boolean isPassword() {
-               return password;
-       }
+    public boolean isPassword() {
+        return password;
+    }
 
-       public void setPassword(boolean password) {
-               this.password = password;
-       }
+    public void setPassword(boolean password) {
+        this.password = password;
+    }
 
 }