|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbpiwowar.argparser.handlers.Handler
bpiwowar.argparser.handlers.GenericHandler
bpiwowar.argparser.handlers.GenericObjectsHandler
bpiwowar.argparser.handlers.BooleanHandler
public class BooleanHandler
Nested Class Summary | |
---|---|
static interface |
BooleanHandler.NoDefaultValue
Used for a boolean-handled field when the boolean value must be specified |
static class |
BooleanHandler.NoSetValue
Use this handler if the boolean value must be explicitely given |
Field Summary |
---|
Fields inherited from class bpiwowar.argparser.handlers.GenericObjectsHandler |
---|
nbExpectedValues |
Fields inherited from class bpiwowar.argparser.handlers.GenericHandler |
---|
field, object |
Constructor Summary | |
---|---|
BooleanHandler(Object object,
Field field)
|
Method Summary | |
---|---|
boolean |
getValue()
|
protected Object |
getValue(ArgParser argParser,
String arg)
|
void |
optionSet()
|
void |
setDefault(Boolean b)
Set the default value |
void |
setValue(boolean value)
|
String |
toString()
|
Methods inherited from class bpiwowar.argparser.handlers.GenericObjectsHandler |
---|
addValue, get, getAnnotation, newInstance, parse, process, process |
Methods inherited from class bpiwowar.argparser.handlers.Handler |
---|
add, getLimitChecker, getLimitChecker, getRangeChecker, isHelpOption, processAnnotations, setPrefix, updateRangeChecker |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BooleanHandler(Object object, Field field)
Method Detail |
---|
public boolean getValue()
public void setValue(boolean value)
public void setDefault(Boolean b)
b
- public String toString()
toString
in class Object
public void optionSet()
optionSet
in class GenericObjectsHandler
protected Object getValue(ArgParser argParser, String arg) throws ArgParseException
getValue
in class GenericObjectsHandler
ArgParseException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |