diff options
Diffstat (limited to 'common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/OperationInputDefinition.java')
-rw-r--r-- | common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/OperationInputDefinition.java | 34 |
1 files changed, 31 insertions, 3 deletions
diff --git a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/OperationInputDefinition.java b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/OperationInputDefinition.java index 35b760a677..1e8ef50564 100644 --- a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/OperationInputDefinition.java +++ b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/OperationInputDefinition.java @@ -16,24 +16,29 @@ package org.openecomp.sdc.be.datatypes.elements; - import com.fasterxml.jackson.annotation.JsonCreator; + import org.openecomp.sdc.be.datatypes.enums.JsonPresentationFields; public class OperationInputDefinition extends InputDataDefinition { + private String source; + private String sourceProperty; + private String toscaDefaultValue; @JsonCreator public OperationInputDefinition() { super(); } - public OperationInputDefinition(String name, InputDataDefinition inputDefinition) { + public OperationInputDefinition(String name, InputDataDefinition inputDefinition, String source, String sourceProperty) { super(inputDefinition); setName(name); + setSource(source); + setSourceProperty(sourceProperty); } - public OperationInputDefinition(String name, String property, Boolean mandatory, String type) { + public OperationInputDefinition(String name, String property, Boolean mandatory, String type) { super(); setName(name); setInputId(property); @@ -49,4 +54,27 @@ public class OperationInputDefinition extends InputDataDefinition { setToscaPresentationValue(JsonPresentationFields.ARTIFACT_LABEL, name); } + public String getSource() { + return source; + } + + public void setSource(String source) { + this.source = source; + } + + public String getSourceProperty() { + return sourceProperty; + } + + public void setSourceProperty(String sourceProperty) { + this.sourceProperty = sourceProperty; + } + + public String getToscaDefaultValue() { + return toscaDefaultValue; + } + + public void setToscaDefaultValue(String toscaDefaultValue) { + this.toscaDefaultValue = toscaDefaultValue; + } } |