|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface varies from ConfigurationTypeHandler in that
it converts Configuration data instead of simple strings into objects
and vice versa. This is useful for objects that are made of more than
a single piece of data.
Copyright 2002 Sapient
ConfigurationTypeHandler| Method Summary | |
Class |
getRequiredConfigurationInterface()
Allows the type handler to specify the minimum required configuration interface for configuration passed into the toObject method. |
Configuration |
toConfiguration(Object objectValue)
Translates the an Object into the Configuration version of itself |
Object |
toObject(Class returnType,
Configuration data)
Translates the Configuration representation of data in an object version |
| Method Detail |
public Object toObject(Class returnType,
Configuration data)
throws TypeConversionException
returnType - the type of the return valuedata - the Configuration representation of the data
TypeConversionException - when there is a formatting problem
with the supplied Configuration data
public Configuration toConfiguration(Object objectValue)
throws TypeConversionException
objectValue - The object to be translated
TypeConversionException - when there is a problem during
the conversionpublic Class getRequiredConfigurationInterface()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||