|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crosswire.common.options.OptionList
public class OptionList
An OptionList contains an ordered set of Options. The primary ability of an OptionList is to find the matches for an Option.
The GNU Lesser General Public License for details.
Field Summary | |
---|---|
private Map<String,Option> |
longOptions
|
private Map<String,Option> |
shortOptions
|
Constructor Summary | |
---|---|
OptionList()
|
Method Summary | |
---|---|
void |
add(Option option)
Adds an Option to the end of this OptionList. |
List<Option> |
getLongOptions(String key)
Get a list of Options that match the Option's long name. |
List<Option> |
getOptions(String key)
Get a list of Options that match the Option's short or long name. |
Option |
getShortOption(char key)
Get the Option that matches the key on the Option's short name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Map<String,Option> shortOptions
private Map<String,Option> longOptions
Constructor Detail |
---|
public OptionList()
Method Detail |
---|
public void add(Option option)
option
- the option to appendpublic List<Option> getLongOptions(String key)
key
- the input to match
public Option getShortOption(char key)
key
- the input to match
public List<Option> getOptions(String key)
key
- the input to match
|
Copyright ยจ 2003-2015 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |