aboutsummaryrefslogtreecommitdiffstats
path: root/common-be/src/main
diff options
context:
space:
mode:
authorxuegao <xue.gao@intl.att.com>2020-11-10 15:05:47 +0100
committerxuegao <xue.gao@intl.att.com>2020-11-13 11:09:20 +0100
commitb8d71b90706577bd748371f90160c1862a8ce96a (patch)
tree58ef283f87cd9f1c67948d88cd030f46f7f81250 /common-be/src/main
parentc104cd29683e8241cc66f471c9718823d3bc2173 (diff)
Add type field
Add type field for AttributeDataDefinition so that the type column is not empty in Catalog Attribute UI. Issue-ID: SDC-3358 Signed-off-by: xuegao <xue.gao@intl.att.com> Change-Id: I34150fbdeabc84a83989374ec3f59ebb7ae9194a
Diffstat (limited to 'common-be/src/main')
-rw-r--r--common-be/src/main/java/org/openecomp/sdc/be/datatypes/tosca/ToscaDataDefinition.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/tosca/ToscaDataDefinition.java b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/tosca/ToscaDataDefinition.java
index c1e6dbaa43..4ca44423af 100644
--- a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/tosca/ToscaDataDefinition.java
+++ b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/tosca/ToscaDataDefinition.java
@@ -78,6 +78,10 @@ public abstract class ToscaDataDefinition {
return (String) getToscaPresentationValue(JsonPresentationFields.VERSION);
}
+ public void setType(String type) {
+ setToscaPresentationValue(JsonPresentationFields.TYPE, type);
+ }
+
public void setOwnerId(String ownerId) {
setToscaPresentationValue(JsonPresentationFields.OWNER_ID, ownerId);
}