public static class JsonArrayFormatVisitor.Base extends Object implements JsonArrayFormatVisitor
JsonArrayFormatVisitor.Base
Modifier and Type | Field and Description |
---|---|
protected SerializerProvider |
_provider |
Constructor and Description |
---|
Base() |
Base(SerializerProvider p) |
Modifier and Type | Method and Description |
---|---|
SerializerProvider |
getProvider() |
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).
|
void |
setProvider(SerializerProvider p) |
protected SerializerProvider _provider
public Base()
public Base(SerializerProvider p)
public SerializerProvider getProvider()
getProvider
in interface JsonFormatVisitorWithSerializerProvider
public void setProvider(SerializerProvider p)
setProvider
in interface JsonFormatVisitorWithSerializerProvider
public void itemsFormat(JsonFormatVisitable handler, JavaType elementType) throws JsonMappingException
JsonArrayFormatVisitor
itemsFormat
in interface JsonArrayFormatVisitor
handler
- Serializer used, to allow for further callbackselementType
- Type of elements in JSON array valueJsonMappingException
public void itemsFormat(JsonFormatTypes format) throws JsonMappingException
JsonArrayFormatVisitor
JsonFormatTypes.STRING
(but not
for structured types like JsonFormatTypes.OBJECT
since
they would be missing type information).itemsFormat
in interface JsonArrayFormatVisitor
JsonMappingException
Copyright © 2019 JBoss by Red Hat. All rights reserved.