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.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 |
|---|---|
com.fasterxml.jackson.databind.JsonSerializer<?> |
createContextual(com.fasterxml.jackson.databind.SerializerProvider prov,
com.fasterxml.jackson.databind.BeanProperty property) |
void |
serialize(com.carrotsearch.hppc.ObjectContainer<?> value,
com.fasterxml.jackson.core.JsonGenerator jgen,
com.fasterxml.jackson.databind.SerializerProvider provider) |
protected void |
serializeContents(com.carrotsearch.hppc.ObjectContainer<?> value,
com.fasterxml.jackson.core.JsonGenerator jgen,
com.fasterxml.jackson.databind.SerializerProvider provider) |
void |
serializeWithType(com.carrotsearch.hppc.ObjectContainer<?> value,
com.fasterxml.jackson.core.JsonGenerator jgen,
com.fasterxml.jackson.databind.SerializerProvider provider,
com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer) |
protected com.fasterxml.jackson.databind.JsonSerializer<?> |
withDelegate(com.fasterxml.jackson.databind.ser.std.ObjectArraySerializer newDelegate) |
getSchema, getSerializeracceptJsonFormatVisitor, createObjectNode, createSchemaNode, createSchemaNode, findConvertingContentSerializer, findPropertyFilter, getSchema, handledType, isDefaultSerializer, wrapAndThrow, wrapAndThrowprotected 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 com.fasterxml.jackson.databind.JsonSerializer<?> withDelegate(com.fasterxml.jackson.databind.ser.std.ObjectArraySerializer newDelegate)
public void serialize(com.carrotsearch.hppc.ObjectContainer<?> value,
com.fasterxml.jackson.core.JsonGenerator jgen,
com.fasterxml.jackson.databind.SerializerProvider provider)
throws IOException,
com.fasterxml.jackson.core.JsonGenerationException
serialize in class ContainerSerializerBase<com.carrotsearch.hppc.ObjectContainer<?>>IOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic void serializeWithType(com.carrotsearch.hppc.ObjectContainer<?> value,
com.fasterxml.jackson.core.JsonGenerator jgen,
com.fasterxml.jackson.databind.SerializerProvider provider,
com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer)
throws IOException,
com.fasterxml.jackson.core.JsonGenerationException
serializeWithType in class ContainerSerializerBase<com.carrotsearch.hppc.ObjectContainer<?>>IOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionprotected void serializeContents(com.carrotsearch.hppc.ObjectContainer<?> value,
com.fasterxml.jackson.core.JsonGenerator jgen,
com.fasterxml.jackson.databind.SerializerProvider provider)
throws IOException,
com.fasterxml.jackson.core.JsonGenerationException
serializeContents in class ContainerSerializerBase<com.carrotsearch.hppc.ObjectContainer<?>>IOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionpublic 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.ContextualSerializercom.fasterxml.jackson.databind.JsonMappingExceptionCopyright © 2014-2015 FasterXML. All Rights Reserved.