cookxml.core.converter
Class CallCtorConverter
java.lang.Object
cookxml.core.converter.CallCtorConverter
- All Implemented Interfaces:
- Converter
public class CallCtorConverter
- extends Object
- implements Converter
This converter is used to reduce the need to create custom converter classes.
- Since:
- CookXml 3.1
- Version:
- $Id: CallCtorConverter.java 215 2007-06-06 03:59:41Z coconut $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getConverter
public static Converter getConverter(Class targetClass)
throws NoConstructorException
- Throws:
NoConstructorException
convert
public Object convert(String value,
cookxml.core.DecodeEngine decodeEngine)
throws ConverterException
- 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:
ConverterException