public interface JsonArrayFormatVisitor extends JsonFormatVisitorWithSerializerProvider
Modifier and Type | Interface and Description |
---|---|
static class |
JsonArrayFormatVisitor.Base
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.
|
Modifier and Type | Method and Description |
---|---|
void |
itemsFormat(JsonFormatTypes format)
Visit method that is called if the content type is a simple
scalar type like
JsonFormatTypes.STRING (but not
for structured types like JsonFormatTypes.OBJECT since
they would be missing type information). |
void |
itemsFormat(JsonFormatVisitable handler,
JavaType elementType)
Visit method called for structured types, as well as possibly
for leaf types (especially if handled by custom serializers).
|
getProvider, setProvider
void itemsFormat(JsonFormatVisitable handler, JavaType elementType) throws JsonMappingException
handler
- Serializer used, to allow for further callbackselementType
- Type of elements in JSON array valueJsonMappingException
void itemsFormat(JsonFormatTypes format) throws JsonMappingException
JsonFormatTypes.STRING
(but not
for structured types like JsonFormatTypes.OBJECT
since
they would be missing type information).JsonMappingException
Copyright © 2012-2013 FasterXML. All Rights Reserved.