public class BasicTypeCoercerDateFormat extends BasicTypeCoercer
log, propertyConstructors
Constructor and Description |
---|
BasicTypeCoercerDateFormat() |
Modifier and Type | Method and Description |
---|---|
void |
addDateFormat(String propertyName,
DateFormat df)
Add a date format.
|
Object |
coerce(String property,
String source)
Convert a value.
|
setPropertyTypes
public Object coerce(String property, String source) throws Exception
AbstractTypeCoercer
coerce
in class BasicTypeCoercer
property
- property namesource
- value to convertException
- if coercion failedpublic void addDateFormat(String propertyName, DateFormat df)
propertyName
- property to adddf
- the date format