com.sdicons.json.mapper.helper.impl
Class DateMapper

java.lang.Object
  extended by com.sdicons.json.mapper.helper.impl.AbstractMapper
      extended by com.sdicons.json.mapper.helper.impl.DateMapper
All Implemented Interfaces:
Helper, SimpleMapperHelper

public class DateMapper
extends AbstractMapper


Constructor Summary
DateMapper()
           
 
Method Summary
static Date fromISO8601(String timestampString)
           
static Date fromISO8601(String timestampString, boolean timezoneIgnored)
           
 Class getHelpedClass()
           
static boolean isTimeZoneIgnored()
           
static void setTimeZoneIgnored(boolean timeZoneIgnored)
           
 Object toJava(JSONValue aValue, Class aRequestedClass)
           
 JSONValue toJSON(Object aPojo)
           
static String toRFC3339(Date date)
           
static String toRFC3339(Date date, boolean timezoneIgnored)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateMapper

public DateMapper()
Method Detail

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.