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