Class JsonObjectFormatVisitor.Base
- java.lang.Object
-
- com.fasterxml.jackson.databind.jsonFormatVisitors.JsonObjectFormatVisitor.Base
-
- All Implemented Interfaces:
JsonFormatVisitorWithSerializerProvider
,JsonObjectFormatVisitor
- Enclosing interface:
- JsonObjectFormatVisitor
public static class JsonObjectFormatVisitor.Base extends java.lang.Object implements JsonObjectFormatVisitor
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.JsonObjectFormatVisitor
JsonObjectFormatVisitor.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
optionalProperty(BeanProperty prop)
void
optionalProperty(java.lang.String name, JsonFormatVisitable handler, JavaType propertyTypeHint)
void
property(BeanProperty prop)
Callback method called when a POJO property is being traversed.void
property(java.lang.String name, JsonFormatVisitable handler, JavaType propertyTypeHint)
Callback method called when a non-POJO property (typically something like an Enum entry ofEnumMap
type) is being traversed.void
setProvider(SerializerProvider p)
-
-
-
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
-
property
public void property(BeanProperty prop) throws JsonMappingException
Description copied from interface:JsonObjectFormatVisitor
Callback method called when a POJO property is being traversed.- Specified by:
property
in interfaceJsonObjectFormatVisitor
- Throws:
JsonMappingException
-
property
public void property(java.lang.String name, JsonFormatVisitable handler, JavaType propertyTypeHint) throws JsonMappingException
Description copied from interface:JsonObjectFormatVisitor
Callback method called when a non-POJO property (typically something like an Enum entry ofEnumMap
type) is being traversed. With POJOs,JsonObjectFormatVisitor.property(BeanProperty)
is called instead.- Specified by:
property
in interfaceJsonObjectFormatVisitor
- Throws:
JsonMappingException
-
optionalProperty
public void optionalProperty(BeanProperty prop) throws JsonMappingException
- Specified by:
optionalProperty
in interfaceJsonObjectFormatVisitor
- Throws:
JsonMappingException
-
optionalProperty
public void optionalProperty(java.lang.String name, JsonFormatVisitable handler, JavaType propertyTypeHint) throws JsonMappingException
- Specified by:
optionalProperty
in interfaceJsonObjectFormatVisitor
- Throws:
JsonMappingException
-
-