|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.freehep.util.argv.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 |
getValue()
Returns the list of values collected by this parameter. |
int |
parse(List 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 getValue()
public int parse(List values)
parse
in interface Parameter
public String getName()
Parameter
getName
in interface Parameter
public String getUsage()
getUsage
in interface Parameter
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |