|
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.NumberParameter
A Number Parameter for use with ArgumentParser.
Constructor Summary | |
NumberParameter(String name,
String description)
Initialize a new Number parameter. |
Method Summary | |
String |
getName()
Must return name of the parameter. |
String |
getUsage()
Usage method invoked by ArgumentParser. |
BigDecimal |
getValue()
Return the value of this argument, which may be null. |
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 NumberParameter(String name, String description)
Method Detail |
public BigDecimal getValue()
public int parse(List values) throws MissingArgumentException, ArgumentFormatException
parse
in interface Parameter
MissingArgumentException
ArgumentFormatException
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 |