Class JsonObjectFormatVisitor.Base
java.lang.Object
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonObjectFormatVisitor.Base
- All Implemented Interfaces:
JsonFormatVisitorWithSerializerProvider,JsonObjectFormatVisitor
- Enclosing interface:
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidoptionalProperty(BeanProperty prop) voidoptionalProperty(String name, JsonFormatVisitable handler, JavaType propertyTypeHint) voidproperty(BeanProperty prop) Callback method called when a POJO property is being traversed.voidproperty(String name, JsonFormatVisitable handler, JavaType propertyTypeHint) Callback method called when a non-POJO property (typically something like an Enum entry ofEnumMaptype) is being traversed.void
-
Constructor Details
-
Base
public Base() -
Base
-
-
Method Details
-
getProvider
- Specified by:
getProviderin interfaceJsonFormatVisitorWithSerializerProvider
-
setProvider
- Specified by:
setProviderin interfaceJsonFormatVisitorWithSerializerProvider
-
property
Description copied from interface:JsonObjectFormatVisitorCallback method called when a POJO property is being traversed.- Specified by:
propertyin interfaceJsonObjectFormatVisitor- Throws:
JsonMappingException
-
property
public void property(String name, JsonFormatVisitable handler, JavaType propertyTypeHint) throws JsonMappingException Description copied from interface:JsonObjectFormatVisitorCallback method called when a non-POJO property (typically something like an Enum entry ofEnumMaptype) is being traversed. With POJOs,JsonObjectFormatVisitor.property(BeanProperty)is called instead.- Specified by:
propertyin interfaceJsonObjectFormatVisitor- Throws:
JsonMappingException
-
optionalProperty
- Specified by:
optionalPropertyin interfaceJsonObjectFormatVisitor- Throws:
JsonMappingException
-
optionalProperty
public void optionalProperty(String name, JsonFormatVisitable handler, JavaType propertyTypeHint) throws JsonMappingException - Specified by:
optionalPropertyin interfaceJsonObjectFormatVisitor- Throws:
JsonMappingException
-