| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.lang3.time.FastDateFormat |
dateFormat |
protected String |
datePattern |
protected TimeZone |
timeZone |
| Constructor and Description |
|---|
StringToDateConverter() |
| Modifier and Type | Method and Description |
|---|---|
Date |
convert(String source)
Converts the source object from S type to T type.
|
Class<?> |
getSourceClass()
Returns the class of the objects this converter converts from.
|
Class<?> |
getTargetClass()
Returns the class of the objects this converter converts to.
|
void |
init() |
void |
setDatePattern(String datePattern) |
void |
setTimeZone(String timeZone) |
protected String datePattern
protected TimeZone timeZone
protected org.apache.commons.lang3.time.FastDateFormat dateFormat
public void setDatePattern(String datePattern)
public void setTimeZone(String timeZone)
@PostConstruct public void init()
public Class<?> getSourceClass()
ConvertergetSourceClass in interface Converter<String,Date>public Class<?> getTargetClass()
ConvertergetTargetClass in interface Converter<String,Date>Copyright © 2021 CrafterCMS. All rights reserved.