Package com.bc.ceres.binding.converters
Class BooleanConverter
- java.lang.Object
-
- com.bc.ceres.binding.converters.BooleanConverter
-
-
Constructor Summary
Constructors Constructor Description BooleanConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
format(Boolean value)
Converts a value of the type returned byConverter.getValueType()
to its plain text representation.Class<Boolean>
getValueType()
Gets the value type.Boolean
parse(String text)
Converts a value from its plain text representation to a Java object instance of the type returned byConverter.getValueType()
.
-
-
-
Method Detail
-
getValueType
public Class<Boolean> getValueType()
Description copied from interface:Converter
Gets the value type.- Specified by:
getValueType
in interfaceConverter<Boolean>
- Returns:
- The value type.
-
parse
public Boolean parse(String text) throws ConversionException
Description copied from interface:Converter
Converts a value from its plain text representation to a Java object instance of the type returned byConverter.getValueType()
.- Specified by:
parse
in interfaceConverter<Boolean>
- Parameters:
text
- The textual representation of the value.- Returns:
- The converted value.
- Throws:
ConversionException
- If the conversion fails.
-
format
public String format(Boolean value)
Description copied from interface:Converter
Converts a value of the type returned byConverter.getValueType()
to its plain text representation.
-
-