org.codehaus.jackson.map.ser
Class ContainerSerializers

java.lang.Object
  extended by org.codehaus.jackson.map.ser.ContainerSerializers

public final class ContainerSerializers
extends Object

Dummy container class to group standard container serializers: serializers that can serialize things like Lists, Maps and such.

TODO: as per [JACKSON-55], should try to add path info for all serializers; is still missing those for some container types.


Nested Class Summary
static class ContainerSerializers.AsArraySerializer<T>
          Base class for serializers that will output contents as JSON arrays.
static class ContainerSerializers.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).
static class ContainerSerializers.EnumSetSerializer
           
static class ContainerSerializers.IndexedListSerializer
          This is an optimized serializer for Lists that can be efficiently traversed by index (as opposed to others, such as LinkedList that can not}.
static class ContainerSerializers.IterableSerializer
           
static class ContainerSerializers.IteratorSerializer
           
 
Method Summary
static ContainerSerializerBase<?> collectionSerializer(JavaType elemType, boolean staticTyping, TypeSerializer vts, BeanProperty property, JsonSerializer<Object> valueSerializer)
           
static JsonSerializer<?> enumSetSerializer(JavaType enumType, BeanProperty property)
           
static ContainerSerializerBase<?> indexedListSerializer(JavaType elemType, boolean staticTyping, TypeSerializer vts, BeanProperty property, JsonSerializer<Object> valueSerializer)
           
static ContainerSerializerBase<?> iterableSerializer(JavaType elemType, boolean staticTyping, TypeSerializer vts, BeanProperty property)
           
static ContainerSerializerBase<?> iteratorSerializer(JavaType elemType, boolean staticTyping, TypeSerializer vts, BeanProperty property)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

indexedListSerializer

public static ContainerSerializerBase<?> indexedListSerializer(JavaType elemType,
                                                               boolean staticTyping,
                                                               TypeSerializer vts,
                                                               BeanProperty property,
                                                               JsonSerializer<Object> valueSerializer)

collectionSerializer

public static ContainerSerializerBase<?> collectionSerializer(JavaType elemType,
                                                              boolean staticTyping,
                                                              TypeSerializer vts,
                                                              BeanProperty property,
                                                              JsonSerializer<Object> valueSerializer)

iteratorSerializer

public static ContainerSerializerBase<?> iteratorSerializer(JavaType elemType,
                                                            boolean staticTyping,
                                                            TypeSerializer vts,
                                                            BeanProperty property)

iterableSerializer

public static ContainerSerializerBase<?> iterableSerializer(JavaType elemType,
                                                            boolean staticTyping,
                                                            TypeSerializer vts,
                                                            BeanProperty property)

enumSetSerializer

public static JsonSerializer<?> enumSetSerializer(JavaType enumType,
                                                  BeanProperty property)