Package com.ardoq.adapter
Class ComponentAdapter
java.lang.Object
com.ardoq.adapter.ComponentAdapter
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<Component>,com.google.gson.JsonSerializer<Component>
public class ComponentAdapter extends Object implements com.google.gson.JsonDeserializer<Component>, com.google.gson.JsonSerializer<Component>
-
Constructor Summary
Constructors Constructor Description ComponentAdapter() -
Method Summary
Modifier and Type Method Description Componentdeserialize(com.google.gson.JsonElement jsonElement, Type type, com.google.gson.JsonDeserializationContext jsonDeserializationContext)com.google.gson.JsonElementserialize(Component component, Type type, com.google.gson.JsonSerializationContext jsonSerializationContext)
-
Constructor Details
-
ComponentAdapter
public ComponentAdapter()
-
-
Method Details
-
deserialize
public Component deserialize(com.google.gson.JsonElement jsonElement, Type type, com.google.gson.JsonDeserializationContext jsonDeserializationContext) throws com.google.gson.JsonParseException- Specified by:
deserializein interfacecom.google.gson.JsonDeserializer<Component>- Throws:
com.google.gson.JsonParseException
-
serialize
public com.google.gson.JsonElement serialize(Component component, Type type, com.google.gson.JsonSerializationContext jsonSerializationContext)- Specified by:
serializein interfacecom.google.gson.JsonSerializer<Component>
-