cookxml.core.converter
Class ObjectConverter
java.lang.Object
cookxml.core.converter.ObjectConverter
- All Implemented Interfaces:
- Converter
- public class ObjectConverter
- extends Object
- implements Converter
This converter treats the string as if an pointer representing an object with id or variable names.
For id objects, the syntax is "id:name" and for variable objects, the syntax is "var:name".
- Since:
- CookXml 1.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IDREF_PREFIX
public static String IDREF_PREFIX
VARREF_PREFIX
public static String VARREF_PREFIX
getInstance
public static Converter getInstance()
convert
public Object convert(String value,
DecodeEngine decodeEngine)
throws ConverterException
- Description copied from interface:
Converter
- converts 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