org.appfuse.util
Class DateConverter

java.lang.Object
  extended by org.appfuse.util.DateConverter
All Implemented Interfaces:
org.apache.commons.beanutils.Converter
Direct Known Subclasses:
TimestampConverter

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.

View Source

Author:
Matt Raible

Constructor Summary
DateConverter()
           
 
Method Summary
 Object convert(Class type, Object value)
           
protected  Object convertToDate(Class type, Object value, String pattern)
           
protected  Object convertToString(Class type, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateConverter

public DateConverter()
Method Detail

convert

public Object convert(Class type,
                      Object value)
Specified by:
convert in interface org.apache.commons.beanutils.Converter

convertToDate

protected Object convertToDate(Class type,
                               Object value,
                               String pattern)

convertToString

protected Object convertToString(Class type,
                                 Object value)


Copyright � 2002-2006