cookxml.core.interfaces
Interface Converter
- All Known Implementing Classes:
- BooleanConverter, ByteConverter, CallCtorConverter, CallFunctionConverter, CharConverter, DocumentElementConverter, DoubleConverter, FloatConverter, IntConverter, ObjectConverter, ShortConverter, 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
- Version:
- $Id: Converter.java 218 2007-06-06 06:10:10Z coconut $
- See Also:
ConverterException
Method Summary |
Object |
convert(String value,
cookxml.core.DecodeEngine decodeEngine)
Convert a string value into an object type. |
convert
Object convert(String value,
cookxml.core.DecodeEngine decodeEngine)
throws Exception
- Convert 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:
Exception
- If the exception is not a ConverterException
,
then it should be wrapped inside one by the caller.