public class IMetadataSerializer
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) class |
IMetadataSerializer.Registration<T extends IMetadataSection> |
Modifier and Type | Field and Description |
---|---|
private com.google.gson.Gson |
gson
Cached Gson instance.
|
private com.google.gson.GsonBuilder |
gsonBuilder |
private IRegistry<java.lang.String,IMetadataSerializer.Registration<? extends IMetadataSection>> |
metadataSectionSerializerRegistry |
Constructor and Description |
---|
IMetadataSerializer() |
Modifier and Type | Method and Description |
---|---|
private com.google.gson.Gson |
getGson()
Returns a Gson instance with type adapters registered for metadata sections.
|
<T extends IMetadataSection> |
parseMetadataSection(java.lang.String p_110503_1_,
com.google.gson.JsonObject p_110503_2_) |
<T extends IMetadataSection> |
registerMetadataSectionType(IMetadataSectionSerializer<T> p_110504_1_,
java.lang.Class<T> p_110504_2_) |
private final IRegistry<java.lang.String,IMetadataSerializer.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> p_110504_1_, java.lang.Class<T> p_110504_2_)
public <T extends IMetadataSection> T parseMetadataSection(java.lang.String p_110503_1_, com.google.gson.JsonObject p_110503_2_)
private com.google.gson.Gson getGson()