Package io.jmix.reports.converter
Class GsonSerializationSupport
java.lang.Object
io.jmix.reports.converter.GsonSerializationSupport
- Direct Known Subclasses:
ReportGsonSerializationSupport
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DatatypeRegistryprotected EntityStatesprotected GsonSerializationSupport.ExclusionPolicyprotected ExtendedEntitiesprotected com.google.gson.GsonBuilderprotected Metadataprotected MetadataTools -
Constructor Summary
ConstructorsConstructorDescriptionGsonSerializationSupport(org.springframework.beans.factory.BeanFactory beanFactory) -
Method Summary
Modifier 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
-
gsonBuilder
protected com.google.gson.GsonBuilder gsonBuilder -
processedObjects
-
exclusionPolicy
-
metadata
-
metadataTools
-
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
-