diff options
author | MichaelMorris <michael.morris@est.tech> | 2022-05-12 10:20:48 +0100 |
---|---|---|
committer | Andr� Schmid <andre.schmid@est.tech> | 2022-05-13 14:57:16 +0000 |
commit | 69bc5bdb7d464fa38705191f1495fb09474277a8 (patch) | |
tree | b28af96dfff787d6ad9663b6cb88798557855056 /common-be/src/main/java/org | |
parent | 87fb2140798d1aef9a3ba223b60f20a4ebb6e92d (diff) |
Import VFC with i/f op impl extended notataion
Support import of VFC with interface operation implementation extended notataion
Signed-off-by: MichaelMorris <michael.morris@est.tech>
Issue-ID: SDC-3999
Change-Id: Ie2affc2b11d4b65fe87565768406dc6a02f8c74a
Diffstat (limited to 'common-be/src/main/java/org')
-rw-r--r-- | common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/ArtifactDataDefinition.java | 9 |
1 files changed, 9 insertions, 0 deletions
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<PropertyDataDefinition> getProperties() { return (List<PropertyDataDefinition>) getToscaPresentationValue(JsonPresentationFields.PROPERTIES); } + + public void addProperty(final PropertyDataDefinition property) { + List<PropertyDataDefinition> properties = (List<PropertyDataDefinition>) getToscaPresentationValue(JsonPresentationFields.PROPERTIES); + if (properties == null) { + properties = new ArrayList<>(); + setProperties(properties); + } + properties.add(property); + } private void setProperties(final List<PropertyDataDefinition> properties) { setToscaPresentationValue(JsonPresentationFields.PROPERTIES, properties); |