Class WrapperSerializer<T>
java.lang.Object
com.fasterxml.jackson.databind.JsonSerializer<T>
org.assertstruct.impl.converter.jackson.WrapperSerializer<T>
- All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable,com.fasterxml.jackson.databind.ser.ContextualSerializer,com.fasterxml.jackson.databind.ser.ResolvableSerializer
public class WrapperSerializer<T>
extends com.fasterxml.jackson.databind.JsonSerializer<T>
implements com.fasterxml.jackson.databind.ser.ContextualSerializer, com.fasterxml.jackson.databind.ser.ResolvableSerializer
-
Nested Class Summary
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonSerializer
com.fasterxml.jackson.databind.JsonSerializer.None -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidacceptJsonFormatVisitor(com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper visitor, com.fasterxml.jackson.databind.JavaType type) com.fasterxml.jackson.databind.JsonSerializer<?> createContextual(com.fasterxml.jackson.databind.SerializerProvider prov, com.fasterxml.jackson.databind.BeanProperty property) com.fasterxml.jackson.databind.JsonSerializer<?> booleanbooleanIterator<com.fasterxml.jackson.databind.ser.PropertyWriter> com.fasterxml.jackson.databind.JsonSerializer<T> replaceDelegatee(com.fasterxml.jackson.databind.JsonSerializer<?> delegatee) voidresolve(com.fasterxml.jackson.databind.SerializerProvider provider) voidserialize(T value, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider serializers) voidserializeWithType(T value, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider serializers, com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer) com.fasterxml.jackson.databind.JsonSerializer<T> unwrappingSerializer(com.fasterxml.jackson.databind.util.NameTransformer unwrapper) booleancom.fasterxml.jackson.databind.JsonSerializer<?> withFilterId(Object filterId) com.fasterxml.jackson.databind.JsonSerializer<?> withIgnoredProperties(Set<String> ignoredProperties) Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer
isEmpty
-
Constructor Details
-
WrapperSerializer
public WrapperSerializer()
-
-
Method Details
-
unwrappingSerializer
-
replaceDelegatee
-
withFilterId
-
withIgnoredProperties
-
serialize
public void serialize(T value, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider serializers) throws IOException - Specified by:
serializein classcom.fasterxml.jackson.databind.JsonSerializer<T>- Throws:
IOException
-
serializeWithType
public void serializeWithType(T value, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider serializers, com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer) throws IOException - Overrides:
serializeWithTypein classcom.fasterxml.jackson.databind.JsonSerializer<T>- Throws:
IOException
-
createContextual
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 - Specified by:
createContextualin interfacecom.fasterxml.jackson.databind.ser.ContextualSerializer- Throws:
com.fasterxml.jackson.databind.JsonMappingException
-
resolve
public void resolve(com.fasterxml.jackson.databind.SerializerProvider provider) throws com.fasterxml.jackson.databind.JsonMappingException - Specified by:
resolvein interfacecom.fasterxml.jackson.databind.ser.ResolvableSerializer- Throws:
com.fasterxml.jackson.databind.JsonMappingException
-
acceptJsonFormatVisitor
public void acceptJsonFormatVisitor(com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper visitor, com.fasterxml.jackson.databind.JavaType type) throws com.fasterxml.jackson.databind.JsonMappingException - Specified by:
acceptJsonFormatVisitorin interfacecom.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable- Overrides:
acceptJsonFormatVisitorin classcom.fasterxml.jackson.databind.JsonSerializer<T>- Throws:
com.fasterxml.jackson.databind.JsonMappingException
-
isUnwrappingSerializer
public boolean isUnwrappingSerializer()- Overrides:
isUnwrappingSerializerin classcom.fasterxml.jackson.databind.JsonSerializer<T>
-
getDelegatee
public com.fasterxml.jackson.databind.JsonSerializer<?> getDelegatee()- Overrides:
getDelegateein classcom.fasterxml.jackson.databind.JsonSerializer<T>
-
handledType
-
isEmpty
-
properties
-
usesObjectId
public boolean usesObjectId()- Overrides:
usesObjectIdin classcom.fasterxml.jackson.databind.JsonSerializer<T>
-