Class AbstractSerializer<T>
java.lang.Object
tools.jackson.databind.ValueSerializer<T>
tools.jackson.databind.ser.std.StdSerializer<T>
io.jmix.pivottableflowui.kit.component.serialization.AbstractSerializer<T>
- All Implemented Interfaces:
tools.jackson.databind.jsonFormatVisitors.JsonFormatVisitable
- Direct Known Subclasses:
EnumIdSerializer,JsFunctionSerializer,PivotTableBooleanSerializer
public abstract class AbstractSerializer<T>
extends tools.jackson.databind.ser.std.StdSerializer<T>
-
Nested Class Summary
Nested classes/interfaces inherited from class tools.jackson.databind.ValueSerializer
tools.jackson.databind.ValueSerializer.None -
Field Summary
Fields inherited from class tools.jackson.databind.ser.std.StdSerializer
_handledType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidserialize(@Nullable T value, tools.jackson.core.JsonGenerator gen, tools.jackson.databind.SerializationContext provider) abstract voidserializeNonNullValue(T value, tools.jackson.core.JsonGenerator gen, tools.jackson.databind.SerializationContext provider) protected voidwriteIfNotNull(String fieldName, Object value, tools.jackson.core.JsonGenerator gen, tools.jackson.databind.SerializationContext provider) protected voidwriteListIfNotEmpty(String fieldName, List<?> value, tools.jackson.core.JsonGenerator gen, tools.jackson.databind.SerializationContext provider) Methods inherited from class tools.jackson.databind.ser.std.StdSerializer
_neitherNull, _nonEmpty, _wrapIOFailure, acceptJsonFormatVisitor, acceptJsonFormatVisitorForBinary, createSchemaNode, createSchemaNode, findAnnotatedContentSerializer, findContextualConvertingSerializer, findFormatFeature, findFormatOverrides, findIncludeOverrides, findPropertyFilter, handledType, isDefaultSerializer, visitArrayFormat, visitArrayFormat, visitFloatFormat, visitIntFormat, visitIntFormat, visitStringFormat, visitStringFormat, wrapAndThrow, wrapAndThrowMethods inherited from class tools.jackson.databind.ValueSerializer
createContextual, getDelegatee, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, resolve, serializeWithType, unwrappingSerializer, usesObjectId, withFilterId, withFormatOverrides, withIgnoredProperties
-
Constructor Details
-
AbstractSerializer
-
-
Method Details
-
serialize
public void serialize(@Nullable T value, tools.jackson.core.JsonGenerator gen, tools.jackson.databind.SerializationContext provider) throws tools.jackson.core.JacksonException - Specified by:
serializein classtools.jackson.databind.ser.std.StdSerializer<T>- Throws:
tools.jackson.core.JacksonException
-
serializeNonNullValue
public abstract void serializeNonNullValue(T value, tools.jackson.core.JsonGenerator gen, tools.jackson.databind.SerializationContext provider) throws tools.jackson.core.JacksonException - Throws:
tools.jackson.core.JacksonException
-
writeIfNotNull
protected void writeIfNotNull(String fieldName, Object value, tools.jackson.core.JsonGenerator gen, tools.jackson.databind.SerializationContext provider) throws tools.jackson.core.JacksonException - Throws:
tools.jackson.core.JacksonException
-
writeListIfNotEmpty
protected void writeListIfNotEmpty(String fieldName, List<?> value, tools.jackson.core.JsonGenerator gen, tools.jackson.databind.SerializationContext provider) throws tools.jackson.core.JacksonException - Throws:
tools.jackson.core.JacksonException
-