public class ArgumentCollectionBuilder extends Object implements ParsedArguments
Constructor and Description |
---|
ArgumentCollectionBuilder() |
Modifier and Type | Method and Description |
---|---|
void |
addOption(String option)
An option has been discovered
|
void |
addValue(String value)
A value has been discovered
|
OptionCollection |
processArguments(ArgumentValidator argumentProcessor)
Process each option and its values
|
void |
unparsedOptionsFollow()
The remaining options are not parsed
|
public void unparsedOptionsFollow()
ParsedArguments
unparsedOptionsFollow
in interface ParsedArguments
public void addValue(String value)
ParsedArguments
addValue
in interface ParsedArguments
value
- the option that has been discoveredpublic void addOption(String option)
ParsedArguments
addOption
in interface ParsedArguments
option
- the option that has been recognisedpublic OptionCollection processArguments(ArgumentValidator argumentProcessor)
ParsedArguments
processArguments
in interface ParsedArguments
argumentProcessor
- the processor to apply to the argumentsCopyright © 2006-2013 lexicalscope. All Rights Reserved.