Package com.codetaco.cli.impl
Class CmdLineImpl
- java.lang.Object
-
- com.codetaco.cli.impl.CmdLineImpl
-
-
Field Summary
Fields Modifier and Type Field Description static ClassLoader
ClassLoader
static String
INCLUDE_FILE_PREFIX
-
Constructor Summary
Constructors Constructor Description CmdLineImpl(String _name, String _help, char _commandPrefix, char _notPrefix)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int index, com.codetaco.cli.impl.type.ICmdLineArg<?> arg)
void
add(com.codetaco.cli.impl.type.ICmdLineArg<?> arg)
void
addDefaultIncludeDirectory(File defaultIncludeDirectory)
List<com.codetaco.cli.impl.type.ICmdLineArg<?>>
allArgs()
void
applyDefaults()
com.codetaco.cli.impl.type.ICmdLineArg<?>
arg(String commandToken)
com.codetaco.cli.impl.type.ICmdLineArg<?>
argForVariableName(String variableName)
void
asDefinedType(StringBuilder sb)
Object
asEnum(String _name, Object[] _possibleConstants)
Object[]
asEnumArray(String _name, Object[] _possibleConstants)
void
assignVariables(Object target)
ICmdLine
clone()
int
compareTo(ICmdLine o)
ICmdLine
convert(String valueStr)
ICmdLine
convert(String valueStr, boolean caseSensitive, Object target)
String
defaultInstanceClass()
boolean
equals(Object obj)
void
exportCommandLine(StringBuilder str)
void
exportNamespace(String prefix, StringBuilder out)
void
exportXml(String tag, StringBuilder out)
static String
format(String format, Object... args)
String
genericClassName()
Pattern
getCamelCaps()
char
getCommandPrefix()
com.codetaco.cli.impl.criteria.ICmdLineArgCriteria<?>
getCriteria()
List<File>
getDefaultIncludeDirectories()
List<ICmdLine>
getDefaultValues()
Object
getDelegateOrValue()
Object
getDelegateOrValue(int occurrence)
String
getEnumClassName()
String
getFactoryArgName()
String
getFactoryMethodName()
String
getFormat()
String
getHelp()
String
getInstanceClass()
Character
getKeychar()
String
getKeyword()
String
getMetaphone()
int
getMultipleMax()
int
getMultipleMin()
String
getName()
List<ParseException>
getParseExceptions()
int
getUniqueId()
ICmdLine
getValue()
ICmdLine
getValue(int index)
byte[]
getValueAsbyteArray()
Byte[]
getValueAsByteArray()
Calendar[]
getValueAsCalendarArray()
Character[]
getValueAsCharacterArray()
char[]
getValueAscharArray()
Date[]
getValueAsDateArray()
DateTimeFormatter
getValueAsDateTimeFormatter()
DateTimeFormatter[]
getValueAsDateTimeFormatterArray()
double[]
getValueAsdoubleArray()
Double[]
getValueAsDoubleArray()
com.codetaco.math.Equ
getValueAsEquation()
com.codetaco.math.Equ[]
getValueAsEquationArray()
File[]
getValueAsFileArray()
float[]
getValueAsfloatArray()
Float[]
getValueAsFloatArray()
int[]
getValueAsintArray()
Integer[]
getValueAsIntegerArray()
LocalDate[]
getValueAsLocalDateArray()
LocalDateTime[]
getValueAsLocalDateTimeArray()
LocalTime[]
getValueAsLocalTimeArray()
long[]
getValueAslongArray()
Long[]
getValueAsLongArray()
Pattern
getValueAsPattern()
Pattern[]
getValueAsPatternArray()
SimpleDateFormat
getValueAsSimpleDateFormat()
SimpleDateFormat[]
getValueAsSimpleDateFormatArray()
String[]
getValueAsStringArray()
URL[]
getValueAsURLArray()
ZonedDateTime[]
getValueAsZonedDateTimeArray()
List<ICmdLine>
getValues()
String
getVariable()
int
hashCode()
boolean
hasValue()
int
indexOf(com.codetaco.cli.impl.type.ICmdLineArg<?> arg)
boolean
isCaseSensitive()
boolean
isCompiled()
boolean
isMetaphoneAllowed()
boolean
isMultiple()
boolean
isParsed()
boolean
isPositional()
boolean
isRequired()
boolean
isRequiredValue()
boolean
isSystemGenerated()
boolean
isUsageRun()
void
load(Object target, String... args)
void
loadProperties(Object target, File propertyFile)
void
loadProperties(Object target, String... args)
void
loadXml(Object target, File propertyFile)
void
loadXml(Object target, String... args)
static int
matchingArgs(List<com.codetaco.cli.impl.type.ICmdLineArg<?>> bestArgs, List<com.codetaco.cli.impl.type.ICmdLineArg<?>> possibleArgs, com.codetaco.cli.impl.input.Token token, boolean includeAlreadyParsed)
Object
parse(com.codetaco.cli.impl.parser.IParserInput data)
Object
parse(com.codetaco.cli.impl.parser.IParserInput data, Object target)
Object
parse(Object target, String... args)
Object
parse(String... args)
void
pull(Object variableSource)
Pulls the values of the variables back into the arguments.void
remove(int argIndex)
void
remove(com.codetaco.cli.impl.type.ICmdLineArg<?> arg)
void
reset()
com.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
resetCriteria()
int
salience(com.codetaco.cli.impl.input.Token word)
com.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
setCaseSensitive(boolean bool)
com.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
setDefaultValue(String defaultValue)
com.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
setEnumCriteria(String enumClassName)
com.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
setEnumCriteriaAllowError(String enumClassName)
com.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
setFactoryArgName(String argName)
com.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
setFactoryMethodName(String methodName)
com.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
setFormat(String format)
com.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
setHelp(String _help)
com.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
setInstanceClass(String classString)
com.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
setKeychar(Character _keychar)
com.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
setKeyword(String _keyword)
com.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
setListCriteria(String[] values)
com.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
setMetaphoneAllowed(boolean bool)
com.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
setMultiple(boolean bool)
com.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
setMultiple(int min)
com.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
setMultiple(int min, int max)
void
setName(String _name)
void
setObject(Object value)
com.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
setParsed(boolean bool)
com.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
setPositional(boolean bool)
com.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
setRangeCriteria(String min, String max)
com.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
setRegxCriteria(String pattern)
com.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
setRequired(boolean bool)
com.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
setRequiredValue(boolean bool)
com.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
setSystemGenerated(boolean bool)
void
setType(com.codetaco.cli.impl.type.ClaType claType)
void
setUniqueId(int uId)
void
setValue(int index, ICmdLine value)
void
setValue(ICmdLine value)
com.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
setVariable(String string)
int
size()
boolean
supportsCaseSensitive()
boolean
supportsDefaultValues()
boolean
supportsExcludeArgs()
boolean
supportsFactoryArgName()
boolean
supportsFactoryMethod()
boolean
supportsFormat()
boolean
supportsHelp()
boolean
supportsInList()
boolean
supportsInstanceClass()
boolean
supportsLongName()
boolean
supportsMatches()
boolean
supportsMetaphone()
boolean
supportsMultimax()
boolean
supportsMultimin()
boolean
supportsPositional()
boolean
supportsRange()
boolean
supportsRequired()
boolean
supportsShortName()
void
useDefaults()
-
-
-
Field Detail
-
ClassLoader
public static ClassLoader ClassLoader
-
INCLUDE_FILE_PREFIX
public static final String INCLUDE_FILE_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
matchingArgs
public static int matchingArgs(List<com.codetaco.cli.impl.type.ICmdLineArg<?>> bestArgs, List<com.codetaco.cli.impl.type.ICmdLineArg<?>> possibleArgs, com.codetaco.cli.impl.input.Token token, boolean includeAlreadyParsed)
-
add
public void add(com.codetaco.cli.impl.type.ICmdLineArg<?> arg)
-
add
public void add(int index, com.codetaco.cli.impl.type.ICmdLineArg<?> arg)
-
addDefaultIncludeDirectory
public void addDefaultIncludeDirectory(File defaultIncludeDirectory)
- Specified by:
addDefaultIncludeDirectory
in interfaceICmdLine
-
allArgs
public List<com.codetaco.cli.impl.type.ICmdLineArg<?>> allArgs()
-
applyDefaults
public void applyDefaults()
- Specified by:
applyDefaults
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
arg
public com.codetaco.cli.impl.type.ICmdLineArg<?> arg(String commandToken)
-
argForVariableName
public com.codetaco.cli.impl.type.ICmdLineArg<?> argForVariableName(String variableName)
- Specified by:
argForVariableName
in interfaceICmdLine
-
asDefinedType
public void asDefinedType(StringBuilder sb)
- Specified by:
asDefinedType
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
asEnum
public Object asEnum(String _name, Object[] _possibleConstants)
- Specified by:
asEnum
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
asEnumArray
public Object[] asEnumArray(String _name, Object[] _possibleConstants)
- Specified by:
asEnumArray
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
assignVariables
public void assignVariables(Object target)
- Specified by:
assignVariables
in interfaceICmdLine
-
clone
public ICmdLine clone() throws CloneNotSupportedException
-
compareTo
public int compareTo(ICmdLine o)
- Specified by:
compareTo
in interfaceComparable<ICmdLine>
-
convert
public ICmdLine convert(String valueStr)
- Specified by:
convert
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
convert
public ICmdLine convert(String valueStr, boolean caseSensitive, Object target)
- Specified by:
convert
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
defaultInstanceClass
public String defaultInstanceClass()
- Specified by:
defaultInstanceClass
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
exportCommandLine
public void exportCommandLine(StringBuilder str)
- Specified by:
exportCommandLine
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
exportNamespace
public void exportNamespace(String prefix, StringBuilder out)
- Specified by:
exportNamespace
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
exportXml
public void exportXml(String tag, StringBuilder out)
- Specified by:
exportXml
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
genericClassName
public String genericClassName()
- Specified by:
genericClassName
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
getCamelCaps
public Pattern getCamelCaps()
- Specified by:
getCamelCaps
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
getCommandPrefix
public char getCommandPrefix()
- Specified by:
getCommandPrefix
in interfaceICmdLine
-
getCriteria
public com.codetaco.cli.impl.criteria.ICmdLineArgCriteria<?> getCriteria()
- Specified by:
getCriteria
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
getDefaultValues
public List<ICmdLine> getDefaultValues()
- Specified by:
getDefaultValues
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
getDelegateOrValue
public Object getDelegateOrValue()
- Specified by:
getDelegateOrValue
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
getDelegateOrValue
public Object getDelegateOrValue(int occurrence)
- Specified by:
getDelegateOrValue
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
getEnumClassName
public String getEnumClassName()
- Specified by:
getEnumClassName
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
getFactoryArgName
public String getFactoryArgName()
- Specified by:
getFactoryArgName
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
getFactoryMethodName
public String getFactoryMethodName()
- Specified by:
getFactoryMethodName
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
getFormat
public String getFormat()
- Specified by:
getFormat
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
getHelp
public String getHelp()
- Specified by:
getHelp
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
getInstanceClass
public String getInstanceClass()
- Specified by:
getInstanceClass
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
getKeychar
public Character getKeychar()
- Specified by:
getKeychar
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
getKeyword
public String getKeyword()
- Specified by:
getKeyword
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
getMetaphone
public String getMetaphone()
- Specified by:
getMetaphone
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
getMultipleMax
public int getMultipleMax()
- Specified by:
getMultipleMax
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
getMultipleMin
public int getMultipleMin()
- Specified by:
getMultipleMin
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
getParseExceptions
public List<ParseException> getParseExceptions()
- Specified by:
getParseExceptions
in interfaceICmdLine
-
getUniqueId
public int getUniqueId()
- Specified by:
getUniqueId
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
getValue
public ICmdLine getValue()
- Specified by:
getValue
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
getValues
public List<ICmdLine> getValues()
- Specified by:
getValues
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
getValue
public ICmdLine getValue(int index)
- Specified by:
getValue
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
getValueAsbyteArray
public byte[] getValueAsbyteArray()
- Specified by:
getValueAsbyteArray
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
getValueAsByteArray
public Byte[] getValueAsByteArray()
- Specified by:
getValueAsByteArray
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
getValueAsCalendarArray
public Calendar[] getValueAsCalendarArray()
- Specified by:
getValueAsCalendarArray
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
getValueAsCharacterArray
public Character[] getValueAsCharacterArray()
- Specified by:
getValueAsCharacterArray
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
getValueAscharArray
public char[] getValueAscharArray()
- Specified by:
getValueAscharArray
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
getValueAsDateArray
public Date[] getValueAsDateArray()
- Specified by:
getValueAsDateArray
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
getValueAsZonedDateTimeArray
public ZonedDateTime[] getValueAsZonedDateTimeArray()
- Specified by:
getValueAsZonedDateTimeArray
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
getValueAsDateTimeFormatter
public DateTimeFormatter getValueAsDateTimeFormatter()
- Specified by:
getValueAsDateTimeFormatter
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
getValueAsDateTimeFormatterArray
public DateTimeFormatter[] getValueAsDateTimeFormatterArray()
- Specified by:
getValueAsDateTimeFormatterArray
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
getValueAsdoubleArray
public double[] getValueAsdoubleArray()
- Specified by:
getValueAsdoubleArray
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
getValueAsDoubleArray
public Double[] getValueAsDoubleArray()
- Specified by:
getValueAsDoubleArray
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
getValueAsEquation
public com.codetaco.math.Equ getValueAsEquation()
- Specified by:
getValueAsEquation
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
getValueAsEquationArray
public com.codetaco.math.Equ[] getValueAsEquationArray()
- Specified by:
getValueAsEquationArray
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
getValueAsFileArray
public File[] getValueAsFileArray()
- Specified by:
getValueAsFileArray
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
getValueAsURLArray
public URL[] getValueAsURLArray()
- Specified by:
getValueAsURLArray
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
getValueAsfloatArray
public float[] getValueAsfloatArray()
- Specified by:
getValueAsfloatArray
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
getValueAsFloatArray
public Float[] getValueAsFloatArray()
- Specified by:
getValueAsFloatArray
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
getValueAsintArray
public int[] getValueAsintArray()
- Specified by:
getValueAsintArray
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
getValueAsIntegerArray
public Integer[] getValueAsIntegerArray()
- Specified by:
getValueAsIntegerArray
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
getValueAsLocalDateArray
public LocalDate[] getValueAsLocalDateArray()
- Specified by:
getValueAsLocalDateArray
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
getValueAsLocalDateTimeArray
public LocalDateTime[] getValueAsLocalDateTimeArray()
- Specified by:
getValueAsLocalDateTimeArray
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
getValueAsLocalTimeArray
public LocalTime[] getValueAsLocalTimeArray()
- Specified by:
getValueAsLocalTimeArray
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
getValueAslongArray
public long[] getValueAslongArray()
- Specified by:
getValueAslongArray
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
getValueAsLongArray
public Long[] getValueAsLongArray()
- Specified by:
getValueAsLongArray
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
getValueAsPattern
public Pattern getValueAsPattern()
- Specified by:
getValueAsPattern
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
getValueAsPatternArray
public Pattern[] getValueAsPatternArray()
- Specified by:
getValueAsPatternArray
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
getValueAsSimpleDateFormat
public SimpleDateFormat getValueAsSimpleDateFormat()
- Specified by:
getValueAsSimpleDateFormat
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
getValueAsSimpleDateFormatArray
public SimpleDateFormat[] getValueAsSimpleDateFormatArray()
- Specified by:
getValueAsSimpleDateFormatArray
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
getValueAsStringArray
public String[] getValueAsStringArray()
- Specified by:
getValueAsStringArray
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
getVariable
public String getVariable()
- Specified by:
getVariable
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
hasValue
public boolean hasValue()
- Specified by:
hasValue
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
indexOf
public int indexOf(com.codetaco.cli.impl.type.ICmdLineArg<?> arg)
-
isCaseSensitive
public boolean isCaseSensitive()
- Specified by:
isCaseSensitive
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
isCompiled
public boolean isCompiled()
-
isMetaphoneAllowed
public boolean isMetaphoneAllowed()
- Specified by:
isMetaphoneAllowed
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
isMultiple
public boolean isMultiple()
- Specified by:
isMultiple
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
isParsed
public boolean isParsed()
- Specified by:
isParsed
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
isPositional
public boolean isPositional()
- Specified by:
isPositional
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
isRequired
public boolean isRequired()
- Specified by:
isRequired
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
isRequiredValue
public boolean isRequiredValue()
- Specified by:
isRequiredValue
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
isSystemGenerated
public boolean isSystemGenerated()
- Specified by:
isSystemGenerated
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
isUsageRun
public boolean isUsageRun()
-
parse
public Object parse(com.codetaco.cli.impl.parser.IParserInput data)
-
pull
public void pull(Object variableSource)
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.
-
remove
public void remove(com.codetaco.cli.impl.type.ICmdLineArg<?> arg)
-
reset
public void reset()
- Specified by:
reset
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
resetCriteria
public com.codetaco.cli.impl.type.ICmdLineArg<ICmdLine> resetCriteria()
- Specified by:
resetCriteria
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
salience
public int salience(com.codetaco.cli.impl.input.Token word)
- Specified by:
salience
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
setCaseSensitive
public com.codetaco.cli.impl.type.ICmdLineArg<ICmdLine> setCaseSensitive(boolean bool)
- Specified by:
setCaseSensitive
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
setDefaultValue
public com.codetaco.cli.impl.type.ICmdLineArg<ICmdLine> setDefaultValue(String defaultValue)
- Specified by:
setDefaultValue
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
setEnumCriteria
public com.codetaco.cli.impl.type.ICmdLineArg<ICmdLine> setEnumCriteria(String enumClassName)
- Specified by:
setEnumCriteria
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
setEnumCriteriaAllowError
public com.codetaco.cli.impl.type.ICmdLineArg<ICmdLine> setEnumCriteriaAllowError(String enumClassName)
- Specified by:
setEnumCriteriaAllowError
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
setFactoryArgName
public com.codetaco.cli.impl.type.ICmdLineArg<ICmdLine> setFactoryArgName(String argName)
- Specified by:
setFactoryArgName
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
setFactoryMethodName
public com.codetaco.cli.impl.type.ICmdLineArg<ICmdLine> setFactoryMethodName(String methodName)
- Specified by:
setFactoryMethodName
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
setFormat
public com.codetaco.cli.impl.type.ICmdLineArg<ICmdLine> setFormat(String format)
- Specified by:
setFormat
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
setHelp
public com.codetaco.cli.impl.type.ICmdLineArg<ICmdLine> setHelp(String _help)
- Specified by:
setHelp
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
setInstanceClass
public com.codetaco.cli.impl.type.ICmdLineArg<ICmdLine> setInstanceClass(String classString)
- Specified by:
setInstanceClass
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
setKeychar
public com.codetaco.cli.impl.type.ICmdLineArg<ICmdLine> setKeychar(Character _keychar)
- Specified by:
setKeychar
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
setKeyword
public com.codetaco.cli.impl.type.ICmdLineArg<ICmdLine> setKeyword(String _keyword)
- Specified by:
setKeyword
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
setListCriteria
public com.codetaco.cli.impl.type.ICmdLineArg<ICmdLine> setListCriteria(String[] values)
- Specified by:
setListCriteria
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
setMetaphoneAllowed
public com.codetaco.cli.impl.type.ICmdLineArg<ICmdLine> setMetaphoneAllowed(boolean bool)
- Specified by:
setMetaphoneAllowed
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
setMultiple
public com.codetaco.cli.impl.type.ICmdLineArg<ICmdLine> setMultiple(boolean bool)
- Specified by:
setMultiple
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
setMultiple
public com.codetaco.cli.impl.type.ICmdLineArg<ICmdLine> setMultiple(int min)
- Specified by:
setMultiple
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
setMultiple
public com.codetaco.cli.impl.type.ICmdLineArg<ICmdLine> setMultiple(int min, int max)
- Specified by:
setMultiple
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
setName
public void setName(String _name)
-
setObject
public void setObject(Object value)
- Specified by:
setObject
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
setParsed
public com.codetaco.cli.impl.type.ICmdLineArg<ICmdLine> setParsed(boolean bool)
- Specified by:
setParsed
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
setPositional
public com.codetaco.cli.impl.type.ICmdLineArg<ICmdLine> setPositional(boolean bool)
- Specified by:
setPositional
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
setRangeCriteria
public com.codetaco.cli.impl.type.ICmdLineArg<ICmdLine> setRangeCriteria(String min, String max)
- Specified by:
setRangeCriteria
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
setRegxCriteria
public com.codetaco.cli.impl.type.ICmdLineArg<ICmdLine> setRegxCriteria(String pattern)
- Specified by:
setRegxCriteria
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
setRequired
public com.codetaco.cli.impl.type.ICmdLineArg<ICmdLine> setRequired(boolean bool)
- Specified by:
setRequired
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
setRequiredValue
public com.codetaco.cli.impl.type.ICmdLineArg<ICmdLine> setRequiredValue(boolean bool)
- Specified by:
setRequiredValue
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
setSystemGenerated
public com.codetaco.cli.impl.type.ICmdLineArg<ICmdLine> setSystemGenerated(boolean bool)
- Specified by:
setSystemGenerated
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
setType
public void setType(com.codetaco.cli.impl.type.ClaType claType)
- Specified by:
setType
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
setUniqueId
public void setUniqueId(int uId)
- Specified by:
setUniqueId
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
setValue
public void setValue(ICmdLine value)
- Specified by:
setValue
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
setValue
public void setValue(int index, ICmdLine value)
- Specified by:
setValue
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
setVariable
public com.codetaco.cli.impl.type.ICmdLineArg<ICmdLine> setVariable(String string)
- Specified by:
setVariable
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
size
public int size()
-
supportsCaseSensitive
public boolean supportsCaseSensitive()
- Specified by:
supportsCaseSensitive
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
supportsDefaultValues
public boolean supportsDefaultValues()
- Specified by:
supportsDefaultValues
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
supportsExcludeArgs
public boolean supportsExcludeArgs()
- Specified by:
supportsExcludeArgs
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
supportsFactoryArgName
public boolean supportsFactoryArgName()
- Specified by:
supportsFactoryArgName
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
supportsFactoryMethod
public boolean supportsFactoryMethod()
- Specified by:
supportsFactoryMethod
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
supportsFormat
public boolean supportsFormat()
- Specified by:
supportsFormat
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
supportsHelp
public boolean supportsHelp()
- Specified by:
supportsHelp
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
supportsInList
public boolean supportsInList()
- Specified by:
supportsInList
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
supportsInstanceClass
public boolean supportsInstanceClass()
- Specified by:
supportsInstanceClass
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
supportsLongName
public boolean supportsLongName()
- Specified by:
supportsLongName
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
supportsMatches
public boolean supportsMatches()
- Specified by:
supportsMatches
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
supportsMetaphone
public boolean supportsMetaphone()
- Specified by:
supportsMetaphone
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
supportsMultimax
public boolean supportsMultimax()
- Specified by:
supportsMultimax
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
supportsMultimin
public boolean supportsMultimin()
- Specified by:
supportsMultimin
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
supportsPositional
public boolean supportsPositional()
- Specified by:
supportsPositional
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
supportsRange
public boolean supportsRange()
- Specified by:
supportsRange
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
supportsRequired
public boolean supportsRequired()
- Specified by:
supportsRequired
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
supportsShortName
public boolean supportsShortName()
- Specified by:
supportsShortName
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
useDefaults
public void useDefaults()
- Specified by:
useDefaults
in interfacecom.codetaco.cli.impl.type.ICmdLineArg<ICmdLine>
-
-