aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/AttributeDataDefinition.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/AttributeDataDefinition.java b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/AttributeDataDefinition.java
index ea693efe40..cffab12f90 100644
--- a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/AttributeDataDefinition.java
+++ b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/AttributeDataDefinition.java
@@ -53,6 +53,7 @@ public class AttributeDataDefinition extends ToscaDataDefinition {
this.setValue(attributeDataDefinition.getValue());
this.setStatus(attributeDataDefinition.getStatus());
this.setEntry_schema(attributeDataDefinition.getEntry_schema());
+ this.setSchema(attributeDataDefinition.getSchema());
this.setOutputPath(attributeDataDefinition.getOutputPath());
this.setInstanceUniqueId(attributeDataDefinition.getInstanceUniqueId());
this.setAttributeId(attributeDataDefinition.getAttributeId());
@@ -127,7 +128,11 @@ public class AttributeDataDefinition extends ToscaDataDefinition {
}
public SchemaDefinition getSchema() {
- return null;
+ return (SchemaDefinition) getToscaPresentationValue(JsonPresentationFields.SCHEMA);
+ }
+
+ public void setSchema(final SchemaDefinition schema) {
+ setToscaPresentationValue(JsonPresentationFields.SCHEMA, schema);
}
public String getParentUniqueId() {