com.sdicons.json.mapper.helper.impl
Class DateMapper
java.lang.Object
com.sdicons.json.mapper.helper.impl.AbstractMapper
com.sdicons.json.mapper.helper.impl.DateMapper
- All Implemented Interfaces:
- Helper, SimpleMapperHelper
public class DateMapper
- extends AbstractMapper
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DateMapper
public DateMapper()
isTimeZoneIgnored
public static boolean isTimeZoneIgnored()
setTimeZoneIgnored
public static void setTimeZoneIgnored(boolean timeZoneIgnored)
getHelpedClass
public Class getHelpedClass()
toJSON
public JSONValue toJSON(Object aPojo)
throws MapperException
- Specified by:
toJSON
in interface SimpleMapperHelper
- Overrides:
toJSON
in class AbstractMapper
- Throws:
MapperException
toJava
public Object toJava(JSONValue aValue,
Class aRequestedClass)
throws MapperException
- Throws:
MapperException
toRFC3339
public static String toRFC3339(Date date)
toRFC3339
public static String toRFC3339(Date date,
boolean timezoneIgnored)
fromISO8601
public static Date fromISO8601(String timestampString)
throws MapperException
- Throws:
MapperException
fromISO8601
public static Date fromISO8601(String timestampString,
boolean timezoneIgnored)
throws MapperException
- Throws:
MapperException
Copyright © 2011. All Rights Reserved.