Class GeneralConfigurationBuilder<T extends Configuration>
- java.lang.Object
-
- dk.eSoftware.commandLineParser.generalized.GeneralConfigurationBuilder<T>
-
- All Implemented Interfaces:
CommandLineParser.ConfigBuilder<T>
public class GeneralConfigurationBuilder<T extends Configuration> extends java.lang.Object implements CommandLineParser.ConfigBuilder<T>
-
-
Constructor Summary
Constructors Constructor Description GeneralConfigurationBuilder(java.lang.Class<T> configurationClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyCommand(CommandLineParser.Command command)Applies the given command to the builderTbuild()Builds configuration from current statejava.lang.Stringhelp()
-
-
-
Constructor Detail
-
GeneralConfigurationBuilder
public GeneralConfigurationBuilder(java.lang.Class<T> configurationClass)
-
-
Method Detail
-
applyCommand
public void applyCommand(CommandLineParser.Command command) throws UnknownCommandException
Description copied from interface:CommandLineParser.ConfigBuilderApplies the given command to the builder- Specified by:
applyCommandin interfaceCommandLineParser.ConfigBuilder<T extends Configuration>- Parameters:
command- command to apply- Throws:
UnknownCommandException
-
build
public T build()
Description copied from interface:CommandLineParser.ConfigBuilderBuilds configuration from current state- Specified by:
buildin interfaceCommandLineParser.ConfigBuilder<T extends Configuration>- Returns:
- the configuration object
-
help
public java.lang.String help()
- Specified by:
helpin interfaceCommandLineParser.ConfigBuilder<T extends Configuration>- Returns:
- a proper terminal-formatted help message describing arguments and their parameters for this configuration
-
-