Modifier and Type | Field and Description |
---|---|
protected Map<String,Option> |
optionsMap |
Constructor and Description |
---|
OptionsImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addOption(Option option) |
Option |
getOption(String name)
Returns the
Option with the given name, if present. |
Set<String> |
getOptionNames()
Returns the names of all available
Option s |
String |
getOptionValue(String optionName,
String attributeName)
Returns the attribute with the given name for the
Option with the given name. |
boolean |
hasOption(String name)
Checks whether there is an
Option with the given name. |
String |
toString() |
public void addOption(Option option)
public Option getOption(String name)
Options
Option
with the given name, if present.public boolean hasOption(String name)
Options
Option
with the given name.public Set<String> getOptionNames()
Options
Option
sgetOptionNames
in interface Options
Option
spublic String getOptionValue(String optionName, String attributeName)
Options
Option
with the given name.getOptionValue
in interface Options
optionName
- the name of the Option
to get the attribute fromattributeName
- the name of the attribute of the Option
null
if either the Option
or the attribute does not
exist,Copyright © 2011–2017 aiticon GmbH. All rights reserved.