public abstract class AbstractDateTypeConvertor extends AbstractTypeConvertor
Constructor and Description |
---|
AbstractDateTypeConvertor(Class<?> fromType,
Class<?> toType)
Construct a Converter between given fromType an toType.
|
Modifier and Type | Method and Description |
---|---|
void |
configure(AbstractProperties properties)
Configure the converter with given configuration.
|
protected static SimpleDateFormat |
getDefaultDateFormat()
Use this accessor to access the DEFAULT_DATE_FORMAT.
|
protected static String |
getFullDatePattern(String pattern)
Transforms short date format pattern into full format pattern for SimpleDateFormat
(e.g., "YMD" to "yyyyMMdd").
|
clone, fromType, toString, toType
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
convert, parameterize
protected static final SimpleDateFormat getDefaultDateFormat()
protected static String getFullDatePattern(String pattern)
pattern
- The short pattern.public final void configure(AbstractProperties properties)
properties
- Properties to use.Copyright © 2016. All rights reserved.