public class CmdLine extends Object implements ICmdLine, Cloneable
CmdLine class.
| Modifier and Type | Field and Description |
|---|---|
static ClassLoader |
ClassLoader
Constant
ClassLoader |
static String |
INCLUDE_FILE_PREFIX
Constant
INCLUDE_FILE_PREFIX="@" |
static String |
MaxHelpCommandName
Constant
MaxHelpCommandName="help" |
static char |
MinHelpCommandName
Constant
MinHelpCommandName='?' |
static char |
NegateCommandName
Constant
NegateCommandName='!' |
| Constructor and Description |
|---|
CmdLine()
Constructor for CmdLine.
|
CmdLine(String _name)
Constructor for CmdLine.
|
CmdLine(String _name,
char _commandPrefix,
char _notPrefix)
Constructor for CmdLine.
|
CmdLine(String _name,
String _help)
Constructor for CmdLine.
|
CmdLine(String _name,
String _help,
char _commandPrefix,
char _notPrefix)
Constructor for CmdLine.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(ICmdLineArg<?> arg)
add.
|
void |
add(int index,
ICmdLineArg<?> arg)
add.
|
void |
addDefaultIncludeDirectory(File defaultIncludeDirectory)
addDefaultIncludeDirectory.
|
List<ICmdLineArg<?>> |
allArgs()
allArgs.
|
void |
applyDefaults()
applyDefaults.
|
ICmdLineArg<?> |
arg(String commandToken)
arg.
|
ICmdLineArg<?> |
argForVariableName(String variableName)
argForVariableName.
|
void |
asDefinedType(StringBuilder sb)
asDefinedType.
|
Object |
asEnum(String _name,
Object[] _possibleConstants)
asEnum.
|
Object[] |
asEnumArray(String _name,
Object[] _possibleConstants)
asEnumArray.
|
void |
assignVariables(Object target)
assignVariables.
|
ICmdLine |
clone()
clone.
|
int |
compareTo(ICmdLine o) |
ICmdLine |
convert(String valueStr)
convert.
|
ICmdLine |
convert(String valueStr,
boolean caseSensitive,
Object target)
convert.
|
String |
defaultInstanceClass()
defaultInstanceClass.
|
void |
dontAllowCamelCaps()
dontAllowCamelCaps.
|
boolean |
equals(Object obj) |
void |
exportCommandLine(File file)
exportCommandLine.
|
void |
exportCommandLine(StringBuilder str)
exportCommandLine.
|
void |
exportNamespace(File file)
exportNamespace.
|
void |
exportNamespace(String prefix,
StringBuilder out)
exportNamespace.
|
void |
exportXml(StringBuilder out)
exportXml.
|
void |
exportXml(String tag,
File file)
exportXml.
|
static String |
format(String format,
Object... args)
format.
|
String |
genericClassName()
genericClassName.
|
String |
getCamelCaps()
getCamelCaps.
|
char |
getCommandPrefix()
getCommandPrefix.
|
ICmdLineArgCriteria<?> |
getCriteria()
getCriteria.
|
List<File> |
getDefaultIncludeDirectories()
Getter for the field
defaultIncludeDirectories. |
List<ICmdLine> |
getDefaultValues()
getDefaultValues.
|
Object |
getDelegateOrValue()
getDelegateOrValue.
|
Object |
getDelegateOrValue(int occurrence)
getDelegateOrValue.
|
String |
getEnumClassName()
getEnumClassName.
|
String |
getFactoryArgName()
getFactoryArgName.
|
String |
getFactoryMethodName()
getFactoryMethodName.
|
String |
getFormat()
getFormat.
|
String |
getHelp()
getHelp.
|
String |
getInstanceClass()
getInstanceClass.
|
Character |
getKeychar()
getKeychar.
|
String |
getKeyword()
getKeyword.
|
String |
getMetaphone()
getMetaphone.
|
int |
getMultipleMax()
getMultipleMax.
|
int |
getMultipleMin()
getMultipleMin.
|
String |
getName()
getName.
|
List<ParseException> |
getParseExceptions()
getParseExceptions.
|
int |
getUniqueId()
getUniqueId.
|
ICmdLine |
getValue()
getValue.
|
ICmdLine |
getValue(int index)
getValue.
|
byte[] |
getValueAsbyteArray()
getValueAsbyteArray.
|
Byte[] |
getValueAsByteArray()
getValueAsByteArray.
|
Calendar[] |
getValueAsCalendarArray()
getValueAsCalendarArray.
|
Character[] |
getValueAsCharacterArray()
getValueAsCharacterArray.
|
char[] |
getValueAscharArray()
getValueAscharArray.
|
Date[] |
getValueAsDateArray()
getValueAsDateArray.
|
DateTimeFormatter |
getValueAsDateTimeFormatter()
getValueAsDateTimeFormatter.
|
DateTimeFormatter[] |
getValueAsDateTimeFormatterArray()
getValueAsDateTimeFormatterArray.
|
double[] |
getValueAsdoubleArray()
getValueAsdoubleArray.
|
Double[] |
getValueAsDoubleArray()
getValueAsDoubleArray.
|
com.codetaco.algebrain.Equ |
getValueAsEquation()
getValueAsEquation.
|
com.codetaco.algebrain.Equ[] |
getValueAsEquationArray()
getValueAsEquationArray.
|
File[] |
getValueAsFileArray()
getValueAsFileArray.
|
float[] |
getValueAsfloatArray()
getValueAsfloatArray.
|
Float[] |
getValueAsFloatArray()
getValueAsFloatArray.
|
int[] |
getValueAsintArray()
getValueAsintArray.
|
Integer[] |
getValueAsIntegerArray()
getValueAsIntegerArray.
|
LocalDate[] |
getValueAsLocalDateArray()
getValueAsLocalDateArray.
|
LocalDateTime[] |
getValueAsLocalDateTimeArray()
getValueAsLocalDateTimeArray.
|
LocalTime[] |
getValueAsLocalTimeArray()
getValueAsLocalTimeArray.
|
long[] |
getValueAslongArray()
getValueAslongArray.
|
Long[] |
getValueAsLongArray()
getValueAsLongArray.
|
Pattern |
getValueAsPattern()
getValueAsPattern.
|
Pattern[] |
getValueAsPatternArray()
getValueAsPatternArray.
|
SimpleDateFormat |
getValueAsSimpleDateFormat()
getValueAsSimpleDateFormat.
|
SimpleDateFormat[] |
getValueAsSimpleDateFormatArray()
getValueAsSimpleDateFormatArray.
|
String[] |
getValueAsStringArray()
getValueAsStringArray.
|
String |
getVariable()
getVariable.
|
int |
hashCode() |
boolean |
hasValue()
hasValue.
|
int |
indexOf(ICmdLineArg<?> arg)
indexOf.
|
boolean |
isCamelCapsAllowed()
isCamelCapsAllowed.
|
boolean |
isCaseSensitive()
isCaseSensitive.
|
boolean |
isCompiled()
isCompiled.
|
boolean |
isMetaphoneAllowed()
isMetaphoneAllowed.
|
boolean |
isMultiple()
isMultiple.
|
boolean |
isParsed()
isParsed.
|
boolean |
isPositional()
isPositional.
|
boolean |
isRequired()
isRequired.
|
boolean |
isRequiredValue()
isRequiredValue.
|
boolean |
isSystemGenerated()
isSystemGenerated.
|
boolean |
isUsageRun()
isUsageRun.
|
static ICmdLine |
load(ICmdLine cmdLine,
Object target,
String... args)
load.
|
static ICmdLine |
load(Object target,
String... args)
load.
|
static ICmdLine |
loadProperties(Object target,
File propertyFile)
loadProperties.
|
static ICmdLine |
loadProperties(Object target,
String... args)
loadProperties.
|
static void |
loadWin(Object target,
String... args)
loadWin.
|
static ICmdLine |
loadXml(Object target,
File propertyFile)
loadXml.
|
static ICmdLine |
loadXml(Object target,
String... args)
loadXml.
|
static int |
matchingArgs(List<ICmdLineArg<?>> bestArgs,
List<ICmdLineArg<?>> possibleArgs,
Token token,
boolean includeAlreadyParsed)
matchingArgs.
|
Object |
parse(IParserInput data)
parse.
|
Object |
parse(IParserInput data,
Object target)
parse.
|
Object |
parse(Object target,
String... args)
parse.
|
Object |
parse(String... args)
parse.
|
void |
pull(Object variableSource)
pull.
|
void |
remove(ICmdLineArg<?> arg)
remove.
|
void |
remove(int argIndex)
remove.
|
void |
reset()
reset.
|
ICmdLineArg<ICmdLine> |
resetCriteria()
resetCriteria.
|
int |
salience(Token word)
salience.
|
ICmdLineArg<ICmdLine> |
setCamelCapsAllowed(boolean bool)
setCamelCapsAllowed.
|
ICmdLineArg<ICmdLine> |
setCaseSensitive(boolean bool)
setCaseSensitive.
|
ICmdLineArg<ICmdLine> |
setDefaultValue(String defaultValue)
setDefaultValue.
|
ICmdLineArg<ICmdLine> |
setEnumCriteria(String enumClassName)
setEnumCriteria.
|
ICmdLineArg<ICmdLine> |
setEnumCriteriaAllowError(String enumClassName)
setEnumCriteriaAllowError.
|
ICmdLineArg<ICmdLine> |
setFactoryArgName(String argName)
setFactoryArgName.
|
ICmdLineArg<ICmdLine> |
setFactoryMethodName(String methodName)
setFactoryMethodName.
|
ICmdLineArg<ICmdLine> |
setFormat(String format)
setFormat.
|
ICmdLineArg<ICmdLine> |
setHelp(String _help)
setHelp.
|
ICmdLineArg<ICmdLine> |
setInstanceClass(String classString)
setInstanceClass.
|
ICmdLineArg<ICmdLine> |
setKeychar(Character _keychar)
setKeychar.
|
ICmdLineArg<ICmdLine> |
setKeyword(String _keyword)
setKeyword.
|
ICmdLineArg<ICmdLine> |
setListCriteria(String[] values)
setListCriteria.
|
ICmdLineArg<ICmdLine> |
setMetaphoneAllowed(boolean bool)
setMetaphoneAllowed.
|
ICmdLineArg<ICmdLine> |
setMultiple(boolean bool)
setMultiple.
|
ICmdLineArg<ICmdLine> |
setMultiple(int min)
setMultiple.
|
ICmdLineArg<ICmdLine> |
setMultiple(int min,
int max)
setMultiple.
|
void |
setName(String _name)
Setter for the field
name. |
void |
setObject(Object value)
setObject.
|
ICmdLineArg<ICmdLine> |
setParsed(boolean bool)
setParsed.
|
ICmdLineArg<ICmdLine> |
setPositional(boolean bool)
setPositional.
|
ICmdLineArg<ICmdLine> |
setRangeCriteria(String min,
String max)
setRangeCriteria.
|
ICmdLineArg<ICmdLine> |
setRegxCriteria(String pattern)
setRegxCriteria.
|
ICmdLineArg<ICmdLine> |
setRequired(boolean bool)
setRequired.
|
ICmdLineArg<ICmdLine> |
setRequiredValue(boolean bool)
setRequiredValue.
|
ICmdLineArg<ICmdLine> |
setSystemGenerated(boolean bool)
setSystemGenerated.
|
void |
setType(ClaType claType)
setType.
|
void |
setUniqueId(int uId)
setUniqueId.
|
void |
setValue(ICmdLine value)
setValue.
|
void |
setValue(int index,
ICmdLine value)
setValue.
|
ICmdLineArg<ICmdLine> |
setVariable(String string)
setVariable.
|
int |
size()
size.
|
boolean |
supportsCamelCaps()
supportsCamelCaps.
|
boolean |
supportsCaseSensitive()
supportsCaseSensitive.
|
boolean |
supportsDefaultValues()
supportsDefaultValues.
|
boolean |
supportsExcludeArgs()
supportsExcludeArgs.
|
boolean |
supportsFactoryArgName()
supportsFactoryArgName.
|
boolean |
supportsFactoryMethod()
supportsFactoryMethod.
|
boolean |
supportsFormat()
supportsFormat.
|
boolean |
supportsHelp()
supportsHelp.
|
boolean |
supportsInList()
supportsInList.
|
boolean |
supportsInstanceClass()
supportsInstanceClass.
|
boolean |
supportsLongName()
supportsLongName.
|
boolean |
supportsMatches()
supportsMatches.
|
boolean |
supportsMetaphone()
supportsMetaphone.
|
boolean |
supportsMultimax()
supportsMultimax.
|
boolean |
supportsMultimin()
supportsMultimin.
|
boolean |
supportsPositional()
supportsPositional.
|
boolean |
supportsRange()
supportsRange.
|
boolean |
supportsRequired()
supportsRequired.
|
boolean |
supportsShortName()
supportsShortName.
|
void |
useDefaults()
useDefaults.
|
public static ClassLoader ClassLoader
ClassLoaderpublic static final String INCLUDE_FILE_PREFIX
INCLUDE_FILE_PREFIX="@"public static final String MaxHelpCommandName
MaxHelpCommandName="help"public static final char MinHelpCommandName
MinHelpCommandName='?'public static final char NegateCommandName
NegateCommandName='!'public CmdLine()
Constructor for CmdLine.
public CmdLine(String _name, char _commandPrefix, char _notPrefix)
Constructor for CmdLine.
_name - a String object._commandPrefix - a char._notPrefix - a char.public static ICmdLine load(ICmdLine cmdLine, Object target, String... args) throws IOException, ParseException
load.
cmdLine - a ICmdLine object.target - a Object object.args - a String object.ICmdLine object.IOException - if any.ParseException - if any.public static ICmdLine load(Object target, String... args) throws IOException, ParseException
load.
target - a Object object.args - a String object.ICmdLine object.IOException - if any.ParseException - if any.public static ICmdLine loadProperties(Object target, File propertyFile) throws IOException, ParseException
loadProperties.
target - a Object object.propertyFile - a File object.ICmdLine object.IOException - if any.ParseException - if any.public static ICmdLine loadProperties(Object target, String... args) throws IOException, ParseException
loadProperties.
target - a Object object.args - a String object.ICmdLine object.IOException - if any.ParseException - if any.public static void loadWin(Object target, String... args) throws IOException, ParseException
loadWin.
target - a Object object.args - a String object.IOException - if any.ParseException - if any.public static ICmdLine loadXml(Object target, File propertyFile) throws IOException, ParseException
loadXml.
target - a Object object.propertyFile - a File object.ICmdLine object.IOException - if any.ParseException - if any.public static ICmdLine loadXml(Object target, String... args) throws IOException, ParseException
loadXml.
target - a Object object.args - a String object.ICmdLine object.IOException - if any.ParseException - if any.public static int matchingArgs(List<ICmdLineArg<?>> bestArgs, List<ICmdLineArg<?>> possibleArgs, Token token, boolean includeAlreadyParsed)
matchingArgs.
public void add(ICmdLineArg<?> arg)
add.
add in interface ICmdLinearg - a ICmdLineArg object.public void add(int index,
ICmdLineArg<?> arg)
add.
add in interface ICmdLineindex - a int.arg - a ICmdLineArg object.public void addDefaultIncludeDirectory(File defaultIncludeDirectory)
addDefaultIncludeDirectory.
addDefaultIncludeDirectory in interface ICmdLinedefaultIncludeDirectory - a File object.public List<ICmdLineArg<?>> allArgs()
allArgs.
public void applyDefaults()
applyDefaults.
applyDefaults in interface ICmdLineArg<ICmdLine>public ICmdLineArg<?> arg(String commandToken)
arg.
arg in interface ICmdLinecommandToken - a String object.ICmdLineArg object.public ICmdLineArg<?> argForVariableName(String variableName) throws ParseException
argForVariableName.
argForVariableName in interface ICmdLinevariableName - a String object.ICmdLineArg object.ParseException - if any.public void asDefinedType(StringBuilder sb)
asDefinedType.
asDefinedType in interface ICmdLineArg<ICmdLine>sb - a StringBuilder object.public Object asEnum(String _name, Object[] _possibleConstants) throws ParseException
asEnum.
asEnum in interface ICmdLineArg<ICmdLine>_name - a String object._possibleConstants - an array of Object objects.Object object.ParseException - if any.public Object[] asEnumArray(String _name, Object[] _possibleConstants) throws ParseException
asEnumArray.
asEnumArray in interface ICmdLineArg<ICmdLine>_name - a String object._possibleConstants - an array of Object objects.Object objects.ParseException - if any.public void assignVariables(Object target) throws ParseException
assignVariables.
assignVariables in interface ICmdLinetarget - a Object object.ParseException - if any.public ICmdLine clone() throws CloneNotSupportedException
clone.
clone in interface ICmdLineclone in interface ICmdLineArg<ICmdLine>clone in class ObjectICmdLineArg object.CloneNotSupportedException - if any.public int compareTo(ICmdLine o)
compareTo in interface Comparable<ICmdLine>public ICmdLine convert(String valueStr) throws ParseException, IOException
convert.
convert in interface ICmdLineArg<ICmdLine>valueStr - a String object.ParseException - if any.IOException - if any.public ICmdLine convert(String valueStr, boolean caseSensitive, Object target) throws ParseException, IOException
convert.
convert in interface ICmdLineArg<ICmdLine>valueStr - a String object.caseSensitive - a boolean.target - a Object object.ParseException - if any.IOException - if any.public String defaultInstanceClass()
defaultInstanceClass.
defaultInstanceClass in interface ICmdLineArg<ICmdLine>String object.public void dontAllowCamelCaps()
dontAllowCamelCaps.
dontAllowCamelCaps in interface ICmdLineArg<ICmdLine>public void exportCommandLine(File file) throws IOException
exportCommandLine.
exportCommandLine in interface ICmdLineArg<ICmdLine>file - a File object.IOException - if any.public void exportCommandLine(StringBuilder str)
exportCommandLine.
exportCommandLine in interface ICmdLineArg<ICmdLine>str - a StringBuilder object.public void exportNamespace(File file) throws IOException
exportNamespace.
exportNamespace in interface ICmdLineArg<ICmdLine>file - a File object.IOException - if any.public void exportNamespace(String prefix, StringBuilder out)
exportNamespace.
exportNamespace in interface ICmdLineArg<ICmdLine>prefix - a String object.out - a StringBuilder object.public void exportXml(String tag, File file) throws IOException
exportXml.
exportXml in interface ICmdLineArg<ICmdLine>tag - a String object.file - a File object.IOException - if any.public void exportXml(StringBuilder out)
exportXml.
exportXml in interface ICmdLineArg<ICmdLine>out - a StringBuilder object.public String genericClassName()
genericClassName.
genericClassName in interface ICmdLineArg<ICmdLine>String object.public String getCamelCaps()
getCamelCaps.
getCamelCaps in interface ICmdLineArg<ICmdLine>String object.public char getCommandPrefix()
getCommandPrefix.
getCommandPrefix in interface ICmdLinepublic ICmdLineArgCriteria<?> getCriteria()
getCriteria.
getCriteria in interface ICmdLineArg<ICmdLine>ICmdLineArgCriteria
object.public List<File> getDefaultIncludeDirectories()
Getter for the field defaultIncludeDirectories.
List object.public List<ICmdLine> getDefaultValues()
getDefaultValues.
getDefaultValues in interface ICmdLineArg<ICmdLine>List object.public Object getDelegateOrValue()
getDelegateOrValue.
getDelegateOrValue in interface ICmdLineArg<ICmdLine>Object object.public Object getDelegateOrValue(int occurrence)
getDelegateOrValue.
getDelegateOrValue in interface ICmdLineArg<ICmdLine>occurrence - a int.Object object.public String getEnumClassName()
getEnumClassName.
getEnumClassName in interface ICmdLineArg<ICmdLine>String object.public String getFactoryArgName()
getFactoryArgName.
getFactoryArgName in interface ICmdLineArg<ICmdLine>String object.public String getFactoryMethodName()
getFactoryMethodName.
getFactoryMethodName in interface ICmdLineArg<ICmdLine>String object.public String getFormat()
getFormat.
getFormat in interface ICmdLineArg<ICmdLine>String object.public String getHelp()
getHelp.
getHelp in interface ICmdLineArg<ICmdLine>String object.public String getInstanceClass()
getInstanceClass.
getInstanceClass in interface ICmdLineArg<ICmdLine>String object.public Character getKeychar()
getKeychar.
getKeychar in interface ICmdLineArg<ICmdLine>Character object.public String getKeyword()
getKeyword.
getKeyword in interface ICmdLineArg<ICmdLine>String object.public String getMetaphone()
getMetaphone.
getMetaphone in interface ICmdLineArg<ICmdLine>Object object.public int getMultipleMax()
getMultipleMax.
getMultipleMax in interface ICmdLineArg<ICmdLine>public int getMultipleMin()
getMultipleMin.
getMultipleMin in interface ICmdLineArg<ICmdLine>public String getName()
getName.
public List<ParseException> getParseExceptions()
getParseExceptions.
getParseExceptions in interface ICmdLineList object.public int getUniqueId()
getUniqueId.
getUniqueId in interface ICmdLineArg<ICmdLine>public ICmdLine getValue()
getValue.
getValue in interface ICmdLineArg<ICmdLine>public ICmdLine getValue(int index)
getValue.
getValue in interface ICmdLineArg<ICmdLine>index - a int.public byte[] getValueAsbyteArray()
throws ParseException
getValueAsbyteArray.
getValueAsbyteArray in interface ICmdLineArg<ICmdLine>ParseException - if any.public Byte[] getValueAsByteArray() throws ParseException
getValueAsByteArray.
getValueAsByteArray in interface ICmdLineArg<ICmdLine>Byte objects.ParseException - if any.public Calendar[] getValueAsCalendarArray() throws ParseException
getValueAsCalendarArray.
getValueAsCalendarArray in interface ICmdLineArg<ICmdLine>Calendar objects.ParseException - if any.public Character[] getValueAsCharacterArray() throws ParseException
getValueAsCharacterArray.
getValueAsCharacterArray in interface ICmdLineArg<ICmdLine>Character objects.ParseException - if any.public char[] getValueAscharArray()
throws ParseException
getValueAscharArray.
getValueAscharArray in interface ICmdLineArg<ICmdLine>ParseException - if any.public Date[] getValueAsDateArray() throws ParseException
getValueAsDateArray.
getValueAsDateArray in interface ICmdLineArg<ICmdLine>Date objects.ParseException - if any.public DateTimeFormatter getValueAsDateTimeFormatter() throws ParseException
getValueAsDateTimeFormatter.
getValueAsDateTimeFormatter in interface ICmdLineArg<ICmdLine>DateTimeFormatter object.ParseException - if any.public DateTimeFormatter[] getValueAsDateTimeFormatterArray() throws ParseException
getValueAsDateTimeFormatterArray.
getValueAsDateTimeFormatterArray in interface ICmdLineArg<ICmdLine>DateTimeFormatter objects.ParseException - if any.public double[] getValueAsdoubleArray()
throws ParseException
getValueAsdoubleArray.
getValueAsdoubleArray in interface ICmdLineArg<ICmdLine>ParseException - if any.public Double[] getValueAsDoubleArray() throws ParseException
getValueAsDoubleArray.
getValueAsDoubleArray in interface ICmdLineArg<ICmdLine>Double objects.ParseException - if any.public com.codetaco.algebrain.Equ getValueAsEquation()
throws ParseException
getValueAsEquation.
getValueAsEquation in interface ICmdLineArg<ICmdLine>Equ object.ParseException - if any.public com.codetaco.algebrain.Equ[] getValueAsEquationArray()
throws ParseException
getValueAsEquationArray.
getValueAsEquationArray in interface ICmdLineArg<ICmdLine>Equ objects.ParseException - if any.public File[] getValueAsFileArray() throws ParseException
getValueAsFileArray.
getValueAsFileArray in interface ICmdLineArg<ICmdLine>File objects.ParseException - if any.public float[] getValueAsfloatArray()
throws ParseException
getValueAsfloatArray.
getValueAsfloatArray in interface ICmdLineArg<ICmdLine>ParseException - if any.public Float[] getValueAsFloatArray() throws ParseException
getValueAsFloatArray.
getValueAsFloatArray in interface ICmdLineArg<ICmdLine>Float objects.ParseException - if any.public int[] getValueAsintArray()
throws ParseException
getValueAsintArray.
getValueAsintArray in interface ICmdLineArg<ICmdLine>ParseException - if any.public Integer[] getValueAsIntegerArray() throws ParseException
getValueAsIntegerArray.
getValueAsIntegerArray in interface ICmdLineArg<ICmdLine>Integer objects.ParseException - if any.public LocalDate[] getValueAsLocalDateArray() throws ParseException
getValueAsLocalDateArray.
getValueAsLocalDateArray in interface ICmdLineArg<ICmdLine>LocalDate objects.ParseException - if any.public LocalDateTime[] getValueAsLocalDateTimeArray() throws ParseException
getValueAsLocalDateTimeArray.
getValueAsLocalDateTimeArray in interface ICmdLineArg<ICmdLine>LocalDateTime objects.ParseException - if any.public LocalTime[] getValueAsLocalTimeArray() throws ParseException
getValueAsLocalTimeArray.
getValueAsLocalTimeArray in interface ICmdLineArg<ICmdLine>LocalTime objects.ParseException - if any.public long[] getValueAslongArray()
throws ParseException
getValueAslongArray.
getValueAslongArray in interface ICmdLineArg<ICmdLine>ParseException - if any.public Long[] getValueAsLongArray() throws ParseException
getValueAsLongArray.
getValueAsLongArray in interface ICmdLineArg<ICmdLine>Long objects.ParseException - if any.public Pattern getValueAsPattern() throws ParseException
getValueAsPattern.
getValueAsPattern in interface ICmdLineArg<ICmdLine>Pattern object.ParseException - if any.public Pattern[] getValueAsPatternArray() throws ParseException
getValueAsPatternArray.
getValueAsPatternArray in interface ICmdLineArg<ICmdLine>Pattern objects.ParseException - if any.public SimpleDateFormat getValueAsSimpleDateFormat() throws ParseException
getValueAsSimpleDateFormat.
getValueAsSimpleDateFormat in interface ICmdLineArg<ICmdLine>SimpleDateFormat object.ParseException - if any.public SimpleDateFormat[] getValueAsSimpleDateFormatArray() throws ParseException
getValueAsSimpleDateFormatArray.
getValueAsSimpleDateFormatArray in interface ICmdLineArg<ICmdLine>SimpleDateFormat objects.ParseException - if any.public String[] getValueAsStringArray() throws ParseException
getValueAsStringArray.
getValueAsStringArray in interface ICmdLineArg<ICmdLine>String objects.ParseException - if any.public String getVariable()
getVariable.
getVariable in interface ICmdLineArg<ICmdLine>String object.public boolean hasValue()
hasValue.
hasValue in interface ICmdLineArg<ICmdLine>public int indexOf(ICmdLineArg<?> arg)
indexOf.
indexOf in interface ICmdLinearg - a ICmdLineArg object.public boolean isCamelCapsAllowed()
isCamelCapsAllowed.
isCamelCapsAllowed in interface ICmdLineArg<ICmdLine>public boolean isCaseSensitive()
isCaseSensitive.
isCaseSensitive in interface ICmdLineArg<ICmdLine>public boolean isCompiled()
isCompiled.
public boolean isMetaphoneAllowed()
isMetaphoneAllowed.
isMetaphoneAllowed in interface ICmdLineArg<ICmdLine>public boolean isMultiple()
isMultiple.
isMultiple in interface ICmdLineArg<ICmdLine>public boolean isParsed()
isParsed.
isParsed in interface ICmdLineArg<ICmdLine>public boolean isPositional()
isPositional.
isPositional in interface ICmdLineArg<ICmdLine>public boolean isRequired()
isRequired.
isRequired in interface ICmdLineArg<ICmdLine>public boolean isRequiredValue()
isRequiredValue.
isRequiredValue in interface ICmdLineArg<ICmdLine>public boolean isSystemGenerated()
isSystemGenerated.
isSystemGenerated in interface ICmdLineArg<ICmdLine>public boolean isUsageRun()
isUsageRun.
public Object parse(IParserInput data) throws IOException, ParseException
parse.
parse in interface ICmdLinedata - a IParserInput object.Object object.IOException - if any.ParseException - if any.public Object parse(IParserInput data, Object target) throws IOException, ParseException
parse.
parse in interface ICmdLinedata - a IParserInput object.target - a Object object.Object object.IOException - if any.ParseException - if any.public Object parse(Object target, String... args) throws IOException, ParseException
parse.
parse in interface ICmdLinetarget - a Object object.args - a String object.Object object.IOException - if any.ParseException - if any.public Object parse(String... args) throws IOException, ParseException
parse.
parse in interface ICmdLineargs - a String object.Object object.IOException - if any.ParseException - if any.public void pull(Object variableSource) throws ParseException
pull.
Pulls the values of the variables back into the arguments. This is usually in preparation for an export. When used in conjunction with a properties file, for instance, this allows the program to periodically update the properties and then pull them back into the properties file on disk.pull in interface ICmdLinevariableSource - a Object object.ParseException - if any.public void remove(ICmdLineArg<?> arg)
remove.
remove in interface ICmdLinearg - a ICmdLineArg object.public void remove(int argIndex)
remove.
public void reset()
reset.
reset in interface ICmdLineArg<ICmdLine>public ICmdLineArg<ICmdLine> resetCriteria()
resetCriteria.
resetCriteria in interface ICmdLineArg<ICmdLine>ICmdLineArg object.public int salience(Token word)
salience.
salience in interface ICmdLineArg<ICmdLine>word - a Token object.public ICmdLineArg<ICmdLine> setCamelCapsAllowed(boolean bool)
setCamelCapsAllowed.
setCamelCapsAllowed in interface ICmdLineArg<ICmdLine>bool - a boolean.ICmdLineArg object.public ICmdLineArg<ICmdLine> setCaseSensitive(boolean bool)
setCaseSensitive.
setCaseSensitive in interface ICmdLineArg<ICmdLine>bool - a boolean.ICmdLineArg object.public ICmdLineArg<ICmdLine> setDefaultValue(String defaultValue) throws ParseException, IOException
setDefaultValue.
setDefaultValue in interface ICmdLineArg<ICmdLine>defaultValue - a String object.ICmdLineArg object.ParseException - if any.IOException - if any.public ICmdLineArg<ICmdLine> setEnumCriteria(String enumClassName) throws ParseException, IOException
setEnumCriteria.
setEnumCriteria in interface ICmdLineArg<ICmdLine>enumClassName - a String object.ICmdLineArg object.ParseException - if any.IOException - if any.public ICmdLineArg<ICmdLine> setEnumCriteriaAllowError(String enumClassName)
setEnumCriteriaAllowError.
setEnumCriteriaAllowError in interface ICmdLineArg<ICmdLine>enumClassName - a String object.ICmdLineArg object.public ICmdLineArg<ICmdLine> setFactoryArgName(String argName)
setFactoryArgName.
setFactoryArgName in interface ICmdLineArg<ICmdLine>argName - a String object.ICmdLineArg object.public ICmdLineArg<ICmdLine> setFactoryMethodName(String methodName)
setFactoryMethodName.
setFactoryMethodName in interface ICmdLineArg<ICmdLine>methodName - a String object.ICmdLineArg object.public ICmdLineArg<ICmdLine> setFormat(String format) throws ParseException
setFormat.
setFormat in interface ICmdLineArg<ICmdLine>format - a String object.ICmdLineArg object.ParseException - if any.public ICmdLineArg<ICmdLine> setHelp(String _help)
setHelp.
setHelp in interface ICmdLineArg<ICmdLine>_help - a String object.ICmdLineArg object.public ICmdLineArg<ICmdLine> setInstanceClass(String classString)
setInstanceClass.
setInstanceClass in interface ICmdLineArg<ICmdLine>classString - a String object.ICmdLineArg object.public ICmdLineArg<ICmdLine> setKeychar(Character _keychar)
setKeychar.
setKeychar in interface ICmdLineArg<ICmdLine>_keychar - a Character object.ICmdLineArg object.public ICmdLineArg<ICmdLine> setKeyword(String _keyword)
setKeyword.
setKeyword in interface ICmdLineArg<ICmdLine>_keyword - a String object.ICmdLineArg object.public ICmdLineArg<ICmdLine> setListCriteria(String[] values) throws ParseException, IOException
setListCriteria.
setListCriteria in interface ICmdLineArg<ICmdLine>values - an array of String objects.ICmdLineArg object.ParseException - if any.IOException - if any.public ICmdLineArg<ICmdLine> setMetaphoneAllowed(boolean bool)
setMetaphoneAllowed.
setMetaphoneAllowed in interface ICmdLineArg<ICmdLine>bool - a boolean.ICmdLineArg object.public ICmdLineArg<ICmdLine> setMultiple(boolean bool)
setMultiple.
setMultiple in interface ICmdLineArg<ICmdLine>bool - a boolean.ICmdLineArg object.public ICmdLineArg<ICmdLine> setMultiple(int min)
setMultiple.
setMultiple in interface ICmdLineArg<ICmdLine>min - a int.ICmdLineArg object.public ICmdLineArg<ICmdLine> setMultiple(int min, int max)
setMultiple.
setMultiple in interface ICmdLineArg<ICmdLine>min - a int.max - a int.ICmdLineArg object.public void setName(String _name)
Setter for the field name.
_name - a String object.public void setObject(Object value)
setObject.
setObject in interface ICmdLineArg<ICmdLine>value - a Object object.public ICmdLineArg<ICmdLine> setParsed(boolean bool)
setParsed.
setParsed in interface ICmdLineArg<ICmdLine>bool - a boolean.ICmdLineArg object.public ICmdLineArg<ICmdLine> setPositional(boolean bool)
setPositional.
setPositional in interface ICmdLineArg<ICmdLine>bool - a boolean.ICmdLineArg object.public ICmdLineArg<ICmdLine> setRangeCriteria(String min, String max) throws ParseException, IOException
setRangeCriteria.
setRangeCriteria in interface ICmdLineArg<ICmdLine>min - a String object.max - a String object.ICmdLineArg object.ParseException - if any.IOException - if any.public ICmdLineArg<ICmdLine> setRegxCriteria(String pattern) throws ParseException
setRegxCriteria.
setRegxCriteria in interface ICmdLineArg<ICmdLine>pattern - a String object.ICmdLineArg object.ParseException - if any.public ICmdLineArg<ICmdLine> setRequired(boolean bool)
setRequired.
setRequired in interface ICmdLineArg<ICmdLine>bool - a boolean.ICmdLineArg object.public ICmdLineArg<ICmdLine> setRequiredValue(boolean bool) throws ParseException
setRequiredValue.
setRequiredValue in interface ICmdLineArg<ICmdLine>bool - a boolean.ICmdLineArg object.ParseException - if any.public ICmdLineArg<ICmdLine> setSystemGenerated(boolean bool) throws ParseException
setSystemGenerated.
setSystemGenerated in interface ICmdLineArg<ICmdLine>bool - a boolean.ICmdLineArg object.ParseException - if any.public void setType(ClaType claType)
setType.
setType in interface ICmdLineArg<ICmdLine>claType - a ClaType object.public void setUniqueId(int uId)
setUniqueId.
setUniqueId in interface ICmdLineArg<ICmdLine>uId - a int.public void setValue(ICmdLine value)
setValue.
setValue in interface ICmdLineArg<ICmdLine>value - a E object.public void setValue(int index,
ICmdLine value)
setValue.
setValue in interface ICmdLineArg<ICmdLine>index - a int.value - a E object.public ICmdLineArg<ICmdLine> setVariable(String string)
setVariable.
setVariable in interface ICmdLineArg<ICmdLine>string - a String object.ICmdLineArg object.public int size()
size.
size in interface ICmdLinesize in interface ICmdLineArg<ICmdLine>public boolean supportsCamelCaps()
supportsCamelCaps.
supportsCamelCaps in interface ICmdLineArg<ICmdLine>public boolean supportsCaseSensitive()
supportsCaseSensitive.
supportsCaseSensitive in interface ICmdLineArg<ICmdLine>public boolean supportsDefaultValues()
supportsDefaultValues.
supportsDefaultValues in interface ICmdLineArg<ICmdLine>public boolean supportsExcludeArgs()
supportsExcludeArgs.
supportsExcludeArgs in interface ICmdLineArg<ICmdLine>public boolean supportsFactoryArgName()
supportsFactoryArgName.
supportsFactoryArgName in interface ICmdLineArg<ICmdLine>public boolean supportsFactoryMethod()
supportsFactoryMethod.
supportsFactoryMethod in interface ICmdLineArg<ICmdLine>public boolean supportsFormat()
supportsFormat.
supportsFormat in interface ICmdLineArg<ICmdLine>public boolean supportsHelp()
supportsHelp.
supportsHelp in interface ICmdLineArg<ICmdLine>public boolean supportsInList()
supportsInList.
supportsInList in interface ICmdLineArg<ICmdLine>public boolean supportsInstanceClass()
supportsInstanceClass.
supportsInstanceClass in interface ICmdLineArg<ICmdLine>public boolean supportsLongName()
supportsLongName.
supportsLongName in interface ICmdLineArg<ICmdLine>public boolean supportsMatches()
supportsMatches.
supportsMatches in interface ICmdLineArg<ICmdLine>public boolean supportsMetaphone()
supportsMetaphone.
supportsMetaphone in interface ICmdLineArg<ICmdLine>public boolean supportsMultimax()
supportsMultimax.
supportsMultimax in interface ICmdLineArg<ICmdLine>public boolean supportsMultimin()
supportsMultimin.
supportsMultimin in interface ICmdLineArg<ICmdLine>public boolean supportsPositional()
supportsPositional.
supportsPositional in interface ICmdLineArg<ICmdLine>public boolean supportsRange()
supportsRange.
supportsRange in interface ICmdLineArg<ICmdLine>public boolean supportsRequired()
supportsRequired.
supportsRequired in interface ICmdLineArg<ICmdLine>public boolean supportsShortName()
supportsShortName.
supportsShortName in interface ICmdLineArg<ICmdLine>public void useDefaults()
useDefaults.
useDefaults in interface ICmdLineArg<ICmdLine>