public class MultiParser<T extends Configuration> extends CommandLineParser<T>
CommandLineParser.Command, CommandLineParser.ConfigBuilder<T extends Configuration>| Constructor and Description |
|---|
MultiParser(Map<String,CommandLineParser.ConfigBuilder<? extends T>> mapping)
Constructor for a
CommandLineParser |
| Modifier and Type | Method and Description |
|---|---|
protected CommandLineParser.ConfigBuilder<? extends T> |
getConfigBuilder(String firstParam)
Method that must be implemented retrieving the correct configBuilder given first argument
|
String |
help() |
parsepublic MultiParser(Map<String,CommandLineParser.ConfigBuilder<? extends T>> mapping)
CommandLineParsermapping - a map between modes and configbuilders.protected CommandLineParser.ConfigBuilder<? extends T> getConfigBuilder(String firstParam) throws NoSuchBuilderException
CommandLineParsergetConfigBuilder in class CommandLineParser<T extends Configuration>firstParam - first argument from commandlineCommandLineParser.ConfigBuilder to be used in parsingNoSuchBuilderException - when no CommandLineParser.ConfigBuilder is foundpublic String help()
help in class CommandLineParser<T extends Configuration>Copyright © 2022. All rights reserved.