public class BooleanCLA extends AbstractCLA<Boolean>
BooleanCLA class.
camelCaps, camelCapsAllowed, caseSensitive, criteria, defaultValues, enumClassName, factoryArgName, factoryMethodName, format, help, instanceClass, keychar, keyword, metaphone, metaphoneAllowed, multiple, multipleMax, multipleMin, newline, parsed, positional, required, requiredValue, systemGenerated, type, uniqueId, values, variable| Constructor and Description |
|---|
BooleanCLA()
Constructor for BooleanCLA.
|
| Modifier and Type | Method and Description |
|---|---|
void |
applyDefaults()
applyDefaults.
|
Boolean |
convert(String valueStr,
boolean _caseSensitive,
Object target)
convert.
|
String |
defaultInstanceClass()
defaultInstanceClass.
|
void |
exportCommandLine(StringBuilder out)
exportCommandLine.
|
protected void |
exportCommandLineData(StringBuilder out,
int occ)
exportCommandLineData.
|
void |
exportNamespace(String prefix,
StringBuilder out)
exportNamespace.
|
protected void |
exportNamespaceData(String prefix,
StringBuilder out,
int occ)
exportNamespaceData.
|
void |
exportXml(StringBuilder out)
exportXml.
|
protected void |
exportXmlData(StringBuilder out,
int occ)
exportXmlData.
|
String |
genericClassName()
genericClassName.
|
Boolean |
getValue()
getValue.
|
boolean |
isRequiredValue()
isRequiredValue.
|
ICmdLineArg<Boolean> |
setDefaultValue(String defaultValue)
setDefaultValue.
|
ICmdLineArg<Boolean> |
setMultiple(boolean bool)
setMultiple.
|
ICmdLineArg<Boolean> |
setRequiredValue(boolean bool)
setRequiredValue.
|
void |
setValue(Boolean value)
setValue.
|
void |
setValue(int index,
Boolean value)
setValue.
|
void |
setValue(List<Boolean> value)
setValue.
|
boolean |
supportsInList()
supportsInList.
|
asDefinedType, asEnum, asEnumArray, clone, convert, createCamelCapVersionOfKeyword, createMetaphoneVersionOfKeyword, dontAllowCamelCaps, dontAllowMetaphone, exportCommandLine, exportNamespace, exportXml, getCamelCaps, getCriteria, getDefaultValues, getDelegateOrValue, getDelegateOrValue, getEnumClassName, getFactoryArgName, getFactoryMethodName, getFormat, getHelp, getInstanceClass, getKeychar, getKeyword, getMetaphone, getMultipleMax, getMultipleMin, getType, getUniqueId, getValue, getValueAsbyteArray, getValueAsByteArray, getValueAsCalendarArray, getValueAsCharacterArray, getValueAscharArray, getValueAsDateArray, getValueAsDateTimeFormatter, getValueAsDateTimeFormatterArray, getValueAsdoubleArray, getValueAsDoubleArray, getValueAsEquation, getValueAsEquationArray, getValueAsFileArray, getValueAsfloatArray, getValueAsFloatArray, getValueAsintArray, getValueAsIntegerArray, getValueAsLocalDateArray, getValueAsLocalDateTimeArray, getValueAsLocalTimeArray, getValueAslongArray, getValueAsLongArray, getValueAsPattern, getValueAsPatternArray, getValueAsSimpleDateFormat, getValueAsSimpleDateFormatArray, getValueAsStringArray, getValues, getVariable, hasValue, isCamelCapsAllowed, isCaseSensitive, isMetaphoneAllowed, isMultiple, isParsed, isPositional, isRequired, isSystemGenerated, reset, resetCriteria, salience, setCamelCapsAllowed, setCaseSensitive, setDefaultValues, setDefaultValues, setEnumCriteria, setEnumCriteriaAllowError, setFactoryArgName, setFactoryMethodName, setFormat, setHelp, setInstanceClass, setKeychar, setKeyword, setListCriteria, setMetaphoneAllowed, setMultiple, setMultiple, setObject, setParsed, setPositional, setRangeCriteria, setRegxCriteria, setRequired, setSystemGenerated, setType, setUniqueId, setValues, setVariable, size, supportsCamelCaps, supportsCaseSensitive, supportsDefaultValues, supportsExcludeArgs, supportsFactoryArgName, supportsFactoryMethod, supportsFormat, supportsHelp, supportsInstanceClass, supportsLongName, supportsMatches, supportsMetaphone, supportsMultimax, supportsMultimin, supportsPositional, supportsRange, supportsRequired, supportsShortName, toString, uncompileQuoter, useDefaults, xmlEncodepublic void applyDefaults()
applyDefaults.
applyDefaults in interface ICmdLineArg<Boolean>applyDefaults in class AbstractCLA<Boolean>public Boolean convert(String valueStr, boolean _caseSensitive, Object target) throws ParseException
convert.
convert in interface ICmdLineArg<Boolean>convert in class AbstractCLA<Boolean>valueStr - a String object._caseSensitive - a boolean.target - a Object object.ParseException - if any.public String defaultInstanceClass()
defaultInstanceClass.
defaultInstanceClass in interface ICmdLineArg<Boolean>defaultInstanceClass in class AbstractCLA<Boolean>String object.public void exportCommandLine(StringBuilder out)
exportCommandLine.
exportCommandLine in interface ICmdLineArg<Boolean>exportCommandLine in class AbstractCLA<Boolean>out - a StringBuilder object.protected void exportCommandLineData(StringBuilder out, int occ)
exportCommandLineData.
exportCommandLineData in class AbstractCLA<Boolean>out - a StringBuilder object.occ - a int.public void exportNamespace(String prefix, StringBuilder out)
exportNamespace.
exportNamespace in interface ICmdLineArg<Boolean>exportNamespace in class AbstractCLA<Boolean>prefix - a String object.out - a StringBuilder object.protected void exportNamespaceData(String prefix, StringBuilder out, int occ)
exportNamespaceData.
exportNamespaceData in class AbstractCLA<Boolean>prefix - a String object.out - a StringBuilder object.occ - a int.public void exportXml(StringBuilder out)
exportXml.
exportXml in interface ICmdLineArg<Boolean>exportXml in class AbstractCLA<Boolean>out - a StringBuilder object.protected void exportXmlData(StringBuilder out, int occ)
exportXmlData.
exportXmlData in class AbstractCLA<Boolean>out - a StringBuilder object.occ - a int.public Boolean getValue()
getValue.
Return the last value in the list when only one is expected. And this method is for when only one value is expected. It is possible for the user to re-specify the same command on the input. That would build an array as if it were a multi-value argument. But since it is not, we return the last one specified.getValue in interface ICmdLineArg<Boolean>getValue in class AbstractCLA<Boolean>public boolean isRequiredValue()
isRequiredValue.
isRequiredValue in interface ICmdLineArg<Boolean>isRequiredValue in class AbstractCLA<Boolean>public ICmdLineArg<Boolean> setDefaultValue(String defaultValue) throws ParseException, IOException
setDefaultValue.
setDefaultValue in interface ICmdLineArg<Boolean>setDefaultValue in class AbstractCLA<Boolean>defaultValue - a String object.ICmdLineArg object.ParseException - if any.IOException - if any.public ICmdLineArg<Boolean> setMultiple(boolean bool) throws ParseException
setMultiple.
setMultiple in interface ICmdLineArg<Boolean>setMultiple in class AbstractCLA<Boolean>bool - a boolean.ICmdLineArg object.ParseException - if any.public ICmdLineArg<Boolean> setRequiredValue(boolean bool) throws ParseException
setRequiredValue.
setRequiredValue in interface ICmdLineArg<Boolean>setRequiredValue in class AbstractCLA<Boolean>bool - a boolean.ICmdLineArg object.ParseException - if any.public void setValue(Boolean value)
setValue.
setValue in interface ICmdLineArg<Boolean>setValue in class AbstractCLA<Boolean>value - a E object.public void setValue(int index,
Boolean value)
setValue.
setValue in interface ICmdLineArg<Boolean>setValue in class AbstractCLA<Boolean>index - a int.value - a E object.public void setValue(List<Boolean> value)
setValue.
setValue in class AbstractCLA<Boolean>value - a List object.public boolean supportsInList()
supportsInList.
supportsInList in interface ICmdLineArg<Boolean>supportsInList in class AbstractCLA<Boolean>