Module tools.jackson.databind
Interface JsonObjectFormatVisitor
- All Superinterfaces:
JsonFormatVisitorWithSerializationContext
- All Known Implementing Classes:
JsonObjectFormatVisitor.Base
Visitor called when properties of a type that maps to JSON Object
are being visited: this usually means POJOs, but sometimes other
types use it too (like
EnumMap).-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classDefault "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. -
Method Summary
Modifier and TypeMethodDescriptionvoidoptionalProperty(String name, JsonFormatVisitable handler, JavaType propertyTypeHint) voidoptionalProperty(BeanProperty writer) 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.voidproperty(BeanProperty writer) Callback method called when a POJO property is being traversed.Methods inherited from interface tools.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWithSerializationContext
getContext, setContext
-
Method Details
-
property
Callback method called when a POJO property is being traversed. -
property
Callback method called when a non-POJO property (typically something like an Enum entry ofEnumMaptype) is being traversed. With POJOs,property(BeanProperty)is called instead. -
optionalProperty
-
optionalProperty
-