Class JsonNullableSerializer
- java.lang.Object
-
- com.fasterxml.jackson.databind.JsonSerializer<T>
-
- com.fasterxml.jackson.databind.ser.std.StdSerializer<T>
-
- com.fasterxml.jackson.databind.ser.std.ReferenceTypeSerializer<JsonNullable<?>>
-
- org.openapitools.jackson.nullable.JsonNullableSerializer
-
- All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable,com.fasterxml.jackson.databind.jsonschema.SchemaAware,com.fasterxml.jackson.databind.ser.ContextualSerializer,java.io.Serializable
public class JsonNullableSerializer extends com.fasterxml.jackson.databind.ser.std.ReferenceTypeSerializer<JsonNullable<?>>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJsonNullableSerializer(com.fasterxml.jackson.databind.type.ReferenceType fullType, boolean staticTyping, com.fasterxml.jackson.databind.jsontype.TypeSerializer vts, com.fasterxml.jackson.databind.JsonSerializer<java.lang.Object> ser)protectedJsonNullableSerializer(JsonNullableSerializer base, com.fasterxml.jackson.databind.BeanProperty property, com.fasterxml.jackson.databind.jsontype.TypeSerializer vts, com.fasterxml.jackson.databind.JsonSerializer<?> valueSer, com.fasterxml.jackson.databind.util.NameTransformer unwrapper, java.lang.Object suppressableValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Object_getReferenced(JsonNullable<?> value)protected java.lang.Object_getReferencedIfPresent(JsonNullable<?> value)protected boolean_isValuePresent(JsonNullable<?> value)com.fasterxml.jackson.databind.ser.std.ReferenceTypeSerializer<JsonNullable<?>>withContentInclusion(java.lang.Object suppressableValue, boolean suppressNulls)protected com.fasterxml.jackson.databind.ser.std.ReferenceTypeSerializer<JsonNullable<?>>withResolved(com.fasterxml.jackson.databind.BeanProperty prop, com.fasterxml.jackson.databind.jsontype.TypeSerializer vts, com.fasterxml.jackson.databind.JsonSerializer<?> valueSer, com.fasterxml.jackson.databind.util.NameTransformer unwrapper)-
Methods inherited from class com.fasterxml.jackson.databind.ser.std.ReferenceTypeSerializer
_useStatic, acceptJsonFormatVisitor, createContextual, getReferredType, isEmpty, isUnwrappingSerializer, serialize, serializeWithType, unwrappingSerializer
-
Methods inherited from class com.fasterxml.jackson.databind.ser.std.StdSerializer
_neitherNull, _nonEmpty, createSchemaNode, createSchemaNode, findAnnotatedContentSerializer, findContextualConvertingSerializer, findConvertingContentSerializer, findFormatFeature, findFormatOverrides, findIncludeOverrides, findPropertyFilter, getSchema, getSchema, handledType, isDefaultSerializer, visitArrayFormat, visitArrayFormat, visitFloatFormat, visitIntFormat, visitIntFormat, visitStringFormat, visitStringFormat, wrapAndThrow, wrapAndThrow
-
-
-
-
Constructor Detail
-
JsonNullableSerializer
protected JsonNullableSerializer(com.fasterxml.jackson.databind.type.ReferenceType fullType, boolean staticTyping, com.fasterxml.jackson.databind.jsontype.TypeSerializer vts, com.fasterxml.jackson.databind.JsonSerializer<java.lang.Object> ser)
-
JsonNullableSerializer
protected JsonNullableSerializer(JsonNullableSerializer base, com.fasterxml.jackson.databind.BeanProperty property, com.fasterxml.jackson.databind.jsontype.TypeSerializer vts, com.fasterxml.jackson.databind.JsonSerializer<?> valueSer, com.fasterxml.jackson.databind.util.NameTransformer unwrapper, java.lang.Object suppressableValue)
-
-
Method Detail
-
withResolved
protected com.fasterxml.jackson.databind.ser.std.ReferenceTypeSerializer<JsonNullable<?>> withResolved(com.fasterxml.jackson.databind.BeanProperty prop, com.fasterxml.jackson.databind.jsontype.TypeSerializer vts, com.fasterxml.jackson.databind.JsonSerializer<?> valueSer, com.fasterxml.jackson.databind.util.NameTransformer unwrapper)
- Specified by:
withResolvedin classcom.fasterxml.jackson.databind.ser.std.ReferenceTypeSerializer<JsonNullable<?>>
-
withContentInclusion
public com.fasterxml.jackson.databind.ser.std.ReferenceTypeSerializer<JsonNullable<?>> withContentInclusion(java.lang.Object suppressableValue, boolean suppressNulls)
- Specified by:
withContentInclusionin classcom.fasterxml.jackson.databind.ser.std.ReferenceTypeSerializer<JsonNullable<?>>
-
_isValuePresent
protected boolean _isValuePresent(JsonNullable<?> value)
- Specified by:
_isValuePresentin classcom.fasterxml.jackson.databind.ser.std.ReferenceTypeSerializer<JsonNullable<?>>
-
_getReferenced
protected java.lang.Object _getReferenced(JsonNullable<?> value)
- Specified by:
_getReferencedin classcom.fasterxml.jackson.databind.ser.std.ReferenceTypeSerializer<JsonNullable<?>>
-
_getReferencedIfPresent
protected java.lang.Object _getReferencedIfPresent(JsonNullable<?> value)
- Specified by:
_getReferencedIfPresentin classcom.fasterxml.jackson.databind.ser.std.ReferenceTypeSerializer<JsonNullable<?>>
-
-