Package nl.vpro.domain.media.bind
Class BroadcasterListToJson
java.lang.Object
com.fasterxml.jackson.databind.JsonSerializer<Iterable<T>>
nl.vpro.domain.bind.AbstractJsonIterable.Serializer<Broadcaster>
nl.vpro.domain.media.bind.BroadcasterListToJson
- All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable
public class BroadcasterListToJson
extends nl.vpro.domain.bind.AbstractJsonIterable.Serializer<Broadcaster>
Used to let the broadcaster list in the MediaObject json be just an array of strings (see MSE-1267)
- Author:
- Michiel Meeuwissen
-
Nested Class Summary
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonSerializer
com.fasterxml.jackson.databind.JsonSerializer.None
-
Field Summary
Fields inherited from class nl.vpro.domain.bind.AbstractJsonIterable.Serializer
considerJsonInclude
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
serializeValue
(Broadcaster value, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider serializerProvider) Methods inherited from class nl.vpro.domain.bind.AbstractJsonIterable.Serializer
isEmpty, serialize
Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer
acceptJsonFormatVisitor, getDelegatee, handledType, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, serializeWithType, unwrappingSerializer, usesObjectId, withFilterId
-
Constructor Details
-
BroadcasterListToJson
public BroadcasterListToJson()
-
-
Method Details
-
serializeValue
protected void serializeValue(Broadcaster value, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider serializerProvider) throws IOException - Specified by:
serializeValue
in classnl.vpro.domain.bind.AbstractJsonIterable.Serializer<Broadcaster>
- Throws:
IOException
-