public class ObjectContainerSerializer extends ContainerSerializerBase<com.carrotsearch.hppc.ObjectContainer<?>> implements com.fasterxml.jackson.databind.ser.ContextualSerializer
Modifier and Type | Field and Description |
---|---|
protected com.fasterxml.jackson.databind.JavaType |
_contentType |
protected com.fasterxml.jackson.databind.ser.std.ObjectArraySerializer |
_delegate
We will basically just delegate serialization to the standard
Object[] serializer; as we can not sub-class it.
|
_schemeElementType
Modifier | Constructor and Description |
---|---|
|
ObjectContainerSerializer(com.fasterxml.jackson.databind.type.CollectionLikeType containerType,
com.fasterxml.jackson.databind.ser.std.ObjectArraySerializer delegate) |
protected |
ObjectContainerSerializer(ObjectContainerSerializer base,
com.fasterxml.jackson.databind.ser.std.ObjectArraySerializer delegate) |
Modifier and Type | Method and Description |
---|---|
protected com.fasterxml.jackson.databind.ser.ContainerSerializer<?> |
_withValueTypeSerializer(com.fasterxml.jackson.databind.jsontype.TypeSerializer vts) |
void |
acceptJsonFormatVisitor(com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper visitor,
com.fasterxml.jackson.databind.JavaType typeHint) |
com.fasterxml.jackson.databind.JsonSerializer<?> |
createContextual(com.fasterxml.jackson.databind.SerializerProvider prov,
com.fasterxml.jackson.databind.BeanProperty property) |
com.fasterxml.jackson.databind.JsonSerializer<?> |
getContentSerializer() |
com.fasterxml.jackson.databind.JavaType |
getContentType() |
boolean |
hasSingleElement(com.carrotsearch.hppc.ObjectContainer<?> value) |
boolean |
isEmpty(com.fasterxml.jackson.databind.SerializerProvider provider,
com.carrotsearch.hppc.ObjectContainer<?> value) |
void |
serialize(com.carrotsearch.hppc.ObjectContainer<?> value,
com.fasterxml.jackson.core.JsonGenerator gen,
com.fasterxml.jackson.databind.SerializerProvider provider) |
protected void |
serializeContents(com.carrotsearch.hppc.ObjectContainer<?> value,
com.fasterxml.jackson.core.JsonGenerator gen,
com.fasterxml.jackson.databind.SerializerProvider provider) |
void |
serializeWithType(com.carrotsearch.hppc.ObjectContainer<?> value,
com.fasterxml.jackson.core.JsonGenerator gen,
com.fasterxml.jackson.databind.SerializerProvider provider,
com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer) |
protected ObjectContainerSerializer |
withDelegate(com.fasterxml.jackson.databind.ser.std.ObjectArraySerializer newDelegate) |
getSchema, getSerializer
hasContentTypeAnnotation, withValueTypeSerializer
_neitherNull, _nonEmpty, createSchemaNode, createSchemaNode, findAnnotatedContentSerializer, findContextualConvertingSerializer, findConvertingContentSerializer, findFormatFeature, findFormatOverrides, findIncludeOverrides, findPropertyFilter, getSchema, handledType, isDefaultSerializer, visitArrayFormat, visitArrayFormat, visitFloatFormat, visitIntFormat, visitIntFormat, visitStringFormat, visitStringFormat, wrapAndThrow, wrapAndThrow
protected final com.fasterxml.jackson.databind.JavaType _contentType
protected final com.fasterxml.jackson.databind.ser.std.ObjectArraySerializer _delegate
public ObjectContainerSerializer(com.fasterxml.jackson.databind.type.CollectionLikeType containerType, com.fasterxml.jackson.databind.ser.std.ObjectArraySerializer delegate)
protected ObjectContainerSerializer(ObjectContainerSerializer base, com.fasterxml.jackson.databind.ser.std.ObjectArraySerializer delegate)
protected ObjectContainerSerializer withDelegate(com.fasterxml.jackson.databind.ser.std.ObjectArraySerializer newDelegate)
protected com.fasterxml.jackson.databind.ser.ContainerSerializer<?> _withValueTypeSerializer(com.fasterxml.jackson.databind.jsontype.TypeSerializer vts)
_withValueTypeSerializer
in class ContainerSerializerBase<com.carrotsearch.hppc.ObjectContainer<?>>
public void acceptJsonFormatVisitor(com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper visitor, com.fasterxml.jackson.databind.JavaType typeHint) throws com.fasterxml.jackson.databind.JsonMappingException
acceptJsonFormatVisitor
in interface com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable
acceptJsonFormatVisitor
in class ContainerSerializerBase<com.carrotsearch.hppc.ObjectContainer<?>>
com.fasterxml.jackson.databind.JsonMappingException
public com.fasterxml.jackson.databind.JsonSerializer<?> getContentSerializer()
getContentSerializer
in class ContainerSerializerBase<com.carrotsearch.hppc.ObjectContainer<?>>
public boolean hasSingleElement(com.carrotsearch.hppc.ObjectContainer<?> value)
hasSingleElement
in class com.fasterxml.jackson.databind.ser.ContainerSerializer<com.carrotsearch.hppc.ObjectContainer<?>>
public boolean isEmpty(com.fasterxml.jackson.databind.SerializerProvider provider, com.carrotsearch.hppc.ObjectContainer<?> value)
isEmpty
in class ContainerSerializerBase<com.carrotsearch.hppc.ObjectContainer<?>>
public com.fasterxml.jackson.databind.JavaType getContentType()
getContentType
in class ContainerSerializerBase<com.carrotsearch.hppc.ObjectContainer<?>>
public com.fasterxml.jackson.databind.JsonSerializer<?> createContextual(com.fasterxml.jackson.databind.SerializerProvider prov, com.fasterxml.jackson.databind.BeanProperty property) throws com.fasterxml.jackson.databind.JsonMappingException
createContextual
in interface com.fasterxml.jackson.databind.ser.ContextualSerializer
com.fasterxml.jackson.databind.JsonMappingException
public void serialize(com.carrotsearch.hppc.ObjectContainer<?> value, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider provider) throws IOException
serialize
in class ContainerSerializerBase<com.carrotsearch.hppc.ObjectContainer<?>>
IOException
public void serializeWithType(com.carrotsearch.hppc.ObjectContainer<?> value, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider provider, com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer) throws IOException
serializeWithType
in class ContainerSerializerBase<com.carrotsearch.hppc.ObjectContainer<?>>
IOException
protected void serializeContents(com.carrotsearch.hppc.ObjectContainer<?> value, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider provider) throws IOException
serializeContents
in class ContainerSerializerBase<com.carrotsearch.hppc.ObjectContainer<?>>
IOException
Copyright © 2024 FasterXML. All rights reserved.