| java.lang.Object org.apache.commons.betwixt.Options
Options | public class Options (Code) | | Collective for Betwixt optional behaviour hints.
An option links a name with a value (both strings).
author: Jakarta Commons Team since: 0.5 |
addOption | public void addOption(String name, String value)(Code) | | Adds the option.
The rule with options is that the last call to set the
value with a given name wins.
Parameters: name - String name, not null Parameters: value - Strong name, not null |
addOptions | public void addOptions(Options options)(Code) | | Adds multiple options from an existing Options collection.
The rule with options is that the most recently set value for an option
wins, so options are potentially overwritten by this call.
Parameters: options - -an existing Options collection since: 0.8 |
getNames | public String[] getNames()(Code) | | Gets the names of each option.
String array containing the name of each option |
getValue | public String getValue(String name)(Code) | | Gets the value (if any) associated with the given name.
Parameters: name - String , not null the associated value, or null if no value is assocated |
|
|