|
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.BooleanOption
A Boolean option for use with ArgumentParser. It is false unless the flag is found in the command line, in which case it is true.
Constructor Summary | |
BooleanOption(String flag,
String description)
|
|
BooleanOption(String flag,
String description,
boolean bailOut)
|
|
BooleanOption(String flag,
String shortCut,
String description)
|
|
BooleanOption(String flag,
String shortCut,
String description,
boolean bailOut)
|
Method Summary | |
String |
getOption()
Must return the flag and parameters of this option. |
String |
getUsage()
Must return a description of the usage of this option. |
boolean |
getValue()
Returns the boolean value of this option. |
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 BooleanOption(String flag, String description)
public BooleanOption(String flag, String description, boolean bailOut)
public BooleanOption(String flag, String shortCut, String description)
public BooleanOption(String flag, String shortCut, String description, boolean bailOut)
Method Detail |
public boolean getValue()
public int parse(List values) throws BailOutException
parse
in interface Option
BailOutException
public String getOption()
Option
getOption
in interface Option
public String getUsage()
Option
getUsage
in interface Option
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |