|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.freehep.util.argv.BooleanOption
public class 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<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 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<String> values)
throws BailOutException
parse in interface OptionBailOutExceptionpublic String getOption()
Option
getOption in interface Optionpublic String getUsage()
Option
getUsage in interface Option
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||