public class CdoSnapshotTypeAdapter extends JsonTypeAdapterTemplate<CdoSnapshot>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COMMIT_METADATA |
static java.lang.String |
GLOBAL_CDO_ID |
static java.lang.String |
STATE |
| Constructor and Description |
|---|
CdoSnapshotTypeAdapter(TypeMapper typeMapper) |
| Modifier and Type | Method and Description |
|---|---|
CdoSnapshot |
fromJson(com.google.gson.JsonElement json,
com.google.gson.JsonDeserializationContext context) |
java.lang.Class |
getValueType() |
com.google.gson.JsonElement |
toJson(CdoSnapshot snapshot,
com.google.gson.JsonSerializationContext context) |
getValueTypespublic static final java.lang.String GLOBAL_CDO_ID
public static final java.lang.String COMMIT_METADATA
public static final java.lang.String STATE
public CdoSnapshotTypeAdapter(TypeMapper typeMapper)
public java.lang.Class getValueType()
getValueType in class JsonTypeAdapterTemplate<CdoSnapshot>public CdoSnapshot 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(CdoSnapshot snapshot, com.google.gson.JsonSerializationContext context)
snapshot - not nullcontext - use it to invoke default serialization on the specified object