|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.formproc.conversion.AbstractTypeConverter
|
+--org.formproc.conversion.BooleanConverter
TypeConverter which converts to an Boolean. The data objects toString() method will be used to convert the data object to a String first.
This class includes a property allow-extended which if set
to true will allow additional values to be considered true. Values which
will convert to true are:
The default value for this property is 'false'.
| Constructor Summary | |
BooleanConverter()
|
|
| Method Summary | |
java.lang.Object |
convert(java.lang.Object data,
java.util.Locale locale)
Convert the given data object to an Boolean. |
boolean |
isAllowExtended()
Get the allow extended property value. |
void |
loadConfiguration(com.anthonyeden.lib.config.Configuration configuration)
Load the converter's configuration. |
void |
setAllowExtended(boolean allowExtended)
Set the allow extended property. |
void |
setAllowExtended(java.lang.String allowExtended)
Set the allow extended property. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BooleanConverter()
| Method Detail |
public java.lang.Object convert(java.lang.Object data,
java.util.Locale locale)
throws java.lang.Exception
data - The datalocale - The locale
java.lang.Exception
public void loadConfiguration(com.anthonyeden.lib.config.Configuration configuration)
throws com.anthonyeden.lib.config.ConfigurationException
loadConfiguration in interface TypeConverterloadConfiguration in class AbstractTypeConverterconfiguration - The configuration object
com.anthonyeden.lib.config.ConfigurationExceptionpublic boolean isAllowExtended()
public void setAllowExtended(boolean allowExtended)
allowExtended - Set to true to allow for extended true valuespublic void setAllowExtended(java.lang.String allowExtended)
allowExtended - Set to true to allow for extended true values
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||