public class ConverterBooleanTemplate extends ConverterNotNullNotEmpty
| Modifier and Type | Field and Description |
|---|---|
protected String |
no
String for '
FALSE'. |
protected String |
yes
String for '
TRUE'. |
| Constructor and Description |
|---|
ConverterBooleanTemplate(String yes,
String no)
Creates boolean converter using some strings for 'true'and 'false'.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
convert(Object value,
Object[] args)
Convert a given object to another using some arguments as auxiliary.
|
acceptinitializepublic Object convert(Object value, Object[] args) throws ConverterException
IConverterconvert in interface IConverterconvert in class ConverterNotNullNotEmptyvalue - The value to be converted.args - The arguments.ConverterException - On conversion errors.Copyright © 2016. All rights reserved.