protected class EntitySerializationImpl.EntitySerializer extends java.lang.Object implements com.google.gson.JsonSerializer<Entity>
Modifier and Type | Field and Description |
---|---|
protected boolean |
compactRepeatedEntities |
protected boolean |
doNotSerializeDeniedProperties |
protected boolean |
doNotSerializeReadOnlyProperties |
protected FetchPlan |
fetchPlan |
protected boolean |
serializeInstanceName |
protected boolean |
serializeSecretFields |
Constructor and Description |
---|
EntitySerializer(FetchPlan fetchPlan,
EntitySerializationOption... options) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
propertyWritingAllowed(MetaProperty metaProperty,
Entity entity,
ExportImportEntityContext exportImportContext) |
com.google.gson.JsonElement |
serialize(Entity entity,
java.lang.reflect.Type typeOfSrc,
com.google.gson.JsonSerializationContext context) |
protected com.google.gson.JsonArray |
serializeCollection(java.util.Collection value,
FetchPlan fetchPlan,
java.util.Set<Entity> cyclicReferences) |
protected com.google.gson.JsonObject |
serializeEntity(Entity entity,
FetchPlan fetchPlan,
java.util.Set<Entity> cyclicReferences) |
protected com.google.gson.JsonArray |
serializeSimpleCollection(java.util.Collection fieldValue,
MetaProperty property) |
protected void |
writeFields(Entity entity,
com.google.gson.JsonObject jsonObject,
FetchPlan fetchPlan,
java.util.Set<Entity> cyclicReferences) |
protected void |
writeIdField(Entity entity,
com.google.gson.JsonObject jsonObject) |
protected void |
writeSimpleProperty(com.google.gson.JsonObject jsonObject,
@NotNull java.lang.Object fieldValue,
MetaProperty property) |
protected boolean compactRepeatedEntities
protected boolean serializeInstanceName
protected boolean doNotSerializeReadOnlyProperties
protected boolean doNotSerializeDeniedProperties
protected boolean serializeSecretFields
protected FetchPlan fetchPlan
public EntitySerializer(@Nullable FetchPlan fetchPlan, EntitySerializationOption... options)
public com.google.gson.JsonElement serialize(Entity entity, java.lang.reflect.Type typeOfSrc, com.google.gson.JsonSerializationContext context)
serialize
in interface com.google.gson.JsonSerializer<Entity>
protected com.google.gson.JsonObject serializeEntity(Entity entity, @Nullable FetchPlan fetchPlan, java.util.Set<Entity> cyclicReferences)
protected void writeIdField(Entity entity, com.google.gson.JsonObject jsonObject)
protected boolean propertyWritingAllowed(MetaProperty metaProperty, Entity entity, ExportImportEntityContext exportImportContext)
protected void writeFields(Entity entity, com.google.gson.JsonObject jsonObject, @Nullable FetchPlan fetchPlan, java.util.Set<Entity> cyclicReferences)
protected void writeSimpleProperty(com.google.gson.JsonObject jsonObject, @NotNull @NotNull java.lang.Object fieldValue, MetaProperty property)
protected com.google.gson.JsonArray serializeCollection(java.util.Collection value, @Nullable FetchPlan fetchPlan, java.util.Set<Entity> cyclicReferences)
protected com.google.gson.JsonArray serializeSimpleCollection(java.util.Collection fieldValue, MetaProperty property)