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 Details

  • Method Details

    • setContextContainer

      public VarCalendarAdaptor setContextContainer​(ContextContainer contextContainer)
    • 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 interface com.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 interface com.google.gson.JsonSerializer<VarCalendar>