cookxml.core.converter
Class CallFunctionConverter

java.lang.Object
  extended by cookxml.core.converter.CallFunctionConverter
All Implemented Interfaces:
Converter

public class CallFunctionConverter
extends Object
implements Converter

This converter is used to reduce the need to create custom converter classes.

Since:
CookXml 3.1
Version:
$Id: CallFunctionConverter.java 232 2007-06-06 07:29:37Z coconut $

Method Summary
 Object convert(String value, cookxml.core.DecodeEngine decodeEngine)
          Convert a string value into an object type.
static Converter getConverter(Class targetClass, String funcName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getConverter

public static Converter getConverter(Class targetClass,
                                     String funcName)
                              throws NoFactoryFunctionException
Throws:
NoFactoryFunctionException

convert

public Object convert(String value,
                      cookxml.core.DecodeEngine decodeEngine)
               throws Exception
Description copied from interface: Converter
Convert a string value into an object type.

Specified by:
convert in interface Converter
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.