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