Class JsonMapFormatVisitor.Base
- java.lang.Object
-
- com.fasterxml.jackson.databind.jsonFormatVisitors.JsonMapFormatVisitor.Base
-
- All Implemented Interfaces:
JsonFormatVisitorWithSerializerProvider
,JsonMapFormatVisitor
- Enclosing interface:
- JsonMapFormatVisitor
public static class JsonMapFormatVisitor.Base extends java.lang.Object implements JsonMapFormatVisitor
Default "empty" implementation, useful as the base to start on; especially as it is guaranteed to implement all the method of the interface, even if new methods are getting added.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.fasterxml.jackson.databind.jsonFormatVisitors.JsonMapFormatVisitor
JsonMapFormatVisitor.Base
-
-
Constructor Summary
Constructors Constructor Description Base()
Base(SerializerProvider p)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SerializerProvider
getProvider()
void
keyFormat(JsonFormatVisitable handler, JavaType keyType)
Visit method called to indicate type of keys of the Map type being visitedvoid
setProvider(SerializerProvider p)
void
valueFormat(JsonFormatVisitable handler, JavaType valueType)
Visit method called afterJsonMapFormatVisitor.keyFormat(com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable, com.fasterxml.jackson.databind.JavaType)
to allow visiting of the value type
-
-
-
Constructor Detail
-
Base
public Base()
-
Base
public Base(SerializerProvider p)
-
-
Method Detail
-
getProvider
public SerializerProvider getProvider()
- Specified by:
getProvider
in interfaceJsonFormatVisitorWithSerializerProvider
-
setProvider
public void setProvider(SerializerProvider p)
- Specified by:
setProvider
in interfaceJsonFormatVisitorWithSerializerProvider
-
keyFormat
public void keyFormat(JsonFormatVisitable handler, JavaType keyType) throws JsonMappingException
Description copied from interface:JsonMapFormatVisitor
Visit method called to indicate type of keys of the Map type being visited- Specified by:
keyFormat
in interfaceJsonMapFormatVisitor
- Throws:
JsonMappingException
-
valueFormat
public void valueFormat(JsonFormatVisitable handler, JavaType valueType) throws JsonMappingException
Description copied from interface:JsonMapFormatVisitor
Visit method called afterJsonMapFormatVisitor.keyFormat(com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable, com.fasterxml.jackson.databind.JavaType)
to allow visiting of the value type- Specified by:
valueFormat
in interfaceJsonMapFormatVisitor
- Throws:
JsonMappingException
-
-