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
TypeHandler
parse
in interface TypeHandler
text
- 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)
TypeHandler
format
in interface TypeHandler
value
- the Java object to format, which may be nullTypeHandler.NIL
for XML formatted streamspublic Class<?> getType()
TypeHandler
getType
in interface TypeHandler