|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Conversion
Defines a class that can convert one object to an object of another type.
All configuration data for the conversion must be set on the converter separately.
Method Summary | |
---|---|
Object |
convert(Object value,
Converter converter)
Convert the specified input object into an output object of the another type. |
Class |
getFromType()
The type to convert from. |
Class |
getToType()
The type to convert to. |
Method Detail |
---|
Object convert(Object value, Converter converter) throws Exception
value
- the value to be converted, read only, may be nullconverter
- the converter being used, not null
Exception
- if conversion fails, use ConversionException if creating
a new exception, otherwise just allow exceptions to be thrownClass getFromType()
Class getToType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |