|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TypeConverter
Name: TypeConverter
Description: An interface for type converters.
| Method Summary | |
|---|---|
Object |
convertObject(Class clazz,
Object value)
Converts the given value into an instance of this type. |
Object |
convertObject(int typeId,
Object value)
Converts the given value into an instance of this type. |
String |
formatValue(Class clazz,
Object value)
FormatsConverts the given value into an instance of this type. |
String |
formatValue(int typeId,
Object value)
FormatsConverts the given value into an instance of this type. |
DataType |
getDataType(Class clazz)
Gets the data type for the given class. |
DataType |
getDataType(int typeId)
Gets the data type for the given type ID. |
void |
registerDataType(Class clazz,
DataType typeHandler)
Registers the data type. |
| Method Detail |
|---|
void registerDataType(Class clazz,
DataType typeHandler)
clazz - The type to handle.typeHandler - The type handler.DataType getDataType(Class clazz)
clazz - The type to handle.
DataType getDataType(int typeId)
typeId - The ID of the type to get the handler for.
Object convertObject(Class clazz,
Object value)
throws TypeConverterException
clazz - The class value.value - The value to convert.
TypeConverterException - In case the conversion failed.
Object convertObject(int typeId,
Object value)
throws TypeConverterException
typeId - The type ID.value - The value to convert.
TypeConverterException - In case the conversion failed.
String formatValue(Class clazz,
Object value)
throws TypeConverterException
clazz - The class value.value - The value to convert.
TypeConverterException - In case the conversion failed.
String formatValue(int typeId,
Object value)
throws TypeConverterException
typeId - The type ID.value - The value to convert.
TypeConverterException - In case the conversion failed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||