summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/onap
diff options
context:
space:
mode:
authorSheshukov, Natalia (ns019t) <ns019t@intl.att.com>2018-04-15 13:13:59 +0300
committerYuli Shlosberg <ys9693@att.com>2018-04-29 11:53:01 +0300
commitdadd8646df5c2a110b6928ac770bf22ac82e1b21 (patch)
tree526d02946a406dc79722b9f79f0689ec5d52937d /src/main/java/org/onap
parente5ee91fd9d3bd4bca0b2f965628ae607737a6a82 (diff)
SDC Tosca Parser – support Annotations
Change-Id: I99079e1a8de11c5c21a54f1695ee94addcabeab2 Issue-ID: SDC-1226 Signed-off-by: Yuli Shlosberg <ys9693@att.com>
Diffstat (limited to 'src/main/java/org/onap')
-rw-r--r--src/main/java/org/onap/sdc/tosca/parser/api/ISdcCsarHelper.java6
-rw-r--r--src/main/java/org/onap/sdc/tosca/parser/impl/SdcCsarHelperImpl.java5
2 files changed, 11 insertions, 0 deletions
diff --git a/src/main/java/org/onap/sdc/tosca/parser/api/ISdcCsarHelper.java b/src/main/java/org/onap/sdc/tosca/parser/api/ISdcCsarHelper.java
index 5052ddf..cc47db9 100644
--- a/src/main/java/org/onap/sdc/tosca/parser/api/ISdcCsarHelper.java
+++ b/src/main/java/org/onap/sdc/tosca/parser/api/ISdcCsarHelper.java
@@ -560,6 +560,12 @@ public interface ISdcCsarHelper {
* @return the list of the node templates
*/
public List<NodeTemplate> getGroupMembersOfOriginOfNodeTemplate(NodeTemplate nodeTemplate, String groupName);
+
+ /**
+ * Get inputs of the topology template including existing annotations
+ * @return the list of the inputs
+ */
+ public List<Input> getInputsWithAnnotations();
/**
* Get all interface details for given node template.<br>
diff --git a/src/main/java/org/onap/sdc/tosca/parser/impl/SdcCsarHelperImpl.java b/src/main/java/org/onap/sdc/tosca/parser/impl/SdcCsarHelperImpl.java
index ee4c7e8..ed6345c 100644
--- a/src/main/java/org/onap/sdc/tosca/parser/impl/SdcCsarHelperImpl.java
+++ b/src/main/java/org/onap/sdc/tosca/parser/impl/SdcCsarHelperImpl.java
@@ -1120,4 +1120,9 @@ public class SdcCsarHelperImpl implements ISdcCsarHelper {
return null;
}
+ @Override
+ public List<Input> getInputsWithAnnotations() {
+ return toscaTemplate.getInputs(true);
+ }
+
}