summaryrefslogtreecommitdiffstats
path: root/framework
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-01-16 13:27:12 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-01-16 13:27:12 +0530
commita158de7f4f197d65adc7332bd3ad59fb1203a085 (patch)
treee64a763b8f63ee89a287320d41c2ff7da3e619b3 /framework
parentc0ba6841037dc2d564f5c90af7e747c374ea9f49 (diff)
Init default type to STRING
Issue-ID: CLI-66 Change-Id: I6c5fd672811f324d81b653cb4a2a2304678829cd Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'framework')
-rw-r--r--framework/src/main/java/org/onap/cli/fw/input/OnapCommandParameter.java2
-rw-r--r--framework/src/main/java/org/onap/cli/fw/input/OnapCommandParameterType.java18
2 files changed, 7 insertions, 13 deletions
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.