Package io.jmix.reports.converter
Class GsonSerializationSupport
java.lang.Object
io.jmix.reports.converter.GsonSerializationSupport
- Direct Known Subclasses:
ReportGsonSerializationSupport
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected DatatypeRegistry
protected EntityStates
protected GsonSerializationSupport.ExclusionPolicy
protected ExtendedEntities
protected com.google.gson.GsonBuilder
protected Metadata
-
Constructor Summary
ConstructorDescriptionGsonSerializationSupport
(org.springframework.beans.factory.BeanFactory beanFactory) -
Method Summary
Modifier and TypeMethodDescription<T> T
convertToReport
(String json, Class<T> aClass) convertToString
(Object entity) protected boolean
protected Collection
readCollection
(com.google.gson.stream.JsonReader in, Class<?> propertyType) protected void
readFields
(com.google.gson.stream.JsonReader in, MetaClass metaClass, Entity entity) protected Object
readSimpleProperty
(com.google.gson.stream.JsonReader in, Class<?> propertyType) protected void
readUnresolvedProperty
(Entity entity, String propertyName, com.google.gson.stream.JsonReader in) protected void
writeCollection
(com.google.gson.stream.JsonWriter out, Collection value) protected void
writeEntity
(com.google.gson.stream.JsonWriter out, Entity entity) protected void
writeFields
(com.google.gson.stream.JsonWriter out, Entity entity) protected void
writeSimpleProperty
(com.google.gson.stream.JsonWriter out, Entity entity, MetaProperty property)
-
Field Details
-
gsonBuilder
protected com.google.gson.GsonBuilder gsonBuilder -
processedObjects
-
exclusionPolicy
-
metadata
-
extendedEntities
-
entityStates
-
datatypeRegistry
-
-
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
- Throws:
IOException
-
writeFields
- 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
-
convertToString
-
convertToReport
-