org.vraptor.converter.joda
Class LocalDateConverter
java.lang.Object
org.vraptor.converter.joda.LocalDateConverter
- All Implemented Interfaces:
- Converter
public class LocalDateConverter
- extends Object
- implements Converter
Locale based joda-time LocalDate converter. Uses the error key
invalid_date if unable to parse its information.
Same semantics as LocaleCalendarTimeConverter.
- Author:
- Fabio Kung
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocalDateConverter
public LocalDateConverter()
convert
public Object convert(String value,
Class<?> type,
LogicRequest context)
throws ConversionException
- Description copied from interface:
Converter
- Converts a value to an specific type
- Specified by:
convert in interface Converter
- Parameters:
value - current valuetype - desired type
- Returns:
- the converted value
- Throws:
ConversionException - some convertion problem hapenned
getSupportedTypes
public Class<?>[] getSupportedTypes()
- Description copied from interface:
Converter
- Returns the list of supported types
- Specified by:
getSupportedTypes in interface Converter
- Returns:
- array of supported types
Copyright © 2004-2008 VRaptor. All Rights Reserved.