Class EntitySerializationImpl.EntityDeserializer

java.lang.Object
io.jmix.core.impl.serialization.EntitySerializationImpl.EntityDeserializer
All Implemented Interfaces:
com.google.gson.JsonDeserializer<Entity>
Enclosing class:
EntitySerializationImpl

protected class EntitySerializationImpl.EntityDeserializer extends Object implements com.google.gson.JsonDeserializer<Entity>
  • Field Details

    • metaClass

      protected MetaClass metaClass
    • ignoreEntityName

      protected final boolean ignoreEntityName
  • Constructor Details

  • 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 interface com.google.gson.JsonDeserializer<Entity>
      Throws:
      com.google.gson.JsonParseException
    • readEntity

      protected Object readEntity(com.google.gson.JsonObject jsonObject, @Nullable MetaClass metaClass)
    • propertyReadRequired

      protected boolean propertyReadRequired(String propertyName)
    • readFields

      protected void readFields(com.google.gson.JsonObject jsonObject, Object entity)
    • readSimpleProperty

      @Nullable protected Object readSimpleProperty(com.google.gson.JsonElement valueElement, Datatype propertyType)
    • readEmbeddedEntity

      protected Object readEmbeddedEntity(com.google.gson.JsonObject jsonObject, MetaProperty metaProperty)
    • readCollection

      protected Collection readCollection(com.google.gson.JsonArray jsonArray, MetaProperty metaProperty)
    • readSimpleCollection

      protected Collection readSimpleCollection(com.google.gson.JsonArray jsonArray, MetaProperty metaProperty)
    • clearFields

      protected void clearFields(Object entity)