Package dk.eSoftware.commandLineParser
Class MultiParser<T extends Configuration>
- java.lang.Object
-
- dk.eSoftware.commandLineParser.CommandLineParser<T>
-
- dk.eSoftware.commandLineParser.MultiParser<T>
-
public class MultiParser<T extends Configuration> extends CommandLineParser<T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class dk.eSoftware.commandLineParser.CommandLineParser
CommandLineParser.Command, CommandLineParser.ConfigBuilder<T extends Configuration>
-
-
Constructor Summary
Constructors Constructor Description MultiParser(java.util.Map<java.lang.String,CommandLineParser.ConfigBuilder<? extends T>> mapping)Constructor for aCommandLineParser
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CommandLineParser.ConfigBuilder<? extends T>getConfigBuilder(java.lang.String firstParam)Method that must be implemented retrieving the correct configBuilder given first argumentjava.lang.Stringhelp()-
Methods inherited from class dk.eSoftware.commandLineParser.CommandLineParser
parse
-
-
-
-
Constructor Detail
-
MultiParser
public MultiParser(java.util.Map<java.lang.String,CommandLineParser.ConfigBuilder<? extends T>> mapping)
Constructor for aCommandLineParser- Parameters:
mapping- a map between modes and configbuilders.
-
-
Method Detail
-
getConfigBuilder
protected CommandLineParser.ConfigBuilder<? extends T> getConfigBuilder(java.lang.String firstParam) throws NoSuchBuilderException
Description copied from class:CommandLineParserMethod that must be implemented retrieving the correct configBuilder given first argument- Specified by:
getConfigBuilderin classCommandLineParser<T extends Configuration>- Parameters:
firstParam- first argument from commandline- Returns:
CommandLineParser.ConfigBuilderto be used in parsing- Throws:
NoSuchBuilderException- when noCommandLineParser.ConfigBuilderis found
-
help
public java.lang.String help()
- Specified by:
helpin classCommandLineParser<T extends Configuration>- Returns:
- terminal-formatted string describing configuration options
-
-