From cefb231b6be16cf461e12e6eb7767ed639610773 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Thu, 26 Apr 2018 15:09:48 +0530 Subject: Add method for retrieving raw data from Parameter Issue-ID: CLI-100 Change-Id: I83b049e6d71ef2daa1ef3cf66e0c99e1c3ad827c Signed-off-by: Kanagaraj Manickam k00365106 --- .../main/java/org/onap/cli/fw/input/OnapCommandParameter.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'framework/src/main/java') diff --git a/framework/src/main/java/org/onap/cli/fw/input/OnapCommandParameter.java b/framework/src/main/java/org/onap/cli/fw/input/OnapCommandParameter.java index 3b689b10..23263c12 100644 --- a/framework/src/main/java/org/onap/cli/fw/input/OnapCommandParameter.java +++ b/framework/src/main/java/org/onap/cli/fw/input/OnapCommandParameter.java @@ -270,7 +270,6 @@ public class OnapCommandParameter { * @throws OnapCommandInvalidParameterValue * exception */ - //mrkanag return value in the type format instead of string format public Object getValue() { if (value != null) { return value; @@ -278,6 +277,14 @@ public class OnapCommandParameter { return getDefaultValue(); } + /** + * Returns the raw value + * @return + */ + public Object getRawValue() { + return this.rawValue; + } + public void setValue(Object value) throws OnapCommandInvalidParameterValue { this.rawValue = value; -- cgit 1.2.3-korg