|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.jackson.map.JsonSerializer<T>
org.codehaus.jackson.map.ser.std.SerializerBase<T>
org.codehaus.jackson.map.ser.std.ContainerSerializerBase<T>
org.codehaus.jackson.map.ser.std.AsArraySerializerBase<Collection<?>>
org.codehaus.jackson.map.ser.std.CollectionSerializer
public class CollectionSerializer
Fallback serializer for cases where Collection is not known to be
of type for which more specializer serializer exists (such as
index-accessible List).
If so, we will just construct an Iterator
to iterate over elements.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.codehaus.jackson.map.JsonSerializer |
---|
JsonSerializer.None |
Field Summary |
---|
Fields inherited from class org.codehaus.jackson.map.ser.std.AsArraySerializerBase |
---|
_dynamicSerializers, _elementSerializer, _elementType, _property, _staticTyping, _valueTypeSerializer |
Fields inherited from class org.codehaus.jackson.map.ser.std.SerializerBase |
---|
_handledType |
Constructor Summary | |
---|---|
CollectionSerializer(JavaType elemType,
boolean staticTyping,
TypeSerializer vts,
BeanProperty property,
JsonSerializer<Object> valueSerializer)
|
Method Summary | |
---|---|
ContainerSerializerBase<?> |
_withValueTypeSerializer(TypeSerializer vts)
|
void |
serializeContents(Collection<?> value,
JsonGenerator jgen,
SerializerProvider provider)
|
void |
serializeContentsUsing(Collection<?> value,
JsonGenerator jgen,
SerializerProvider provider,
JsonSerializer<Object> ser)
|
Methods inherited from class org.codehaus.jackson.map.ser.std.AsArraySerializerBase |
---|
_findAndAddDynamic, _findAndAddDynamic, getSchema, resolve, serialize, serializeWithType |
Methods inherited from class org.codehaus.jackson.map.ser.std.ContainerSerializerBase |
---|
withValueTypeSerializer |
Methods inherited from class org.codehaus.jackson.map.ser.std.SerializerBase |
---|
createObjectNode, createSchemaNode, createSchemaNode, handledType, isDefaultSerializer, wrapAndThrow, wrapAndThrow, wrapAndThrow, wrapAndThrow |
Methods inherited from class org.codehaus.jackson.map.JsonSerializer |
---|
isUnwrappingSerializer, unwrappingSerializer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CollectionSerializer(JavaType elemType, boolean staticTyping, TypeSerializer vts, BeanProperty property, JsonSerializer<Object> valueSerializer)
Method Detail |
---|
public ContainerSerializerBase<?> _withValueTypeSerializer(TypeSerializer vts)
_withValueTypeSerializer
in class ContainerSerializerBase<Collection<?>>
public void serializeContents(Collection<?> value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonGenerationException
serializeContents
in class AsArraySerializerBase<Collection<?>>
IOException
JsonGenerationException
public void serializeContentsUsing(Collection<?> value, JsonGenerator jgen, SerializerProvider provider, JsonSerializer<Object> ser) throws IOException, JsonGenerationException
IOException
JsonGenerationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |