Class GsonSerializationSupport

java.lang.Object
io.jmix.reports.converter.GsonSerializationSupport
Direct Known Subclasses:
ReportGsonSerializationSupport

public class GsonSerializationSupport extends Object
This class is not thread-safe and should not be accessed concurrently from multiple threads without proper synchronization.
  • Field Details

  • Constructor Details

    • GsonSerializationSupport

      public GsonSerializationSupport(org.springframework.beans.factory.BeanFactory beanFactory)
  • Method Details

    • readFields

      protected void readFields(com.google.gson.stream.JsonReader in, MetaClass metaClass, Entity entity) throws IOException
      Throws:
      IOException
    • readUnresolvedProperty

      protected void readUnresolvedProperty(Entity entity, String propertyName, com.google.gson.stream.JsonReader in) throws IOException
      Throws:
      IOException
    • readSimpleProperty

      @Nullable protected Object readSimpleProperty(com.google.gson.stream.JsonReader in, Class<?> propertyType) throws IOException
      Throws:
      IOException
    • readCollection

      protected Collection readCollection(com.google.gson.stream.JsonReader in, Class<?> propertyType) throws IOException
      Throws:
      IOException
    • writeEntity

      protected void writeEntity(com.google.gson.stream.JsonWriter out, Entity entity) throws IOException
      Throws:
      IOException
    • writeFields

      protected void writeFields(com.google.gson.stream.JsonWriter out, Entity entity) throws IOException
      Throws:
      IOException
    • writeCollection

      protected void writeCollection(com.google.gson.stream.JsonWriter out, Collection value) throws IOException
      Throws:
      IOException
    • writeSimpleProperty

      protected void writeSimpleProperty(com.google.gson.stream.JsonWriter out, Entity entity, MetaProperty property) throws IOException
      Throws:
      IOException
    • exclude

      protected boolean exclude(Class objectClass, String propertyName)
    • convertToString

      public String convertToString(Object entity)
    • convertToReport

      public <T> T convertToReport(String json, Class<T> aClass)
    • resolveMetaClass

      @Nullable protected MetaClass resolveMetaClass(String metaClassName)
    • normalizeDateTimeSeparator

      protected String normalizeDateTimeSeparator(String value)