From a158de7f4f197d65adc7332bd3ad59fb1203a085 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Tue, 16 Jan 2018 13:27:12 +0530 Subject: Init default type to STRING Issue-ID: CLI-66 Change-Id: I6c5fd672811f324d81b653cb4a2a2304678829cd Signed-off-by: Kanagaraj Manickam k00365106 --- .../org/onap/cli/fw/input/OnapCommandParameter.java | 2 +- .../onap/cli/fw/input/OnapCommandParameterType.java | 18 ++++++------------ 2 files changed, 7 insertions(+), 13 deletions(-) (limited to 'framework/src/main') 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 00a93725..465dffa4 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 @@ -58,7 +58,7 @@ public class OnapCommandParameter { /* * Parameter type such as int, json, yaml, string, etc */ - private OnapCommandParameterType parameterType; + private OnapCommandParameterType parameterType = OnapCommandParameterType.STRING; /* * Default value diff --git a/framework/src/main/java/org/onap/cli/fw/input/OnapCommandParameterType.java b/framework/src/main/java/org/onap/cli/fw/input/OnapCommandParameterType.java index 85ace4a6..391383d4 100644 --- a/framework/src/main/java/org/onap/cli/fw/input/OnapCommandParameterType.java +++ b/framework/src/main/java/org/onap/cli/fw/input/OnapCommandParameterType.java @@ -23,18 +23,12 @@ import org.onap.cli.fw.error.OnapCommandInvalidParameterType; * */ public enum OnapCommandParameterType { - /** - * JSON file. - */ - JSON, - /** - * YAML file. - */ - YAML, STRING, TEXT, DIGIT, - /** - * URL location. - */ - URL, BOOL, ARRAY, MAP, BINARY, UUID; + STRING, JSON, YAML, TEXT, URL, UUID, + DIGIT, + BOOL, + ARRAY, + MAP, + BINARY; /** * Get parameter type. -- cgit 1.2.3-korg