Package com.bc.ceres.binding.converters
Class EnumConverter<T extends Enum<T>>
java.lang.Object
com.bc.ceres.binding.converters.EnumConverter<T>
- All Implemented Interfaces:
Converter<T>
Class for converting enumeration types.
- Version:
- $Revision$ $Date$
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConverts a value of the type returned byConverter.getValueType()
to its plain text representation.Gets the value type.Converts a value from its plain text representation to a Java object instance of the type returned byConverter.getValueType()
.
-
Constructor Details
-
EnumConverter
-
-
Method Details
-
getValueType
Description copied from interface:Converter
Gets the value type.- Specified by:
getValueType
in interfaceConverter<T extends Enum<T>>
- Returns:
- The value type.
-
parse
Description copied from interface:Converter
Converts a value from its plain text representation to a Java object instance of the type returned byConverter.getValueType()
. -
format
Description copied from interface:Converter
Converts a value of the type returned byConverter.getValueType()
to its plain text representation.
-