org.vraptor.converter.basic
Class SimpleCharacterConverter
java.lang.Object
org.vraptor.converter.basic.SimpleCharacterConverter
- All Implemented Interfaces:
- Converter
public class SimpleCharacterConverter
- extends Object
- implements Converter
Converts to Character. Uses the error key invalid_character if unable to
parse its information.
- Author:
- Guilherme Silveira
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleCharacterConverter
public SimpleCharacterConverter()
convert
public Object convert(String value,
Class<?> type,
LogicRequest context)
throws ConversionException
- Converts
- Specified by:
convert in interface Converter
- Parameters:
value - current valuetype - desired type
- Returns:
- the converted value
- Throws:
ConversionException - some convertion problem hapenned- See Also:
org.vraptor.converter.Converter#convert(java.lang.String,
java.lang.Class, org.vraptor.scope.LogicRequest)
getSupportedTypes
public Class<?>[] getSupportedTypes()
- Returns the list of supported types
- Specified by:
getSupportedTypes in interface Converter
- Returns:
- array of supported types
- See Also:
Converter.getSupportedTypes()
Copyright © 2004-2008 VRaptor. All Rights Reserved.