public class ChangeTypeAdapter<T extends Change> extends JsonTypeAdapterTemplate<T>
| Modifier and Type | Class and Description |
|---|---|
protected class |
ChangeTypeAdapter.PropertyChangeStub |
| Constructor and Description |
|---|
ChangeTypeAdapter() |
| Modifier and Type | Method and Description |
|---|---|
protected T |
appendCommitMetadata(com.google.gson.JsonObject jsonObject,
com.google.gson.JsonDeserializationContext context,
T change) |
protected com.google.gson.JsonObject |
createJsonObject(T change,
com.google.gson.JsonSerializationContext context) |
protected GlobalId |
deserializeAffectedCdoId(com.google.gson.JsonObject jsonObject,
com.google.gson.JsonDeserializationContext context) |
protected ChangeTypeAdapter.PropertyChangeStub |
deserializeStub(com.google.gson.JsonObject jsonObject,
com.google.gson.JsonDeserializationContext context) |
T |
fromJson(com.google.gson.JsonElement json,
com.google.gson.JsonDeserializationContext context) |
Class |
getValueType() |
com.google.gson.JsonElement |
toJson(T change,
com.google.gson.JsonSerializationContext context) |
getValueTypesprotected T appendCommitMetadata(com.google.gson.JsonObject jsonObject, com.google.gson.JsonDeserializationContext context, T change)
public T fromJson(com.google.gson.JsonElement json, com.google.gson.JsonDeserializationContext context)
json - not null and not JsonNullcontext - use it to invoke default deserialization on the specified objectpublic com.google.gson.JsonElement toJson(T change, com.google.gson.JsonSerializationContext context)
change - not nullcontext - use it to invoke default serialization on the specified objectprotected ChangeTypeAdapter.PropertyChangeStub deserializeStub(com.google.gson.JsonObject jsonObject, com.google.gson.JsonDeserializationContext context)
protected GlobalId deserializeAffectedCdoId(com.google.gson.JsonObject jsonObject, com.google.gson.JsonDeserializationContext context)
protected com.google.gson.JsonObject createJsonObject(T change, com.google.gson.JsonSerializationContext context)
public Class getValueType()
getValueType in class JsonTypeAdapterTemplate<T extends Change>Copyright © 2014. All rights reserved.