|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.freehep.util.argv.StringParameter
public class StringParameter
A String parameter for use with ArgumentParser.
| Constructor Summary | |
|---|---|
StringParameter(String name,
String description)
Initialize a new String argument with the given flag and description but without a default value. |
|
| Method Summary | |
|---|---|
String |
getName()
Must return name of the parameter. |
String |
getUsage()
Usage method invoked by ArgumentParser. |
String |
getValue()
Return the string value of this argument, which may be null. |
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 StringParameter(String name,
String description)
| Method Detail |
|---|
public String getValue()
public int parse(List<String> values)
throws MissingArgumentException
parse in interface ParameterMissingArgumentExceptionpublic 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 | ||||||||