com.uc4.ara.collabnet.JArgs
Class CmdLineParser.Option.BooleanOption
java.lang.Object
com.uc4.ara.collabnet.JArgs.CmdLineParser.Option<java.lang.Boolean>
com.uc4.ara.collabnet.JArgs.CmdLineParser.Option.BooleanOption
- Enclosing class:
- CmdLineParser.Option<T>
public static class CmdLineParser.Option.BooleanOption
- extends CmdLineParser.Option<java.lang.Boolean>
An option that expects a boolean value
Method Summary |
java.lang.Boolean |
getDefaultValue()
Override to define default value returned by getValue if option does
not want a value |
java.lang.Boolean |
parseValue(java.lang.String arg,
java.util.Locale lcoale)
Override to extract and convert an option value passed on the
command-line |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CmdLineParser.Option.BooleanOption
public CmdLineParser.Option.BooleanOption(java.lang.String shortForm,
java.lang.String longForm,
boolean required)
CmdLineParser.Option.BooleanOption
public CmdLineParser.Option.BooleanOption(java.lang.String longForm,
boolean required)
parseValue
public java.lang.Boolean parseValue(java.lang.String arg,
java.util.Locale lcoale)
- Description copied from class:
CmdLineParser.Option
- Override to extract and convert an option value passed on the
command-line
- Overrides:
parseValue
in class CmdLineParser.Option<java.lang.Boolean>
getDefaultValue
public java.lang.Boolean getDefaultValue()
- Description copied from class:
CmdLineParser.Option
- Override to define default value returned by getValue if option does
not want a value
- Overrides:
getDefaultValue
in class CmdLineParser.Option<java.lang.Boolean>
Copyright © 2004-2013. All Rights Reserved.