public class BooleanTypeHandler extends Object implements TypeHandler
NIL
Constructor and Description |
---|
BooleanTypeHandler() |
Modifier and Type | Method and Description |
---|---|
String |
format(Object value)
Returns
Boolean.toString() , or null if value
is null. |
Class<?> |
getType()
Returns the class type supported by this handler.
|
Boolean |
parse(String text)
Parses a Boolean object from the given text.
|
public Boolean parse(String text) throws TypeConversionException
parse
in interface TypeHandler
text
- the text to parseTypeConversionException
- if the text cannot be parsedpublic String format(Object value)
Boolean.toString()
, or null if value
is null.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