Package com.walkfares.odsl.var.adaptor
Class VarCalendarAdaptor
java.lang.Object
com.walkfares.odsl.var.adaptor.VarCalendarAdaptor
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<VarCalendar>
,com.google.gson.JsonSerializer<VarCalendar>
public class VarCalendarAdaptor extends Object implements com.google.gson.JsonSerializer<VarCalendar>, com.google.gson.JsonDeserializer<VarCalendar>
-
Constructor Summary
Constructors Constructor Description VarCalendarAdaptor()
-
Method Summary
Modifier and Type Method Description VarCalendar
deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context)
com.google.gson.JsonElement
serialize(VarCalendar src, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
VarCalendarAdaptor
setContextContainer(ContextContainer contextContainer)
-
Constructor Details
-
VarCalendarAdaptor
public VarCalendarAdaptor()
-
-
Method Details
-
setContextContainer
-
deserialize
public VarCalendar deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException- Specified by:
deserialize
in interfacecom.google.gson.JsonDeserializer<VarCalendar>
- Throws:
com.google.gson.JsonParseException
-
serialize
public com.google.gson.JsonElement serialize(VarCalendar src, Type typeOfSrc, com.google.gson.JsonSerializationContext context)- Specified by:
serialize
in interfacecom.google.gson.JsonSerializer<VarCalendar>
-