public static class JsonFormatVisitorWrapper.Base extends Object implements JsonFormatVisitorWrapper
JsonFormatVisitorWrapper
, suitable for
sub-classing. Does implement setProvider(SerializerProvider)
and
getProvider()
as expected; other methods simply return null
and do nothing.JsonFormatVisitorWrapper.Base
Modifier and Type | Field and Description |
---|---|
protected SerializerProvider |
_provider |
Constructor and Description |
---|
JsonFormatVisitorWrapper.Base() |
JsonFormatVisitorWrapper.Base(SerializerProvider p) |
Modifier and Type | Method and Description |
---|---|
JsonAnyFormatVisitor |
expectAnyFormat(JavaType type) |
JsonArrayFormatVisitor |
expectArrayFormat(JavaType type) |
JsonBooleanFormatVisitor |
expectBooleanFormat(JavaType type) |
JsonIntegerFormatVisitor |
expectIntegerFormat(JavaType type) |
JsonMapFormatVisitor |
expectMapFormat(JavaType type)
Method called when type is of Java
Map type, and will
be serialized as a JSON Object. |
JsonNullFormatVisitor |
expectNullFormat(JavaType type) |
JsonNumberFormatVisitor |
expectNumberFormat(JavaType type) |
JsonObjectFormatVisitor |
expectObjectFormat(JavaType type) |
JsonStringFormatVisitor |
expectStringFormat(JavaType type) |
SerializerProvider |
getProvider() |
void |
setProvider(SerializerProvider p) |
protected SerializerProvider _provider
public JsonFormatVisitorWrapper.Base()
public JsonFormatVisitorWrapper.Base(SerializerProvider p)
public SerializerProvider getProvider()
getProvider
in interface JsonFormatVisitorWithSerializerProvider
public void setProvider(SerializerProvider p)
setProvider
in interface JsonFormatVisitorWithSerializerProvider
public JsonObjectFormatVisitor expectObjectFormat(JavaType type) throws JsonMappingException
expectObjectFormat
in interface JsonFormatVisitorWrapper
type
- Declared type of visited property (or List element) in JavaJsonMappingException
public JsonArrayFormatVisitor expectArrayFormat(JavaType type) throws JsonMappingException
expectArrayFormat
in interface JsonFormatVisitorWrapper
type
- Declared type of visited property (or List element) in JavaJsonMappingException
public JsonStringFormatVisitor expectStringFormat(JavaType type) throws JsonMappingException
expectStringFormat
in interface JsonFormatVisitorWrapper
type
- Declared type of visited property (or List element) in JavaJsonMappingException
public JsonNumberFormatVisitor expectNumberFormat(JavaType type) throws JsonMappingException
expectNumberFormat
in interface JsonFormatVisitorWrapper
type
- Declared type of visited property (or List element) in JavaJsonMappingException
public JsonIntegerFormatVisitor expectIntegerFormat(JavaType type) throws JsonMappingException
expectIntegerFormat
in interface JsonFormatVisitorWrapper
type
- Declared type of visited property (or List element) in JavaJsonMappingException
public JsonBooleanFormatVisitor expectBooleanFormat(JavaType type) throws JsonMappingException
expectBooleanFormat
in interface JsonFormatVisitorWrapper
type
- Declared type of visited property (or List element) in JavaJsonMappingException
public JsonNullFormatVisitor expectNullFormat(JavaType type) throws JsonMappingException
expectNullFormat
in interface JsonFormatVisitorWrapper
type
- Declared type of visited property (or List element) in JavaJsonMappingException
public JsonAnyFormatVisitor expectAnyFormat(JavaType type) throws JsonMappingException
expectAnyFormat
in interface JsonFormatVisitorWrapper
type
- Declared type of visited property (or List element) in JavaJsonMappingException
public JsonMapFormatVisitor expectMapFormat(JavaType type) throws JsonMappingException
JsonFormatVisitorWrapper
Map
type, and will
be serialized as a JSON Object.expectMapFormat
in interface JsonFormatVisitorWrapper
JsonMappingException
Copyright © 2008–2018 FasterXML. All rights reserved.