Extended notation support for interface operation.
authorPriyanshuAgarwal <pagarwal@amdocs.com>
Fri, 15 Jun 2018 05:28:29 +0000 (10:58 +0530)
committerpriyanshu <pagarwal@amdocs.com>
Fri, 15 Jun 2018 05:28:29 +0000 (10:58 +0530)
Support extended notation for "Implementation" in interface operation.

Change-Id: I1a45d7bbabea8262a86144f1552534e9f15c9d0f
Issue-ID: SDC-1433
Signed-off-by: priyanshu <pagarwal@amdocs.com>
pom.xml
src/main/java/org/onap/sdc/toscaparser/api/elements/InterfacesDef.java
version.properties

diff --git a/pom.xml b/pom.xml
index db09499..b132eb5 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
 
        <groupId>org.onap.sdc.jtosca</groupId>
        <artifactId>jtosca</artifactId>
-       <version>1.4.0-SNAPSHOT</version>
+       <version>1.4.1-SNAPSHOT</version>
        <name>sdc-jtosca</name>
        <properties>
 
index 86333d6..3edf3b7 100644 (file)
@@ -31,7 +31,7 @@ public class InterfacesDef extends StatefulEntityType {
 
        private String operationName;
        private Object operationDef;
-       private String implementation;
+       private Object implementation;
        private LinkedHashMap<String,Object> inputs;
        private String description;
 
@@ -85,7 +85,7 @@ public class InterfacesDef extends StatefulEntityType {
                        if(ivalue instanceof LinkedHashMap) {
                                for(Map.Entry<String,Object> me: ((LinkedHashMap<String,Object>)ivalue).entrySet()) {
                                        if(me.getKey().equals(IMPLEMENTATION)) {
-                                               implementation = (String)me.getValue();
+                                               implementation = me.getValue();
                                        }
                                        else if(me.getKey().equals(INPUTS)) {
                                                inputs = (LinkedHashMap<String,Object>)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;
        }
 
index d709d86..a169fce 100644 (file)
@@ -5,7 +5,7 @@
 
 major=1
 minor=4
-patch=0
+patch=1
 
 base_version=${major}.${minor}.${patch}