Package com.bc.ceres.binding.converters
Class ClassConverter
- java.lang.Object
-
- com.bc.ceres.binding.converters.ClassConverter
-
-
Constructor Summary
Constructors Constructor Description ClassConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addPackageQualifier(String qualifier)
String
format(Class javaType)
Converts a value of the type returned byConverter.getValueType()
to its plain text representation.Class<Class>
getValueType()
Gets the value type.Class<?>
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<Class> getValueType()
Description copied from interface:Converter
Gets the value type.- Specified by:
getValueType
in interfaceConverter<Class>
- Returns:
- The value type.
-
parse
public Class<?> 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<Class>
- Parameters:
text
- The textual representation of the value.- Returns:
- The converted value.
- Throws:
ConversionException
- If the conversion fails.
-
format
public String format(Class javaType)
Description copied from interface:Converter
Converts a value of the type returned byConverter.getValueType()
to its plain text representation.
-
addPackageQualifier
protected void addPackageQualifier(String qualifier)
-
-