protected class ViewSerialization.ViewSerializer extends java.lang.Object implements com.google.gson.JsonSerializer<View>
Modifier and Type | Field and Description |
---|---|
protected boolean |
compactFormat |
protected boolean |
includeFetchMode |
protected java.util.List<View> |
processedViews |
Constructor and Description |
---|
ViewSerializer(ViewSerializationOption[] options) |
Modifier and Type | Method and Description |
---|---|
protected com.google.gson.JsonArray |
createJsonArrayOfViewProperties(View view) |
protected com.google.gson.JsonObject |
createJsonObjectForNestedView(View nestedView) |
com.google.gson.JsonElement |
serialize(View src,
java.lang.reflect.Type typeOfSrc,
com.google.gson.JsonSerializationContext context) |
protected com.google.gson.JsonObject |
serializeView(View view) |
protected boolean compactFormat
protected boolean includeFetchMode
protected java.util.List<View> processedViews
public ViewSerializer(ViewSerializationOption[] options)
public com.google.gson.JsonElement serialize(View src, java.lang.reflect.Type typeOfSrc, com.google.gson.JsonSerializationContext context)
serialize
in interface com.google.gson.JsonSerializer<View>
protected com.google.gson.JsonObject serializeView(View view)
protected com.google.gson.JsonArray createJsonArrayOfViewProperties(View view)
protected com.google.gson.JsonObject createJsonObjectForNestedView(View nestedView)