|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.faunos.util.main.Options
public class Options
Encapsulates command line tokens that are to be interpreted as options.
| Constructor Summary | |
|---|---|
Options()
Creates a new empty instance. |
|
Options(Collection<String> identifiers)
Creates a new instance with the given option identifiers. |
|
| Method Summary | |
|---|---|
void |
add(char opt)
Adds the specified single-character option after checking against and removing the option from the set of identifiers. |
void |
add(String opt)
Adds the specified option after checking against and removing the option from the set of identifiers. |
Set<String> |
getIdentifiers()
Returns a reference to the set of allowed option identifiers. |
List<String> |
getSubmitted()
Returns the list of options submitted in the order they were received through the either of the add methods. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Options()
public Options(Collection<String> identifiers)
| Method Detail |
|---|
public Set<String> getIdentifiers()
public void add(String opt)
opt is not a member of the set of identifers, then
a IllegalArgumentException is thrown.
getSubmitted()public void add(char opt)
opt is not a member of the set of identifers, then
a IllegalArgumentException is thrown.
getSubmitted()public List<String> getSubmitted()
add(String),
add(char)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||