Interface JsonObjectFormatVisitor
- All Superinterfaces:
JsonFormatVisitorWithSerializerProvider
- 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(BeanProperty writer) voidoptionalProperty(String name, JsonFormatVisitable handler, JavaType propertyTypeHint) voidproperty(BeanProperty writer) 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.Methods inherited from interface com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWithSerializerProvider
getProvider, setProvider
-
Method Details
-
property
Callback method called when a POJO property is being traversed.- Throws:
JsonMappingException
-
property
void property(String name, JsonFormatVisitable handler, JavaType propertyTypeHint) throws JsonMappingException 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.- Throws:
JsonMappingException
-
optionalProperty
- Throws:
JsonMappingException
-
optionalProperty
void optionalProperty(String name, JsonFormatVisitable handler, JavaType propertyTypeHint) throws JsonMappingException - Throws:
JsonMappingException
-