|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.freehep.util.argv.NumberParameter
public class 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<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 NumberParameter(String name,
String description)
| Method Detail |
|---|
public BigDecimal getValue()
public int parse(List<String> values)
throws MissingArgumentException,
ArgumentFormatException
parse in interface ParameterMissingArgumentException
ArgumentFormatExceptionpublic 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 | ||||||||