From 842633530e7c1615f988cf58fcc9b472fe5b5fe1 Mon Sep 17 00:00:00 2001 From: PriyanshuAgarwal Date: Fri, 15 Jun 2018 10:58:29 +0530 Subject: 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 --- .../java/org/onap/sdc/toscaparser/api/elements/InterfacesDef.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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; } -- cgit 1.2.3-korg