org.vraptor.converter.basic
Class StringConverter
java.lang.Object
org.vraptor.converter.basic.StringConverter
- All Implemented Interfaces:
- Converter
public class StringConverter
- extends Object
- implements Converter
String converter
- Author:
- Guilherme Silveira
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringConverter
public StringConverter()
convert
public Object convert(String value,
Class<?> type,
LogicRequest context)
- 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
canConvert
public boolean canConvert(Class<?> type)
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.