public abstract class AbstractCoerceToDate extends Object implements DataTypesManager.Coercion
Date
, it will use the Object.toString()
method to convert the
resulting String
to a Date object.Constructor and Description |
---|
AbstractCoerceToDate() |
Modifier and Type | Method and Description |
---|---|
Object |
coerce(Object value) |
protected abstract DateFormat |
createFormatter()
Returns the
DateFormat to apply when the value to coerce is not
of Date type and it will be parsed as String. |
protected abstract String |
getDateType()
Returns the name of the Date type being coerced.
|
public Object coerce(Object value) throws CoercionException
coerce
in interface DataTypesManager.Coercion
CoercionException
protected abstract DateFormat createFormatter()
DateFormat
to apply when the value to coerce is not
of Date type and it will be parsed as String.DateFormat
to apply to parse the value to coerce as
String
protected abstract String getDateType()
Copyright © 2013 gvSIG Association. All Rights Reserved.