Module tools.jackson.databind
Class JsonFormatVisitorWrapper.Base
java.lang.Object
tools.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper.Base
- All Implemented Interfaces:
JsonFormatVisitorWithSerializationContext,JsonFormatVisitorWrapper
- Enclosing interface:
- JsonFormatVisitorWrapper
public static class JsonFormatVisitorWrapper.Base
extends Object
implements JsonFormatVisitorWrapper
Empty "no-op" implementation of
JsonFormatVisitorWrapper, suitable for
sub-classing. Does implement setContext(SerializationContext) and
getContext() as expected; other methods simply return null
and do nothing.- Since:
- 2.5
-
Nested Class Summary
Nested classes/interfaces inherited from interface tools.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper
JsonFormatVisitorWrapper.Base -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexpectAnyFormat(JavaType type) expectArrayFormat(JavaType type) expectBooleanFormat(JavaType type) expectIntegerFormat(JavaType type) expectMapFormat(JavaType type) Method called when type is of JavaMaptype, and will be serialized as a JSON Object.expectNullFormat(JavaType type) expectNumberFormat(JavaType type) expectObjectFormat(JavaType type) expectStringFormat(JavaType type) void
-
Field Details
-
_context
-
-
Constructor Details
-
Base
public Base() -
Base
-
-
Method Details
-
getContext
- Specified by:
getContextin interfaceJsonFormatVisitorWithSerializationContext
-
setContext
- Specified by:
setContextin interfaceJsonFormatVisitorWithSerializationContext
-
expectObjectFormat
- Specified by:
expectObjectFormatin interfaceJsonFormatVisitorWrapper- Parameters:
type- Declared type of visited property (or List element) in Java
-
expectArrayFormat
- Specified by:
expectArrayFormatin interfaceJsonFormatVisitorWrapper- Parameters:
type- Declared type of visited property (or List element) in Java
-
expectStringFormat
- Specified by:
expectStringFormatin interfaceJsonFormatVisitorWrapper- Parameters:
type- Declared type of visited property (or List element) in Java
-
expectNumberFormat
- Specified by:
expectNumberFormatin interfaceJsonFormatVisitorWrapper- Parameters:
type- Declared type of visited property (or List element) in Java
-
expectIntegerFormat
- Specified by:
expectIntegerFormatin interfaceJsonFormatVisitorWrapper- Parameters:
type- Declared type of visited property (or List element) in Java
-
expectBooleanFormat
- Specified by:
expectBooleanFormatin interfaceJsonFormatVisitorWrapper- Parameters:
type- Declared type of visited property (or List element) in Java
-
expectNullFormat
- Specified by:
expectNullFormatin interfaceJsonFormatVisitorWrapper- Parameters:
type- Declared type of visited property (or List element) in Java
-
expectAnyFormat
- Specified by:
expectAnyFormatin interfaceJsonFormatVisitorWrapper- Parameters:
type- Declared type of visited property (or List element) in Java
-
expectMapFormat
Description copied from interface:JsonFormatVisitorWrapperMethod called when type is of JavaMaptype, and will be serialized as a JSON Object.- Specified by:
expectMapFormatin interfaceJsonFormatVisitorWrapper
-