public interface Converter
General purpose data type converter that can be registered and used within the SwingEngine package to manage the conversion of objects from one type to another.
| Modifier and Type | Method and Description |
|---|---|
Object |
convert(Class type,
Attribute attr,
Localizer localizer)
Convert the value of the given
Attribute object into an output object of the
specified type. |
Class |
convertsTo()
A
Converters conversTo method informs about the Class type the converter
is returning when its convert method is called |
Object convert(Class type, Attribute attr, Localizer localizer) throws Exception
Attribute object into an output object of the
specified type.type - Class Data type to which the Attribute's value should be convertedattr - Attribute the attribute, providing the value to be converted.ExceptionClass convertsTo()
Converters conversTo method informs about the Class type the converter
is returning when its convert method is calledClass - the Class the converter is returning when its convert method is calledCopyright © 2002 - 2013 - Wolf Paulus - wolfpaulus.com. All rights reserved.