public abstract class CommandLineImpl extends Object implements CommandLine
| Constructor and Description |
|---|
CommandLineImpl() |
| Modifier and Type | Method and Description |
|---|---|
int |
getOptionCount(Option option)
Retrieves the number of times the specified Option appeared in this
CommandLine
|
int |
getOptionCount(String trigger)
Retrieves the number of times the specified Option appeared in this
CommandLine
|
String |
getProperty(Option option,
String property)
Retrieves the value associated with the specified property
|
Boolean |
getSwitch(Option option)
Retrieves the Boolean value associated with the specified Switch
|
Boolean |
getSwitch(String trigger)
Retrieves the Boolean value associated with the specified Switch
|
Boolean |
getSwitch(String trigger,
Boolean defaultValue)
Retrieves the Boolean value associated with the specified Switch
|
Object |
getValue(Option option)
Retrieves the single Argument value associated with the specified Option
|
Object |
getValue(Option option,
Object defaultValue)
Retrieves the single Argument value associated with the specified Option
|
Object |
getValue(String trigger)
Retrieves the single Argument value associated with the specified Option
|
Object |
getValue(String trigger,
Object defaultValue)
Retrieves the single Argument value associated with the specified Option
|
List |
getValues(Option option)
Retrieves the Argument values associated with the specified Option
|
List |
getValues(String trigger)
Retrieves the Argument values associated with the specified Option
|
List |
getValues(String trigger,
List defaultValues)
Retrieves the Argument values associated with the specified Option
|
boolean |
hasOption(String trigger)
Detects the presence of an option with the specified trigger in this
CommandLine.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetOption, getOptions, getOptionTriggers, getProperties, getProperties, getProperty, getProperty, getSwitch, getValues, hasOptionpublic CommandLineImpl()
public final boolean hasOption(String trigger)
CommandLinehasOption in interface CommandLinetrigger - the trigger to search forpublic final List getValues(String trigger)
CommandLinegetValues in interface CommandLinetrigger - a trigger used to lookup the Optionpublic final List getValues(String trigger, List defaultValues)
CommandLinegetValues in interface CommandLinetrigger - a trigger used to lookup the OptiondefaultValues - the result to return if no values are foundpublic final List getValues(Option option)
CommandLinegetValues in interface CommandLineoption - the Option associated with the valuespublic final Object getValue(String trigger)
CommandLinegetValue in interface CommandLinetrigger - a trigger used to lookup the Optionpublic final Object getValue(String trigger, Object defaultValue)
CommandLinegetValue in interface CommandLinetrigger - a trigger used to lookup the OptiondefaultValue - the result to use if no values are foundpublic final Object getValue(Option option)
CommandLinegetValue in interface CommandLineoption - the Option associated with the valuepublic final Object getValue(Option option, Object defaultValue)
CommandLinegetValue in interface CommandLineoption - the Option associated with the valuedefaultValue - the result to use if no values are foundpublic final Boolean getSwitch(String trigger)
CommandLinegetSwitch in interface CommandLinetrigger - a trigger used to lookup the Optionpublic final Boolean getSwitch(String trigger, Boolean defaultValue)
CommandLinegetSwitch in interface CommandLinetrigger - a trigger used to lookup the OptiondefaultValue - the Boolean to use if none matchpublic final Boolean getSwitch(Option option)
CommandLinegetSwitch in interface CommandLineoption - the Option associated with the valuepublic final String getProperty(Option option, String property)
CommandLinegetProperty in interface CommandLineoption - the option i.e., -Dproperty - the property name to lookuppublic final int getOptionCount(String trigger)
CommandLinegetOptionCount in interface CommandLinetrigger - a trigger used to lookup the Optionpublic final int getOptionCount(Option option)
CommandLinegetOptionCount in interface CommandLineoption - the Option associated to checkCopyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.