cookxml.common.converter
Class DateConverter
java.lang.Object
cookxml.common.converter.DateConverter
- All Implemented Interfaces:
- Converter
- public class DateConverter
- extends Object
- implements Converter
Convert a string into a date object. "current" would represent
the current date. Otherwise, the string is parsed by java.text.DateFormat.
- Since:
- CookXml 1.0
- See Also:
Date
,
DateFormat
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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