public class CdoSnapshotTypeAdapter extends JsonTypeAdapterTemplate<CdoSnapshot>
| Modifier and Type | Field and Description |
|---|---|
static String |
COMMIT_METADATA |
static String |
GLOBAL_CDO_ID |
static 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) |
Class |
getValueType() |
com.google.gson.JsonElement |
toJson(CdoSnapshot snapshot,
com.google.gson.JsonSerializationContext context) |
getValueTypespublic static final String GLOBAL_CDO_ID
public static final String COMMIT_METADATA
public static final String STATE
public CdoSnapshotTypeAdapter(TypeMapper typeMapper)
public 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 objectCopyright © 2014. All rights reserved.