Module tools.jackson.databind
Interface JsonArrayFormatVisitor
- All Superinterfaces:
JsonFormatVisitorWithSerializationContext
- All Known Implementing Classes:
JsonArrayFormatVisitor.Base
-
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 TypeMethodDescriptionvoiditemsFormat(JsonFormatTypes format) Visit method that is called if the content type is a simple scalar type likeJsonFormatTypes.STRING(but not for structured types likeJsonFormatTypes.OBJECTsince they would be missing type information).voiditemsFormat(JsonFormatVisitable handler, JavaType elementType) Visit method called for structured types, as well as possibly for leaf types (especially if handled by custom serializers).Methods inherited from interface tools.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWithSerializationContext
getContext, setContext
-
Method Details
-
itemsFormat
Visit method called for structured types, as well as possibly for leaf types (especially if handled by custom serializers).- Parameters:
handler- Serializer used, to allow for further callbackselementType- Type of elements in JSON array value
-
itemsFormat
Visit method that is called if the content type is a simple scalar type likeJsonFormatTypes.STRING(but not for structured types likeJsonFormatTypes.OBJECTsince they would be missing type information).
-