cookxml.core.interfaces
Interface Converter

All Known Implementing Classes:
AlignmentConverter, BooleanConverter, ByteConverter, CellConstraintsConverter, CharConverter, ColorConverter, ColorConverter, ColumnSpecConverter, CursorConverter, CursorConverter, DateConverter, DimensionConverter, DocumentElementConverter, DoubleConverter, FloatConverter, FontConverter, FontConverter, ImageConverter, ImageConverter, ImageDataConverter, ImageDescriptorConverter, ImageIconConverter, InsetsConverter, IntConverter, KeyStrokeConverter, LocaleConverter, ObjectConverter, PointConverter, PointConverter, RectangleConverter, RectangleConverter, RowSpecConverter, ShortConverter, SpringConverter, URLConverter

public interface Converter

Converters are used to convert a string (obtained from an attribute value) to the actual value needed by the setter.

Since:
CookXml 1.0
See Also:
ConverterException

Method Summary
 Object convert(String value, DecodeEngine decodeEngine)
          converts a string value into an object type.
 

Method Detail

convert

public Object convert(String value,
                      DecodeEngine decodeEngine)
               throws ConverterException
converts a string value into an object type.

Parameters:
value - the string value to be converted.
decodeEngine - the DecodeEngine to be used.
Returns:
the converted object.
Throws:
ConverterException