|
47 | 47 | */
|
48 | 48 | public final class ConsoleUtils {
|
49 | 49 |
|
| 50 | + /** |
| 51 | + * @see #parseParameterString(String, ModuleInfo, LogService) |
| 52 | + */ |
50 | 53 | public static Map<String, Object> parseParameterString(final String parameterString) {
|
51 | 54 | return parseParameterString(parameterString, (CommandInfo)null);
|
52 | 55 | }
|
53 | 56 |
|
| 57 | + /** |
| 58 | + * @see #parseParameterString(String, ModuleInfo, LogService) |
| 59 | + */ |
54 | 60 | public static Map<String, Object> parseParameterString(final String parameterString, final ModuleInfo info) {
|
55 | 61 | return parseParameterString(parameterString, info, null);
|
56 | 62 | }
|
57 | 63 |
|
| 64 | + /** |
| 65 | + * @see #parseParameterString(String, ModuleInfo, LogService) |
| 66 | + */ |
58 | 67 | public static Map<String, Object> parseParameterString(final String parameterString, final LogService logService) {
|
59 | 68 | return parseParameterString(parameterString, null, logService);
|
60 | 69 | }
|
61 | 70 |
|
| 71 | + /** |
| 72 | + * Helper method for turning a parameter string into a {@code Map} of |
| 73 | + * key:value pairs. If a {@link ModuleInfo} is provided, the parameter |
| 74 | + * string is assumed to be a comma-separated list of values, ordered |
| 75 | + * according to the {@code ModuleInfo's} inputs. Otherwise, the parameter |
| 76 | + * string is assumed to be a comma-separated list of "key=value" pairs. |
| 77 | + * |
| 78 | + * TODO reconcile with attribute parsing of {@link ScriptInfo} |
| 79 | + */ |
62 | 80 | public static Map<String, Object> parseParameterString(final String parameterString, final ModuleInfo info, final LogService logService) {
|
63 | 81 | final Map<String, Object> inputMap = new HashMap<String, Object>();
|
64 | 82 |
|
|
0 commit comments