Class AsArraySerializerBase<T>

    • Field Detail

      • _elementType

        protected final JavaType _elementType
      • _property

        protected final BeanProperty _property
        Collection-valued property being serialized with this instance
      • _staticTyping

        protected final boolean _staticTyping
      • _unwrapSingle

        protected final java.lang.Boolean _unwrapSingle
        Setting for specific local override for "unwrap single element arrays": true for enable unwrapping, false for preventing it, `null` for using global configuration.
        Since:
        2.6
      • _valueTypeSerializer

        protected final TypeSerializer _valueTypeSerializer
        Type serializer used for values, if any.
      • _elementSerializer

        protected final JsonSerializer<java.lang.Object> _elementSerializer
        Value serializer to use, if it can be statically determined
      • _dynamicSerializers

        protected PropertySerializerMap _dynamicSerializers
        If element type cannot be statically determined, mapping from runtime type to serializer is handled using this object
    • Constructor Detail

      • AsArraySerializerBase

        protected AsArraySerializerBase​(java.lang.Class<?> cls,
                                        JavaType et,
                                        boolean staticTyping,
                                        TypeSerializer vts,
                                        JsonSerializer<java.lang.Object> elementSerializer)
        Non-contextual, "blueprint" constructor typically called when the first instance is created, without knowledge of property it was used via.
        Since:
        2.6
      • AsArraySerializerBase

        @Deprecated
        protected AsArraySerializerBase​(java.lang.Class<?> cls,
                                        JavaType et,
                                        boolean staticTyping,
                                        TypeSerializer vts,
                                        BeanProperty property,
                                        JsonSerializer<java.lang.Object> elementSerializer)
        Deprecated.
        Since 2.6 Use variants that either take 'src', or do NOT pass BeanProperty
      • AsArraySerializerBase

        protected AsArraySerializerBase​(java.lang.Class<?> cls,
                                        JavaType elementType,
                                        boolean staticTyping,
                                        TypeSerializer vts,
                                        BeanProperty property,
                                        JsonSerializer<?> elementSerializer,
                                        java.lang.Boolean unwrapSingle)
        General purpose constructor. Use contextual constructors, if possible.
        Since:
        2.12