Package io.jmix.core.impl.serialization
Class EntitySerializationImpl.EntityDeserializer
java.lang.Object
io.jmix.core.impl.serialization.EntitySerializationImpl.EntityDeserializer
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<Entity>
- Enclosing class:
- EntitySerializationImpl
-
Field Summary
-
Constructor Summary
ConstructorDescriptionEntityDeserializer
(MetaClass metaClass, EntitySerializationOption... options) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
clearFields
(Object entity) deserialize
(com.google.gson.JsonElement jsonElement, Type typeOfT, com.google.gson.JsonDeserializationContext context) protected boolean
propertyReadRequired
(String propertyName) protected Collection
readCollection
(com.google.gson.JsonArray jsonArray, MetaProperty metaProperty) protected Object
readEmbeddedEntity
(com.google.gson.JsonObject jsonObject, MetaProperty metaProperty) protected Object
readEntity
(com.google.gson.JsonObject jsonObject, MetaClass metaClass) protected void
readFields
(com.google.gson.JsonObject jsonObject, Object entity) protected Collection
readSimpleCollection
(com.google.gson.JsonArray jsonArray, MetaProperty metaProperty) protected Object
readSimpleProperty
(com.google.gson.JsonElement valueElement, Datatype propertyType)
-
Field Details
-
metaClass
-
ignoreEntityName
protected final boolean ignoreEntityName
-
-
Constructor Details
-
EntityDeserializer
-
-
Method Details
-
deserialize
public Entity deserialize(com.google.gson.JsonElement jsonElement, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException - Specified by:
deserialize
in interfacecom.google.gson.JsonDeserializer<Entity>
- Throws:
com.google.gson.JsonParseException
-
readEntity
-
propertyReadRequired
-
readFields
-
readSimpleProperty
-
readEmbeddedEntity
protected Object readEmbeddedEntity(com.google.gson.JsonObject jsonObject, MetaProperty metaProperty) -
readCollection
-
readSimpleCollection
protected Collection readSimpleCollection(com.google.gson.JsonArray jsonArray, MetaProperty metaProperty) -
clearFields
-