public class CmdArgSwitch extends CmdArg
CmdArgSwitch Command line single parameter, this is a true/false parameter| Constructor and Description |
|---|
CmdArgSwitch(boolean aRequired,
String aDesc)
Creates a new
CmdArgSwitch instance. |
| Modifier and Type | Method and Description |
|---|---|
int |
getDefError() |
String |
getValue()
Describe
getValue method here. |
boolean |
getValueSwitch()
Describe
getValueSwitch method here. |
boolean |
isSwitch()
Describe
isSwitch method here. |
String |
printArg(String aTag)
Describe
printArg method here. |
int |
setValueSwitch(boolean aBool)
Describe
setValueSwitch method here. |
getCount, getDesc, getMaxCount, getTag, getValue, isRequired, setTag, setValuepublic CmdArgSwitch(boolean aRequired,
String aDesc)
CmdArgSwitch instance.aRequired - a boolean valueaDesc - descriptionpublic boolean isSwitch()
isSwitch method here.isSwitch in interface CmdArgIntfisSwitch in class CmdArgboolean valuepublic int setValueSwitch(boolean aBool)
setValueSwitch method here.setValueSwitch in interface CmdArgIntfsetValueSwitch in class CmdArgaBool - a boolean valueint valuepublic String getValue()
getValue method here.getValue in interface CmdArgIntfgetValue in class CmdArgString valuepublic boolean getValueSwitch()
getValueSwitch method here.getValueSwitch in interface CmdArgIntfgetValueSwitch in class CmdArgboolean valuepublic String printArg(String aTag)
printArg method here.printArg in interface CmdArgIntfprintArg in class CmdArgaTag - a String valueString valuepublic int getDefError()
getDefError in class CmdArgCopyright © 2020. All rights reserved.