public class MetadataSerializer
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) class |
MetadataSerializer.Registration<T extends IMetadataSection> |
Modifier and Type | Field and Description |
---|---|
private com.google.gson.Gson |
gson |
private com.google.gson.GsonBuilder |
gsonBuilder |
private IRegistry<java.lang.String,MetadataSerializer.Registration<? extends IMetadataSection>> |
metadataSectionSerializerRegistry |
Constructor and Description |
---|
MetadataSerializer() |
Modifier and Type | Method and Description |
---|---|
private com.google.gson.Gson |
getGson() |
<T extends IMetadataSection> |
parseMetadataSection(java.lang.String sectionName,
com.google.gson.JsonObject json) |
<T extends IMetadataSection> |
registerMetadataSectionType(IMetadataSectionSerializer<T> metadataSectionSerializer,
java.lang.Class<T> clazz) |
private final IRegistry<java.lang.String,MetadataSerializer.Registration<? extends IMetadataSection>> metadataSectionSerializerRegistry
private final com.google.gson.GsonBuilder gsonBuilder
private com.google.gson.Gson gson
public <T extends IMetadataSection> void registerMetadataSectionType(IMetadataSectionSerializer<T> metadataSectionSerializer, java.lang.Class<T> clazz)
public <T extends IMetadataSection> T parseMetadataSection(java.lang.String sectionName, com.google.gson.JsonObject json)
private com.google.gson.Gson getGson()