public class CmdArg extends Object implements CmdArgIntf
CmdArg Handles the input arguments from main| Modifier and Type | Field and Description |
|---|---|
protected int |
count
Describe variable
count here. |
protected int |
counter
Describe variable
counter here. |
protected Object |
defValue
Describe variable
defValue here. |
protected String |
desc
Describe variable
desc here. |
protected boolean |
reqFlag
Describe variable
reqFlag here. |
| Constructor and Description |
|---|
CmdArg(boolean aRequired,
int aCount,
Object aDef,
String aDescription)
Creates a new
CmdArg instance. |
CmdArg(boolean aRequired,
String aDescription)
Creates a new
CmdArg instance. |
| Modifier and Type | Method and Description |
|---|---|
int |
getCount()
Describe
getCount method here. |
int |
getDefError() |
String |
getDesc() |
int |
getMaxCount()
Describe
getMaxCount method here. |
String |
getTag(int anArgNumber)
Describe
getTag method here. |
String |
getValue()
Describe
getValue method here. |
String |
getValue(int anArgNumber)
Describe
getValue method here. |
boolean |
getValueSwitch()
Describe
getValueSwitch method here. |
boolean |
isRequired()
Describe
isRequired method here. |
boolean |
isSwitch()
Describe
isSwitch method here. |
String |
printArg(String aTag)
Describe
printArg method here. |
void |
setTag(String aTag)
Describe
setTag method here. |
int |
setValue(Object aObj)
Describe
setValue method here. |
int |
setValueSwitch(boolean aBool)
Describe
setValueSwitch method here. |
protected Object defValue
defValue here.protected String desc
desc here.protected int count
count here.protected int counter
counter here.protected boolean reqFlag
reqFlag here.public CmdArg(boolean aRequired,
String aDescription)
CmdArg instance.aRequired - a boolean valueaDescription - descriptionpublic boolean isSwitch()
isSwitch method here.isSwitch in interface CmdArgIntfboolean valuepublic boolean isRequired()
isRequired method here.isRequired in interface CmdArgIntfboolean valuepublic int setValueSwitch(boolean aBool)
setValueSwitch method here.setValueSwitch in interface CmdArgIntfaBool - a boolean valueint valuepublic int setValue(Object aObj)
setValue method here.setValue in interface CmdArgIntfaObj - an Object valueint valuepublic int getMaxCount()
getMaxCount method here.getMaxCount in interface CmdArgIntfint valuepublic int getCount()
getCount method here.getCount in interface CmdArgIntfint valuepublic void setTag(String aTag)
setTag method here.setTag in interface CmdArgIntfaTag - a String valuepublic String getTag(int anArgNumber)
getTag method here.getTag in interface CmdArgIntfanArgNumber - an int valueString valuepublic String getValue()
getValue method here.getValue in interface CmdArgIntfString valuepublic String getValue(int anArgNumber)
getValue method here.getValue in interface CmdArgIntfanArgNumber - an int valueString valuepublic String getDesc()
getDesc in interface CmdArgIntfpublic boolean getValueSwitch()
getValueSwitch method here.getValueSwitch in interface CmdArgIntfboolean valuepublic String printArg(String aTag)
printArg method here.printArg in interface CmdArgIntfaTag - a String valueString valuepublic int getDefError()
Copyright © 2020. All rights reserved.