aboutsummaryrefslogtreecommitdiffstats
path: root/vid-app-common/src/main/java/org/onap/vid/asdc/beans/tosca/Input.java
diff options
context:
space:
mode:
Diffstat (limited to 'vid-app-common/src/main/java/org/onap/vid/asdc/beans/tosca/Input.java')
-rw-r--r--vid-app-common/src/main/java/org/onap/vid/asdc/beans/tosca/Input.java20
1 files changed, 18 insertions, 2 deletions
diff --git a/vid-app-common/src/main/java/org/onap/vid/asdc/beans/tosca/Input.java b/vid-app-common/src/main/java/org/onap/vid/asdc/beans/tosca/Input.java
index 6b2f39eca..590284928 100644
--- a/vid-app-common/src/main/java/org/onap/vid/asdc/beans/tosca/Input.java
+++ b/vid-app-common/src/main/java/org/onap/vid/asdc/beans/tosca/Input.java
@@ -20,7 +20,7 @@
package org.onap.vid.asdc.beans.tosca;
-import org.onap.sdc.toscaparser.api.elements.constraints.*;
+import org.onap.sdc.toscaparser.api.Property;
import java.util.List;
import java.util.ArrayList;
@@ -31,6 +31,13 @@ import java.util.ArrayList;
*/
public class Input {
+ public Input(org.onap.sdc.toscaparser.api.parameters.Input input, List<Property> properties){
+ this.type = input.getType();
+ this.description = input.getDescription();
+ this._default = input.getDefault();
+ this.inputProperties = new InputProperties(properties);
+ }
+
/** The type. */
private String type;
@@ -42,6 +49,8 @@ public class Input {
/** The entry schema. */
private Input entry_schema;
+
+ private InputProperties inputProperties;
/** The constraints */
private List<org.onap.sdc.toscaparser.api.elements.constraints.Constraint> constraints;
@@ -142,11 +151,18 @@ public class Input {
/**
* Sets the entry schema.
*
- * @param the entry schema
*/
public void setentry_schema(Input s) {
this.entry_schema = s;
}
+
+ public InputProperties getInputProperties() {
+ return inputProperties;
+ }
+
+ public void setInputProperties(InputProperties inputProperties) {
+ this.inputProperties = inputProperties;
+ }
/**
* Sets the constraints.
*