public abstract class AbstractAttributesAdapter<T extends Attributes>
extends java.lang.Object
implements com.google.gson.JsonSerializer<T>, com.google.gson.JsonDeserializer<T>
Modifier | Constructor and Description |
---|---|
protected |
AbstractAttributesAdapter(java.lang.Class<T> type) |
Modifier and Type | Method and Description |
---|---|
T |
deserialize(com.google.gson.JsonElement json,
java.lang.reflect.Type typeOfSrc,
com.google.gson.JsonDeserializationContext context) |
com.google.gson.JsonElement |
serialize(T cityGMLAttributes,
java.lang.reflect.Type typeOfSrc,
com.google.gson.JsonSerializationContext context) |
protected AbstractAttributesAdapter(java.lang.Class<T> type)
public com.google.gson.JsonElement serialize(T cityGMLAttributes, java.lang.reflect.Type typeOfSrc, com.google.gson.JsonSerializationContext context)
serialize
in interface com.google.gson.JsonSerializer<T extends Attributes>
public T deserialize(com.google.gson.JsonElement json, java.lang.reflect.Type typeOfSrc, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
deserialize
in interface com.google.gson.JsonDeserializer<T extends Attributes>
com.google.gson.JsonParseException