blob: 882d40a91704608931b89f140fe190531d2a3fa3 [file] [log] [blame]
package com.fasterxml.jackson.databind.jsonFormatVisitors;
import com.fasterxml.jackson.databind.JavaType;
import com.fasterxml.jackson.databind.JsonMappingException;
/**
* Interface for visitor callbacks, when type in question can be any of
* legal JSON types.
*/
public interface JsonFormatVisitorWrapper extends JsonFormatVisitorWithSerializerProvider
{
public JsonObjectFormatVisitor expectObjectFormat(JavaType convertedType) throws JsonMappingException;
public JsonArrayFormatVisitor expectArrayFormat(JavaType convertedType) throws JsonMappingException;
public JsonStringFormatVisitor expectStringFormat(JavaType convertedType) throws JsonMappingException;
public JsonNumberFormatVisitor expectNumberFormat(JavaType convertedType) throws JsonMappingException;
public JsonIntegerFormatVisitor expectIntegerFormat(JavaType convertedType) throws JsonMappingException;
public JsonBooleanFormatVisitor expectBooleanFormat(JavaType convertedType) throws JsonMappingException;
public JsonNullFormatVisitor expectNullFormat(JavaType convertedType) throws JsonMappingException;
public JsonAnyFormatVisitor expectAnyFormat(JavaType convertedType) throws JsonMappingException;
/**
* Method called when type is of Java {@link java.util.Map} type, and will
* be serialized as a JSON Object.
*
* @since 2.2
*/
public JsonMapFormatVisitor expectMapFormat(JavaType type) throws JsonMappingException;
}