|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.freehep.util.argv.ListParameter
public class ListParameter
A List parameter for use with ArgumentParser. A List parameter consumes all values it sees in the command line arguments and returns them as a list. The order of the values is preserved. Because this parameter consumes all available values, it should be registered as the last parameter added to an ArgumentParser instance.
| Constructor Summary | |
|---|---|
ListParameter(String name,
String description)
Initialize a new List parameter with the given description. |
|
| Method Summary | |
|---|---|
String |
getName()
Must return name of the parameter. |
String |
getUsage()
Usage method invoked by ArgumentParser. |
List<String> |
getValue()
Returns the list of values collected by this parameter. |
int |
parse(List<String> values)
Parsing method invoked by ArgumentParser. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ListParameter(String name,
String description)
| Method Detail |
|---|
public List<String> getValue()
public int parse(List<String> values)
parse in interface Parameterpublic String getName()
Parameter
getName in interface Parameterpublic String getUsage()
getUsage in interface Parameter
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||