org.dozer.converters
Class DateConverter
java.lang.Object
org.dozer.converters.DateConverter
- All Implemented Interfaces:
- org.apache.commons.beanutils.Converter
public class DateConverter
- extends Object
- implements org.apache.commons.beanutils.Converter
Internal convertor for handling Date/Time conversions.
Supported source data types include java.util.Date,
java.sql.Date, java.sql.Time, java.sql.Timestamp, java.util.Calendar, javax.xml.datatype.XMLGregorianCalendar,
java.lang.String and any objects that return a number of milliseconds applicable to java.lang.Long
format in their toString() form.
Supported return data types are all Date/Time types, which are based on a timestamp constructor
(e.g. new MyDate(new Long(1))). Calendar return type is also supported.
Only intended for internal use.
- Author:
- tierney.matt, dmitry.buzdin
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DateConverter
public DateConverter(DateFormat dateFormat)
convert
public Object convert(Class destClass,
Object srcObj)
- Specified by:
convert in interface org.apache.commons.beanutils.Converter
Copyright © 2005-2011 dozer. All Rights Reserved.