public class CharacterTypeHandler extends Object implements TypeHandler
NIL| Constructor and Description |
|---|
CharacterTypeHandler() |
| Modifier and Type | Method and Description |
|---|---|
String |
format(Object value)
Formats a Java object into field text.
|
Class<?> |
getType()
Returns the class type supported by this handler.
|
Character |
parse(String text)
Parses field text into a Java object.
|
public Character parse(String text) throws TypeConversionException
TypeHandlerparse in interface TypeHandlertext - the field text to parse, which may be null if the field was not passed in the recordTypeConversionException - if the text cannot be parsedpublic String format(Object value)
TypeHandlerformat in interface TypeHandlervalue - the Java object to format, which may be nullTypeHandler.NIL for XML formatted streamspublic Class<?> getType()
TypeHandlergetType in interface TypeHandler