public class CommandLineHandler
extends java.lang.Object
Constructor and Description |
---|
CommandLineHandler() |
Modifier and Type | Method and Description |
---|---|
Argument |
getArgument(java.lang.String key)
Return the argument of a specified key.
|
ArgumentGroup |
getArgumentGroup(java.lang.String key)
Return the argument group of a specified key.
|
java.util.Map<java.lang.String,Argument> |
getArguments()
Return the arguments managed by the handler.
|
java.util.Map<java.lang.String,ArgumentGroup> |
getArgumentsGroups()
Return the arguments groups managed by the handler.
|
boolean |
handleConfigurationArguments(java.io.File dir,
java.util.Map<java.lang.String,java.lang.String> args)
Handle the command-line configuration arguments managed by the handler.
|
boolean |
hasArgument(java.lang.String key)
Return true if there is an argument for a specified key.
|
boolean |
hasArgumentGroup(java.lang.String key)
Return true if there is an argument group for a specified key.
|
void |
setCommandLineListener(CommandLineListener listener)
Set the command-line listener.
|
void |
setup(java.net.URL url)
Setup the handler with the structure of the properties managed by the handler.
|
public void setCommandLineListener(CommandLineListener listener)
listener
- the command-line listenerpublic void setup(java.net.URL url)
url
- the XML filepublic java.util.Map<java.lang.String,ArgumentGroup> getArgumentsGroups()
public ArgumentGroup getArgumentGroup(java.lang.String key)
key
- the keypublic boolean hasArgumentGroup(java.lang.String key)
key
- the keypublic java.util.Map<java.lang.String,Argument> getArguments()
public Argument getArgument(java.lang.String key)
key
- the keypublic boolean hasArgument(java.lang.String key)
key
- the keypublic boolean handleConfigurationArguments(java.io.File dir, java.util.Map<java.lang.String,java.lang.String> args)
dir
- the base directory (may be null)args
- the arguments