org.appfuse.util
Class DateConverter
java.lang.Object
org.appfuse.util.DateConverter
- All Implemented Interfaces:
- org.apache.commons.beanutils.Converter
- public class DateConverter
- extends Object
- implements org.apache.commons.beanutils.Converter
This class is converts a java.util.Date to a String
and a String to a java.util.Date. It is used by
BeanUtils when copying properties. Registered
for use in BaseManager.
View Source
- Version:
- $Revision: 1.1 $ $Date: 2004/03/31 13:04:17 $
- Author:
- Matt Raible
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DateConverter
public DateConverter()
convert
public Object convert(Class type,
Object value)
- Convert a String to a Date and a Date to a String
- Specified by:
convert in interface org.apache.commons.beanutils.Converter
- Parameters:
type - the class type to outputvalue - the object to convert
- Returns:
- object the converted object (Date or String)
Copyright © 2002-2004