From 69bc5bdb7d464fa38705191f1495fb09474277a8 Mon Sep 17 00:00:00 2001 From: MichaelMorris Date: Thu, 12 May 2022 10:20:48 +0100 Subject: Import VFC with i/f op impl extended notataion Support import of VFC with interface operation implementation extended notataion Signed-off-by: MichaelMorris Issue-ID: SDC-3999 Change-Id: Ie2affc2b11d4b65fe87565768406dc6a02f8c74a --- .../sdc/be/datatypes/elements/ArtifactDataDefinition.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'common-be/src/main') diff --git a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/ArtifactDataDefinition.java b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/ArtifactDataDefinition.java index 4eee04272c..5927a5abe7 100644 --- a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/ArtifactDataDefinition.java +++ b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/ArtifactDataDefinition.java @@ -369,6 +369,15 @@ public class ArtifactDataDefinition extends ToscaDataDefinition { public List getProperties() { return (List) getToscaPresentationValue(JsonPresentationFields.PROPERTIES); } + + public void addProperty(final PropertyDataDefinition property) { + List properties = (List) getToscaPresentationValue(JsonPresentationFields.PROPERTIES); + if (properties == null) { + properties = new ArrayList<>(); + setProperties(properties); + } + properties.add(property); + } private void setProperties(final List properties) { setToscaPresentationValue(JsonPresentationFields.PROPERTIES, properties); -- cgit 1.2.3-korg