public class OAConverterBoolean extends Object implements OAConverterInterface
OAConverter
Constructor and Description |
---|
OAConverterBoolean() |
Modifier and Type | Method and Description |
---|---|
Object |
convert(Class clazz,
Object value,
String fmt)
Convert to/from a Boolean value.
|
Object |
convertFromBoolean(Class toClass,
Boolean bValue,
String fmt) |
Boolean |
convertToBoolean(Object value,
String fmt) |
public Object convert(Class clazz, Object value, String fmt)
convert
in interface OAConverterInterface
clazz
- Class to convert to.value
- if converting to boolean, then any type. If converting from boolean, then boolean value or null.fmt
- format string to determine values for true, false, null. Ex: "true;false;null", "yes;no;maybe"Copyright © 1999–2019 ViaOA. All rights reserved.