ObjectConverterpublic class BooleanConverter extends java.lang.Object implements ObjectConverter
| Constructor | Description |
|---|---|
BooleanConverter() |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Object |
fromString(java.lang.String string,
ConverterContext context) |
Converts from String to an object.
|
protected java.lang.String |
getFalse() |
Get the string to represent the false value.
|
protected java.lang.String |
getNull() |
Get the string to represent the null value.
|
protected java.lang.String |
getTrue() |
Get the string to represent the true value.
|
boolean |
supportFromString(java.lang.String string,
ConverterContext context) |
If it supports fromString.
|
boolean |
supportToString(java.lang.Object object,
ConverterContext context) |
If it supports toString method.
|
java.lang.String |
toString(java.lang.Object object,
ConverterContext context) |
Converts from object to String based on current locale.
|
public java.lang.String toString(java.lang.Object object,
ConverterContext context)
ObjectConvertertoString in interface ObjectConverterobject - object to be convertedcontext - converter context to be usedpublic boolean supportToString(java.lang.Object object,
ConverterContext context)
ObjectConvertersupportToString in interface ObjectConverterobject - object to be convertedcontext - converter context to be usedpublic java.lang.Object fromString(java.lang.String string,
ConverterContext context)
ObjectConverterfromString in interface ObjectConverterstring - the stringcontext - context to be convertedpublic boolean supportFromString(java.lang.String string,
ConverterContext context)
ObjectConvertersupportFromString in interface ObjectConverterstring - the stringcontext - context to be convertedprotected java.lang.String getTrue()
protected java.lang.String getFalse()
protected java.lang.String getNull()