protected class EntitySerialization.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(Entity entity) |
Entity |
deserialize(com.google.gson.JsonElement jsonElement,
java.lang.reflect.Type typeOfT,
com.google.gson.JsonDeserializationContext context) |
protected void |
fetchDynamicAttributes(Entity entity) |
protected boolean |
propertyReadRequired(java.lang.String propertyName) |
protected java.util.Collection |
readCollection(com.google.gson.JsonArray jsonArray,
MetaProperty metaProperty) |
protected Entity |
readEmbeddedEntity(com.google.gson.JsonObject jsonObject,
MetaProperty metaProperty) |
protected Entity |
readEntity(com.google.gson.JsonObject jsonObject,
MetaClass metaClass) |
protected void |
readFields(com.google.gson.JsonObject jsonObject,
Entity 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 Entity readEntity(com.google.gson.JsonObject jsonObject, @Nullable MetaClass metaClass)
protected boolean propertyReadRequired(java.lang.String propertyName)
protected void readFields(com.google.gson.JsonObject jsonObject, Entity entity)
@Nullable protected java.lang.Object readSimpleProperty(com.google.gson.JsonElement valueElement, Datatype propertyType)
protected Entity 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(Entity entity)
protected void fetchDynamicAttributes(Entity entity)