Interface JsonFormatVisitorWrapper
-
- All Superinterfaces:
JsonFormatVisitorWithSerializerProvider
- All Known Implementing Classes:
JsonFormatVisitorWrapper.Base
public interface JsonFormatVisitorWrapper extends JsonFormatVisitorWithSerializerProvider
Interface for visitor callbacks, when type in question can be any of legal JSON types.In most cases it will make more sense to extend
JsonFormatVisitorWrapper.Baseinstead of directly implementing this interface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classJsonFormatVisitorWrapper.BaseEmpty "no-op" implementation ofJsonFormatVisitorWrapper, suitable for sub-classing.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JsonAnyFormatVisitorexpectAnyFormat(JavaType type)JsonArrayFormatVisitorexpectArrayFormat(JavaType type)JsonBooleanFormatVisitorexpectBooleanFormat(JavaType type)JsonIntegerFormatVisitorexpectIntegerFormat(JavaType type)JsonMapFormatVisitorexpectMapFormat(JavaType type)Method called when type is of JavaMaptype, and will be serialized as a JSON Object.JsonNullFormatVisitorexpectNullFormat(JavaType type)JsonNumberFormatVisitorexpectNumberFormat(JavaType type)JsonObjectFormatVisitorexpectObjectFormat(JavaType type)JsonStringFormatVisitorexpectStringFormat(JavaType type)-
Methods inherited from interface com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWithSerializerProvider
getProvider, setProvider
-
-
-
-
Method Detail
-
expectObjectFormat
JsonObjectFormatVisitor expectObjectFormat(JavaType type) throws JsonMappingException
- Parameters:
type- Declared type of visited property (or List element) in Java- Throws:
JsonMappingException
-
expectArrayFormat
JsonArrayFormatVisitor expectArrayFormat(JavaType type) throws JsonMappingException
- Parameters:
type- Declared type of visited property (or List element) in Java- Throws:
JsonMappingException
-
expectStringFormat
JsonStringFormatVisitor expectStringFormat(JavaType type) throws JsonMappingException
- Parameters:
type- Declared type of visited property (or List element) in Java- Throws:
JsonMappingException
-
expectNumberFormat
JsonNumberFormatVisitor expectNumberFormat(JavaType type) throws JsonMappingException
- Parameters:
type- Declared type of visited property (or List element) in Java- Throws:
JsonMappingException
-
expectIntegerFormat
JsonIntegerFormatVisitor expectIntegerFormat(JavaType type) throws JsonMappingException
- Parameters:
type- Declared type of visited property (or List element) in Java- Throws:
JsonMappingException
-
expectBooleanFormat
JsonBooleanFormatVisitor expectBooleanFormat(JavaType type) throws JsonMappingException
- Parameters:
type- Declared type of visited property (or List element) in Java- Throws:
JsonMappingException
-
expectNullFormat
JsonNullFormatVisitor expectNullFormat(JavaType type) throws JsonMappingException
- Parameters:
type- Declared type of visited property (or List element) in Java- Throws:
JsonMappingException
-
expectAnyFormat
JsonAnyFormatVisitor expectAnyFormat(JavaType type) throws JsonMappingException
- Parameters:
type- Declared type of visited property (or List element) in Java- Throws:
JsonMappingException
-
expectMapFormat
JsonMapFormatVisitor expectMapFormat(JavaType type) throws JsonMappingException
Method called when type is of JavaMaptype, and will be serialized as a JSON Object.- Throws:
JsonMappingException- Since:
- 2.2
-
-