Package io.jmix.reports.converter
Class GsonSerializationSupport
java.lang.Object
io.jmix.reports.converter.GsonSerializationSupport
- Direct Known Subclasses:
- ReportGsonSerializationSupport
This class is not thread-safe and should not be accessed concurrently from multiple threads without proper
 synchronization.
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected DatatypeRegistryprotected EntityStatesprotected GsonSerializationSupport.ExclusionPolicyprotected ExtendedEntitiesprotected com.google.gson.GsonBuilderprotected Metadataprotected MetadataTools
- 
Constructor SummaryConstructorsConstructorDescriptionGsonSerializationSupport(org.springframework.beans.factory.BeanFactory beanFactory) 
- 
Method SummaryModifier and TypeMethodDescription<T> TconvertToReport(String json, Class<T> aClass) convertToString(Object entity) protected booleanprotected CollectionreadCollection(com.google.gson.stream.JsonReader in, Class<?> propertyType) protected voidreadFields(com.google.gson.stream.JsonReader in, MetaClass metaClass, Entity entity) protected ObjectreadSimpleProperty(com.google.gson.stream.JsonReader in, Class<?> propertyType) protected voidreadUnresolvedProperty(Entity entity, String propertyName, com.google.gson.stream.JsonReader in) protected voidwriteCollection(com.google.gson.stream.JsonWriter out, Collection value) protected voidwriteEntity(com.google.gson.stream.JsonWriter out, Entity entity) protected voidwriteFields(com.google.gson.stream.JsonWriter out, Entity entity) protected voidwriteSimpleProperty(com.google.gson.stream.JsonWriter out, Entity entity, MetaProperty property) 
- 
Field Details- 
gsonBuilderprotected com.google.gson.GsonBuilder gsonBuilder
- 
processedObjects
- 
exclusionPolicy
- 
metadata
- 
metadataTools
- 
extendedEntities
- 
entityStates
- 
datatypeRegistry
 
- 
- 
Constructor Details- 
GsonSerializationSupportpublic GsonSerializationSupport(org.springframework.beans.factory.BeanFactory beanFactory) 
 
- 
- 
Method Details- 
readFieldsprotected void readFields(com.google.gson.stream.JsonReader in, MetaClass metaClass, Entity entity) throws IOException - Throws:
- IOException
 
- 
readUnresolvedPropertyprotected 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
 
- 
readCollectionprotected Collection readCollection(com.google.gson.stream.JsonReader in, Class<?> propertyType) throws IOException - Throws:
- IOException
 
- 
writeEntity- Throws:
- IOException
 
- 
writeFields- Throws:
- IOException
 
- 
writeCollectionprotected void writeCollection(com.google.gson.stream.JsonWriter out, Collection value) throws IOException - Throws:
- IOException
 
- 
writeSimplePropertyprotected void writeSimpleProperty(com.google.gson.stream.JsonWriter out, Entity entity, MetaProperty property) throws IOException - Throws:
- IOException
 
- 
exclude
- 
convertToString
- 
convertToReport
 
-