public class CoerceToDate extends AbstractCoerceToDate
Date. If the value is not a Date, it
will use the Object.toString() method to convert the resulting
String to a Date object using the current locale default formatter
for Date through the DateFormat.getDateInstance(int) method and the
DateFormat.SHORT style.| Constructor and Description |
|---|
CoerceToDate() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
getDateType()
Returns the name of the Date type being coerced.
|
protected java.text.DateFormat[] |
getFormatters(java.util.Locale locale)
Returns the
DateFormat to apply when the value to coerce is not of
Date type and it will be parsed as String. |
protected java.util.Date |
valueOf(java.util.Date value) |
protected java.text.DateFormat[] getFormatters(java.util.Locale locale)
AbstractCoerceToDateDateFormat to apply when the value to coerce is not of
Date type and it will be parsed as String.getFormatters in class AbstractCoerceToDateDateFormat to apply to parse the value to coerce as
Stringprotected java.util.Date valueOf(java.util.Date value)
valueOf in class AbstractCoerceToDateprotected java.lang.String getDateType()
AbstractCoerceToDategetDateType in class AbstractCoerceToDate