public static class JsonFormatVisitorWrapper.Base extends java.lang.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
Constructor and Description |
---|
Base() |
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) |
public Base()
public 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 © 2010 - 2020 Adobe. All Rights Reserved