Package com.walkfares.odsl.var.adaptor
Class VarReferenceAdaptor
java.lang.Object
com.walkfares.odsl.var.adaptor.VarReferenceAdaptor
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<VarReference>
,com.google.gson.JsonSerializer<VarReference>
public class VarReferenceAdaptor extends Object implements com.google.gson.JsonDeserializer<VarReference>, com.google.gson.JsonSerializer<VarReference>
-
Constructor Summary
Constructors Constructor Description VarReferenceAdaptor()
-
Method Summary
Modifier and Type Method Description VarReference
deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context)
com.google.gson.JsonElement
serialize(VarReference src, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
{ _type: "VarReference", _service: "data", _source: "public", _oid: "ddd", _otype: "VarCurve", _version: 1, _tag: "prod", name: "RRR", description: "XXX" }
-
Constructor Details
-
VarReferenceAdaptor
public VarReferenceAdaptor()
-
-
Method Details
-
deserialize
public VarReference 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<VarReference>
- Throws:
com.google.gson.JsonParseException
-
serialize
public com.google.gson.JsonElement serialize(VarReference src, Type typeOfSrc, com.google.gson.JsonSerializationContext context){ _type: "VarReference", _service: "data", _source: "public", _oid: "ddd", _otype: "VarCurve", _version: 1, _tag: "prod", name: "RRR", description: "XXX" }- Specified by:
serialize
in interfacecom.google.gson.JsonSerializer<VarReference>
- Parameters:
src
-typeOfSrc
-context
-- Returns:
-