|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.freehep.util.argv.MultiStringOption
public class MultiStringOption
A Multiple String option for use with ArgumentParser. This allows for multiple occurences of this option with a string (typically -I for compilers). The result is a List of Strings.
| Constructor Summary | |
|---|---|
MultiStringOption(String flag,
String name,
String description)
|
|
MultiStringOption(String flag,
String shortCut,
String name,
String description)
|
|
| Method Summary | |
|---|---|
String |
getOption()
Must return the flag and parameters of this option. |
String |
getUsage()
Must return a description of the usage of this option. |
List<String> |
getValue()
|
int |
parse(List<String> values)
Must check whether values begins with this option. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultiStringOption(String flag,
String name,
String description)
public MultiStringOption(String flag,
String shortCut,
String name,
String description)
| Method Detail |
|---|
public List<String> getValue()
public int parse(List<String> values)
throws MissingArgumentException
Option
parse in interface OptionMissingArgumentExceptionpublic String getOption()
Option
getOption in interface Optionpublic String getUsage()
Option
getUsage in interface Option
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||