protected class EntitySerializationImpl.EntityDeserializer extends java.lang.Object implements com.google.gson.JsonDeserializer<Entity>
Constructor and Description |
---|
EntityDeserializer(MetaClass metaClass,
EntitySerializationOption... options) |
Modifier and Type | Method and Description |
---|---|
protected void |
clearFields(java.lang.Object entity) |
Entity |
deserialize(com.google.gson.JsonElement jsonElement,
java.lang.reflect.Type typeOfT,
com.google.gson.JsonDeserializationContext context) |
protected boolean |
propertyReadRequired(java.lang.String propertyName) |
protected java.util.Collection |
readCollection(com.google.gson.JsonArray jsonArray,
MetaProperty metaProperty) |
protected java.lang.Object |
readEmbeddedEntity(com.google.gson.JsonObject jsonObject,
MetaProperty metaProperty) |
protected java.lang.Object |
readEntity(com.google.gson.JsonObject jsonObject,
MetaClass metaClass) |
protected void |
readFields(com.google.gson.JsonObject jsonObject,
java.lang.Object entity) |
protected java.util.Collection |
readSimpleCollection(com.google.gson.JsonArray jsonArray,
MetaProperty metaProperty) |
protected java.lang.Object |
readSimpleProperty(com.google.gson.JsonElement valueElement,
Datatype propertyType) |
protected MetaClass metaClass
public EntityDeserializer(@Nullable MetaClass metaClass, EntitySerializationOption... options)
public Entity deserialize(com.google.gson.JsonElement jsonElement, java.lang.reflect.Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
deserialize
in interface com.google.gson.JsonDeserializer<Entity>
com.google.gson.JsonParseException
protected java.lang.Object readEntity(com.google.gson.JsonObject jsonObject, @Nullable MetaClass metaClass)
protected boolean propertyReadRequired(java.lang.String propertyName)
protected void readFields(com.google.gson.JsonObject jsonObject, java.lang.Object entity)
@Nullable protected java.lang.Object readSimpleProperty(com.google.gson.JsonElement valueElement, Datatype propertyType)
protected java.lang.Object readEmbeddedEntity(com.google.gson.JsonObject jsonObject, MetaProperty metaProperty)
protected java.util.Collection readCollection(com.google.gson.JsonArray jsonArray, MetaProperty metaProperty)
protected java.util.Collection readSimpleCollection(com.google.gson.JsonArray jsonArray, MetaProperty metaProperty)
protected void clearFields(java.lang.Object entity)