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
Modifier and TypeInterfaceDescriptionstatic class
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. -
Method Summary
Modifier and TypeMethodDescriptionvoid
optionalProperty
(BeanProperty writer) void
optionalProperty
(String name, JsonFormatVisitable handler, JavaType propertyTypeHint) void
property
(BeanProperty writer) Callback method called when a POJO property is being traversed.void
property
(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.Methods inherited from interface edu.internet2.middleware.grouperClientExt.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 ofEnumMap
type) 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
-