bundle, ILLEGAL_SN_CHARS, locale, MAX_COUNT_LIMIT, MIN_COUNT_LIMIT, values| Constructor and Description |
|---|
DateOption(String shortName,
String longName,
String description,
boolean requiresValue,
boolean mandatory,
boolean allowMany) |
DateOption(String shortName,
String longName,
String description,
boolean requiresValue,
int minCount,
int maxCount) |
| Modifier and Type | Method and Description |
|---|---|
DateFormat |
getDateFormat() |
Class<Date> |
getType()
Returns the class type of value this option can take.
|
static void |
main(String[] args) |
protected Date |
parseValue(String arg)
Parses the argument string for an option value.
|
addValue, equals, getDescription, getLongName, getMaxCount, getMinCount, getShortName, getUsageTypeString, getValues, hashCode, isAllowMany, isHidden, isMandatory, requiresValue, setHidden, setMinMaxCounts, toStringpublic DateOption(String shortName, String longName, String description, boolean requiresValue, boolean mandatory, boolean allowMany)
public Class<Date> getType()
Optionprotected Date parseValue(String arg) throws OptionException
OptionInteger instance representing 123).parseValue in class Option<Date>arg - string argument from which a value is to be parsedOptionException - if a problem occurs while parsing the argument stringpublic DateFormat getDateFormat()
DateFormat instance used to parse dates.public static void main(String[] args) throws OptionException
OptionExceptionCopyright © 2013. All rights reserved.