Class StringToBooleanConverter
java.lang.Object
org.apache.torque.generator.source.transform.model.StringToBooleanConverter
- All Implemented Interfaces:
TypeConverter
Converts a String to a Boolean.
- Version:
- $Id: $
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
StringToBooleanConverter
public StringToBooleanConverter()
-
-
Method Details
-
accept
Description copied from interface:TypeConverterReturns true if and only if the converter can convert the passed value to the passed class.- Specified by:
acceptin interfaceTypeConverter- Parameters:
value- the value to convert, may be null.targetClass- the target class, not null.- Returns:
- whether the converter can convert the value to the passed target class.
-
convert
Description copied from interface:TypeConverterConverts the passed value to the passed class. Is only called if accept has returned true.- Specified by:
convertin interfaceTypeConverter- Parameters:
value- the value to convert, may be null.targetClass- the target class, not null.- Returns:
- the converted value.
-