net.sf.easyweb4j.model.converters
Class DateConverter
java.lang.Object
net.sf.easyweb4j.model.converters.DateConverter
- All Implemented Interfaces:
- Converter
public class DateConverter
- extends Object
- implements Converter
Handles conversion of Dates. This converter uses the second element of the
array passed to determine the date format to be passed to
SimpleDateFormat
. It sets lenient to false on the
SimpleDateFormat
instance used.
- Author:
- Chandra Sekar S
Method Summary |
Date |
convert(String[] values)
Converts given input strings (extracted from the parameter) to a basic
type. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DateConverter
public DateConverter()
convert
public Date convert(String[] values)
throws FormatException
- Description copied from interface:
Converter
- Converts given input strings (extracted from the parameter) to a basic
type.
- Specified by:
convert
in interface Converter
- Parameters:
values
- The parameter values.
- Returns:
- The converted object.
- Throws:
FormatException
- If the input string is not of compatible format.
Copyright © 2009-2010 Chandra Sekar S. All Rights Reserved.