From: PriyanshuAgarwal Date: Fri, 15 Jun 2018 05:28:29 +0000 (+0530) Subject: Extended notation support for interface operation. X-Git-Tag: 1.6.6~22^2~27 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=842633530e7c1615f988cf58fcc9b472fe5b5fe1;p=sdc%2Fsdc-tosca.git Extended notation support for interface operation. Support extended notation for "Implementation" in interface operation. Change-Id: I1a45d7bbabea8262a86144f1552534e9f15c9d0f Issue-ID: SDC-1433 Signed-off-by: priyanshu --- diff --git a/pom.xml b/pom.xml index db09499..b132eb5 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ org.onap.sdc.jtosca jtosca - 1.4.0-SNAPSHOT + 1.4.1-SNAPSHOT sdc-jtosca diff --git a/src/main/java/org/onap/sdc/toscaparser/api/elements/InterfacesDef.java b/src/main/java/org/onap/sdc/toscaparser/api/elements/InterfacesDef.java index 86333d6..3edf3b7 100644 --- a/src/main/java/org/onap/sdc/toscaparser/api/elements/InterfacesDef.java +++ b/src/main/java/org/onap/sdc/toscaparser/api/elements/InterfacesDef.java @@ -31,7 +31,7 @@ public class InterfacesDef extends StatefulEntityType { private String operationName; private Object operationDef; - private String implementation; + private Object implementation; private LinkedHashMap inputs; private String description; @@ -85,7 +85,7 @@ public class InterfacesDef extends StatefulEntityType { if(ivalue instanceof LinkedHashMap) { for(Map.Entry me: ((LinkedHashMap)ivalue).entrySet()) { if(me.getKey().equals(IMPLEMENTATION)) { - implementation = (String)me.getValue(); + implementation = me.getValue(); } else if(me.getKey().equals(INPUTS)) { inputs = (LinkedHashMap)me.getValue(); @@ -148,11 +148,11 @@ public class InterfacesDef extends StatefulEntityType { inputs.put(name, value); } - public String getImplementation(){ + public Object getImplementation(){ return implementation; } - public void setImplementation(String implementation){ + public void setImplementation(Object implementation){ this.implementation = implementation; } diff --git a/version.properties b/version.properties index d709d86..a169fce 100644 --- a/version.properties +++ b/version.properties @@ -5,7 +5,7 @@ major=1 minor=4 -patch=0 +patch=1 base_version=${major}.${minor}.${patch}