1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2<!-- NewPage -->
3<html lang="en">
4<head>
5<!-- Generated by javadoc (version 1.7.0_79) on Wed Jul 20 08:39:13 PDT 2016 -->
6<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
7<title>ContainerSerializer (jackson-databind 2.8.0 API)</title>
8<meta name="date" content="2016-07-20">
9<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
10</head>
11<body>
12<script type="text/javascript"><!--
13    if (location.href.indexOf('is-external=true') == -1) {
14        parent.document.title="ContainerSerializer (jackson-databind 2.8.0 API)";
15    }
16//-->
17</script>
18<noscript>
19<div>JavaScript is disabled on your browser.</div>
20</noscript>
21<!-- ========= START OF TOP NAVBAR ======= -->
22<div class="topNav"><a name="navbar_top">
23<!--   -->
24</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
25<!--   -->
26</a>
27<ul class="navList" title="Navigation">
28<li><a href="../../../../../overview-summary.html">Overview</a></li>
29<li><a href="package-summary.html">Package</a></li>
30<li class="navBarCell1Rev">Class</li>
31<li><a href="class-use/ContainerSerializer.html">Use</a></li>
32<li><a href="package-tree.html">Tree</a></li>
33<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
34<li><a href="../../../../../index-all.html">Index</a></li>
35<li><a href="../../../../../help-doc.html">Help</a></li>
36</ul>
37</div>
38<div class="subNav">
39<ul class="navList">
40<li><a href="../../../../../com/fasterxml/jackson/databind/ser/BeanSerializerModifier.html" title="class in com.fasterxml.jackson.databind.ser"><span class="strong">Prev Class</span></a></li>
41<li><a href="../../../../../com/fasterxml/jackson/databind/ser/ContextualSerializer.html" title="interface in com.fasterxml.jackson.databind.ser"><span class="strong">Next Class</span></a></li>
42</ul>
43<ul class="navList">
44<li><a href="../../../../../index.html?com/fasterxml/jackson/databind/ser/ContainerSerializer.html" target="_top">Frames</a></li>
45<li><a href="ContainerSerializer.html" target="_top">No Frames</a></li>
46</ul>
47<ul class="navList" id="allclasses_navbar_top">
48<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
49</ul>
50<div>
51<script type="text/javascript"><!--
52  allClassesLink = document.getElementById("allclasses_navbar_top");
53  if(window==top) {
54    allClassesLink.style.display = "block";
55  }
56  else {
57    allClassesLink.style.display = "none";
58  }
59  //-->
60</script>
61</div>
62<div>
63<ul class="subNavList">
64<li>Summary:&nbsp;</li>
65<li><a href="#nested_classes_inherited_from_class_com.fasterxml.jackson.databind.JsonSerializer">Nested</a>&nbsp;|&nbsp;</li>
66<li><a href="#fields_inherited_from_class_com.fasterxml.jackson.databind.ser.std.StdSerializer">Field</a>&nbsp;|&nbsp;</li>
67<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
68<li><a href="#method_summary">Method</a></li>
69</ul>
70<ul class="subNavList">
71<li>Detail:&nbsp;</li>
72<li>Field&nbsp;|&nbsp;</li>
73<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
74<li><a href="#method_detail">Method</a></li>
75</ul>
76</div>
77<a name="skip-navbar_top">
78<!--   -->
79</a></div>
80<!-- ========= END OF TOP NAVBAR ========= -->
81<!-- ======== START OF CLASS DATA ======== -->
82<div class="header">
83<div class="subTitle">com.fasterxml.jackson.databind.ser</div>
84<h2 title="Class ContainerSerializer" class="title">Class ContainerSerializer&lt;T&gt;</h2>
85</div>
86<div class="contentContainer">
87<ul class="inheritance">
88<li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
89<li>
90<ul class="inheritance">
91<li><a href="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind">com.fasterxml.jackson.databind.JsonSerializer</a>&lt;T&gt;</li>
92<li>
93<ul class="inheritance">
94<li><a href="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html" title="class in com.fasterxml.jackson.databind.ser.std">com.fasterxml.jackson.databind.ser.std.StdSerializer</a>&lt;T&gt;</li>
95<li>
96<ul class="inheritance">
97<li>com.fasterxml.jackson.databind.ser.ContainerSerializer&lt;T&gt;</li>
98</ul>
99</li>
100</ul>
101</li>
102</ul>
103</li>
104</ul>
105<div class="description">
106<ul class="blockList">
107<li class="blockList">
108<dl>
109<dt>All Implemented Interfaces:</dt>
110<dd><a href="../../../../../com/fasterxml/jackson/databind/jsonFormatVisitors/JsonFormatVisitable.html" title="interface in com.fasterxml.jackson.databind.jsonFormatVisitors">JsonFormatVisitable</a>, <a href="../../../../../com/fasterxml/jackson/databind/jsonschema/SchemaAware.html" title="interface in com.fasterxml.jackson.databind.jsonschema">SchemaAware</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a></dd>
111</dl>
112<dl>
113<dt>Direct Known Subclasses:</dt>
114<dd><a href="../../../../../com/fasterxml/jackson/databind/ser/std/ArraySerializerBase.html" title="class in com.fasterxml.jackson.databind.ser.std">ArraySerializerBase</a>, <a href="../../../../../com/fasterxml/jackson/databind/ser/std/AsArraySerializerBase.html" title="class in com.fasterxml.jackson.databind.ser.std">AsArraySerializerBase</a>, <a href="../../../../../com/fasterxml/jackson/databind/ser/impl/MapEntrySerializer.html" title="class in com.fasterxml.jackson.databind.ser.impl">MapEntrySerializer</a>, <a href="../../../../../com/fasterxml/jackson/databind/ser/std/MapSerializer.html" title="class in com.fasterxml.jackson.databind.ser.std">MapSerializer</a></dd>
115</dl>
116<hr>
117<br>
118<pre>public abstract class <span class="strong">ContainerSerializer&lt;T&gt;</span>
119extends <a href="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html" title="class in com.fasterxml.jackson.databind.ser.std">StdSerializer</a>&lt;T&gt;</pre>
120<div class="block">Intermediate base class for serializers used for serializing
121 types that contain element(s) of other types, such as arrays,
122 <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util"><code>Collection</code></a>s (<code>Lists</code>, <code>Sets</code>
123 etc) and <a href="http://docs.oracle.com/javase/7/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util"><code>Map</code></a>s and iterable things
124 (<a href="http://docs.oracle.com/javase/7/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util"><code>Iterator</code></a>s).</div>
125<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../serialized-form.html#com.fasterxml.jackson.databind.ser.ContainerSerializer">Serialized Form</a></dd></dl>
126</li>
127</ul>
128</div>
129<div class="summary">
130<ul class="blockList">
131<li class="blockList">
132<!-- ======== NESTED CLASS SUMMARY ======== -->
133<ul class="blockList">
134<li class="blockList"><a name="nested_class_summary">
135<!--   -->
136</a>
137<h3>Nested Class Summary</h3>
138<ul class="blockList">
139<li class="blockList"><a name="nested_classes_inherited_from_class_com.fasterxml.jackson.databind.JsonSerializer">
140<!--   -->
141</a>
142<h3>Nested classes/interfaces inherited from class&nbsp;com.fasterxml.jackson.databind.<a href="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind">JsonSerializer</a></h3>
143<code><a href="../../../../../com/fasterxml/jackson/databind/JsonSerializer.None.html" title="class in com.fasterxml.jackson.databind">JsonSerializer.None</a></code></li>
144</ul>
145</li>
146</ul>
147<!-- =========== FIELD SUMMARY =========== -->
148<ul class="blockList">
149<li class="blockList"><a name="field_summary">
150<!--   -->
151</a>
152<h3>Field Summary</h3>
153<ul class="blockList">
154<li class="blockList"><a name="fields_inherited_from_class_com.fasterxml.jackson.databind.ser.std.StdSerializer">
155<!--   -->
156</a>
157<h3>Fields inherited from class&nbsp;com.fasterxml.jackson.databind.ser.std.<a href="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html" title="class in com.fasterxml.jackson.databind.ser.std">StdSerializer</a></h3>
158<code><a href="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html#_handledType">_handledType</a></code></li>
159</ul>
160</li>
161</ul>
162<!-- ======== CONSTRUCTOR SUMMARY ======== -->
163<ul class="blockList">
164<li class="blockList"><a name="constructor_summary">
165<!--   -->
166</a>
167<h3>Constructor Summary</h3>
168<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
169<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
170<tr>
171<th class="colFirst" scope="col">Modifier</th>
172<th class="colLast" scope="col">Constructor and Description</th>
173</tr>
174<tr class="altColor">
175<td class="colFirst"><code>protected </code></td>
176<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html#ContainerSerializer(java.lang.Class,%20boolean)">ContainerSerializer</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;?&gt;&nbsp;t,
177                   boolean&nbsp;dummy)</code>
178<div class="block">Alternate constructor that is (alas!) needed to work
179 around kinks of generic type handling</div>
180</td>
181</tr>
182<tr class="rowColor">
183<td class="colFirst"><code>protected </code></td>
184<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html#ContainerSerializer(java.lang.Class)">ContainerSerializer</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;<a href="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html" title="type parameter in ContainerSerializer">T</a>&gt;&nbsp;t)</code>&nbsp;</td>
185</tr>
186<tr class="altColor">
187<td class="colFirst"><code>protected </code></td>
188<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html#ContainerSerializer(com.fasterxml.jackson.databind.ser.ContainerSerializer)">ContainerSerializer</a></strong>(<a href="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html" title="class in com.fasterxml.jackson.databind.ser">ContainerSerializer</a>&lt;?&gt;&nbsp;src)</code>&nbsp;</td>
189</tr>
190<tr class="rowColor">
191<td class="colFirst"><code>protected </code></td>
192<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html#ContainerSerializer(com.fasterxml.jackson.databind.JavaType)">ContainerSerializer</a></strong>(<a href="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a>&nbsp;fullType)</code>&nbsp;</td>
193</tr>
194</table>
195</li>
196</ul>
197<!-- ========== METHOD SUMMARY =========== -->
198<ul class="blockList">
199<li class="blockList"><a name="method_summary">
200<!--   -->
201</a>
202<h3>Method Summary</h3>
203<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
204<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
205<tr>
206<th class="colFirst" scope="col">Modifier and Type</th>
207<th class="colLast" scope="col">Method and Description</th>
208</tr>
209<tr class="altColor">
210<td class="colFirst"><code>protected abstract <a href="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html" title="class in com.fasterxml.jackson.databind.ser">ContainerSerializer</a>&lt;?&gt;</code></td>
211<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html#_withValueTypeSerializer(com.fasterxml.jackson.databind.jsontype.TypeSerializer)">_withValueTypeSerializer</a></strong>(<a href="../../../../../com/fasterxml/jackson/databind/jsontype/TypeSerializer.html" title="class in com.fasterxml.jackson.databind.jsontype">TypeSerializer</a>&nbsp;vts)</code>
212<div class="block">Method that needs to be implemented to allow construction of a new
213 serializer object with given <a href="../../../../../com/fasterxml/jackson/databind/jsontype/TypeSerializer.html" title="class in com.fasterxml.jackson.databind.jsontype"><code>TypeSerializer</code></a>, used when
214 addition type information is to be embedded.</div>
215</td>
216</tr>
217<tr class="rowColor">
218<td class="colFirst"><code>abstract <a href="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind">JsonSerializer</a>&lt;?&gt;</code></td>
219<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html#getContentSerializer()">getContentSerializer</a></strong>()</code>
220<div class="block">Accessor for serializer used for serializing contents
221 (List and array elements, Map values etc) of the
222 container for which this serializer is used, if it is
223 known statically.</div>
224</td>
225</tr>
226<tr class="altColor">
227<td class="colFirst"><code>abstract <a href="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a></code></td>
228<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html#getContentType()">getContentType</a></strong>()</code>
229<div class="block">Accessor for finding declared (static) element type for
230 type this serializer is used for.</div>
231</td>
232</tr>
233<tr class="rowColor">
234<td class="colFirst"><code>protected boolean</code></td>
235<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html#hasContentTypeAnnotation(com.fasterxml.jackson.databind.SerializerProvider,%20com.fasterxml.jackson.databind.BeanProperty)">hasContentTypeAnnotation</a></strong>(<a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html" title="class in com.fasterxml.jackson.databind">SerializerProvider</a>&nbsp;provider,
236                        <a href="../../../../../com/fasterxml/jackson/databind/BeanProperty.html" title="interface in com.fasterxml.jackson.databind">BeanProperty</a>&nbsp;property)</code>
237<div class="block"><strong>Deprecated.</strong>&nbsp;
238<div class="block"><i>Since 2.7: should not be needed; should be enough to see if
239     type has 'isStatic' modifier</i></div>
240</div>
241</td>
242</tr>
243<tr class="altColor">
244<td class="colFirst"><code>abstract boolean</code></td>
245<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html#hasSingleElement(T)">hasSingleElement</a></strong>(<a href="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html" title="type parameter in ContainerSerializer">T</a>&nbsp;value)</code>
246<div class="block">Method called to determine if the given value (of type handled by
247 this serializer) contains exactly one element.</div>
248</td>
249</tr>
250<tr class="rowColor">
251<td class="colFirst"><code>boolean</code></td>
252<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html#isEmpty(T)">isEmpty</a></strong>(<a href="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html" title="type parameter in ContainerSerializer">T</a>&nbsp;value)</code>
253<div class="block"><strong>Deprecated.</strong>&nbsp;</div>
254</td>
255</tr>
256<tr class="altColor">
257<td class="colFirst"><code><a href="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html" title="class in com.fasterxml.jackson.databind.ser">ContainerSerializer</a>&lt;?&gt;</code></td>
258<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html#withValueTypeSerializer(com.fasterxml.jackson.databind.jsontype.TypeSerializer)">withValueTypeSerializer</a></strong>(<a href="../../../../../com/fasterxml/jackson/databind/jsontype/TypeSerializer.html" title="class in com.fasterxml.jackson.databind.jsontype">TypeSerializer</a>&nbsp;vts)</code>
259<div class="block">Factory(-like) method that can be used to construct a new container
260 serializer that uses specified <a href="../../../../../com/fasterxml/jackson/databind/jsontype/TypeSerializer.html" title="class in com.fasterxml.jackson.databind.jsontype"><code>TypeSerializer</code></a> for decorating
261 contained values with additional type information.</div>
262</td>
263</tr>
264</table>
265<ul class="blockList">
266<li class="blockList"><a name="methods_inherited_from_class_com.fasterxml.jackson.databind.ser.std.StdSerializer">
267<!--   -->
268</a>
269<h3>Methods inherited from class&nbsp;com.fasterxml.jackson.databind.ser.std.<a href="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html" title="class in com.fasterxml.jackson.databind.ser.std">StdSerializer</a></h3>
270<code><a href="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html#acceptJsonFormatVisitor(com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper,%20com.fasterxml.jackson.databind.JavaType)">acceptJsonFormatVisitor</a>, <a href="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html#createObjectNode()">createObjectNode</a>, <a href="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html#createSchemaNode(java.lang.String)">createSchemaNode</a>, <a href="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html#createSchemaNode(java.lang.String,%20boolean)">createSchemaNode</a>, <a href="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html#findAnnotatedContentSerializer(com.fasterxml.jackson.databind.SerializerProvider,%20com.fasterxml.jackson.databind.BeanProperty)">findAnnotatedContentSerializer</a>, <a href="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html#findConvertingContentSerializer(com.fasterxml.jackson.databind.SerializerProvider,%20com.fasterxml.jackson.databind.BeanProperty,%20com.fasterxml.jackson.databind.JsonSerializer)">findConvertingContentSerializer</a>, <a href="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html#findFormatFeature(com.fasterxml.jackson.databind.SerializerProvider,%20com.fasterxml.jackson.databind.BeanProperty,%20java.lang.Class,%20com.fasterxml.jackson.annotation.JsonFormat.Feature)">findFormatFeature</a>, <a href="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html#findFormatOverrides(com.fasterxml.jackson.databind.SerializerProvider,%20com.fasterxml.jackson.databind.BeanProperty,%20java.lang.Class)">findFormatOverrides</a>, <a href="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html#findIncludeOverrides(com.fasterxml.jackson.databind.SerializerProvider,%20com.fasterxml.jackson.databind.BeanProperty,%20java.lang.Class)">findIncludeOverrides</a>, <a href="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html#findPropertyFilter(com.fasterxml.jackson.databind.SerializerProvider,%20java.lang.Object,%20java.lang.Object)">findPropertyFilter</a>, <a href="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html#getSchema(com.fasterxml.jackson.databind.SerializerProvider,%20java.lang.reflect.Type)">getSchema</a>, <a href="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html#getSchema(com.fasterxml.jackson.databind.SerializerProvider,%20java.lang.reflect.Type,%20boolean)">getSchema</a>, <a href="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html#handledType()">handledType</a>, <a href="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html#isDefaultSerializer(com.fasterxml.jackson.databind.JsonSerializer)">isDefaultSerializer</a>, <a href="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html#serialize(T,%20com.fasterxml.jackson.core.JsonGenerator,%20com.fasterxml.jackson.databind.SerializerProvider)">serialize</a>, <a href="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html#visitArrayFormat(com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper,%20com.fasterxml.jackson.databind.JavaType,%20com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatTypes)">visitArrayFormat</a>, <a href="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html#visitArrayFormat(com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper,%20com.fasterxml.jackson.databind.JavaType,%20com.fasterxml.jackson.databind.JsonSerializer,%20com.fasterxml.jackson.databind.JavaType)">visitArrayFormat</a>, <a href="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html#visitFloatFormat(com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper,%20com.fasterxml.jackson.databind.JavaType,%20com.fasterxml.jackson.core.JsonParser.NumberType)">visitFloatFormat</a>, <a href="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html#visitIntFormat(com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper,%20com.fasterxml.jackson.databind.JavaType,%20com.fasterxml.jackson.core.JsonParser.NumberType)">visitIntFormat</a>, <a href="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html#visitIntFormat(com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper,%20com.fasterxml.jackson.databind.JavaType,%20com.fasterxml.jackson.core.JsonParser.NumberType,%20com.fasterxml.jackson.databind.jsonFormatVisitors.JsonValueFormat)">visitIntFormat</a>, <a href="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html#visitStringFormat(com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper,%20com.fasterxml.jackson.databind.JavaType)">visitStringFormat</a>, <a href="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html#visitStringFormat(com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper,%20com.fasterxml.jackson.databind.JavaType,%20com.fasterxml.jackson.databind.jsonFormatVisitors.JsonValueFormat)">visitStringFormat</a>, <a href="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html#wrapAndThrow(com.fasterxml.jackson.databind.SerializerProvider,%20java.lang.Throwable,%20java.lang.Object,%20int)">wrapAndThrow</a>, <a href="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html#wrapAndThrow(com.fasterxml.jackson.databind.SerializerProvider,%20java.lang.Throwable,%20java.lang.Object,%20java.lang.String)">wrapAndThrow</a></code></li>
271</ul>
272<ul class="blockList">
273<li class="blockList"><a name="methods_inherited_from_class_com.fasterxml.jackson.databind.JsonSerializer">
274<!--   -->
275</a>
276<h3>Methods inherited from class&nbsp;com.fasterxml.jackson.databind.<a href="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind">JsonSerializer</a></h3>
277<code><a href="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html#getDelegatee()">getDelegatee</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html#isEmpty(com.fasterxml.jackson.databind.SerializerProvider,%20T)">isEmpty</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html#isUnwrappingSerializer()">isUnwrappingSerializer</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html#properties()">properties</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html#replaceDelegatee(com.fasterxml.jackson.databind.JsonSerializer)">replaceDelegatee</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html#serializeWithType(T,%20com.fasterxml.jackson.core.JsonGenerator,%20com.fasterxml.jackson.databind.SerializerProvider,%20com.fasterxml.jackson.databind.jsontype.TypeSerializer)">serializeWithType</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html#unwrappingSerializer(com.fasterxml.jackson.databind.util.NameTransformer)">unwrappingSerializer</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html#usesObjectId()">usesObjectId</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html#withFilterId(java.lang.Object)">withFilterId</a></code></li>
278</ul>
279<ul class="blockList">
280<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
281<!--   -->
282</a>
283<h3>Methods inherited from class&nbsp;java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
284<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long,%20int)" title="class or interface in java.lang">wait</a></code></li>
285</ul>
286</li>
287</ul>
288</li>
289</ul>
290</div>
291<div class="details">
292<ul class="blockList">
293<li class="blockList">
294<!-- ========= CONSTRUCTOR DETAIL ======== -->
295<ul class="blockList">
296<li class="blockList"><a name="constructor_detail">
297<!--   -->
298</a>
299<h3>Constructor Detail</h3>
300<a name="ContainerSerializer(java.lang.Class)">
301<!--   -->
302</a>
303<ul class="blockList">
304<li class="blockList">
305<h4>ContainerSerializer</h4>
306<pre>protected&nbsp;ContainerSerializer(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;<a href="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html" title="type parameter in ContainerSerializer">T</a>&gt;&nbsp;t)</pre>
307</li>
308</ul>
309<a name="ContainerSerializer(com.fasterxml.jackson.databind.JavaType)">
310<!--   -->
311</a>
312<ul class="blockList">
313<li class="blockList">
314<h4>ContainerSerializer</h4>
315<pre>protected&nbsp;ContainerSerializer(<a href="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a>&nbsp;fullType)</pre>
316<dl><dt><span class="strong">Since:</span></dt>
317  <dd>2.5</dd></dl>
318</li>
319</ul>
320<a name="ContainerSerializer(java.lang.Class, boolean)">
321<!--   -->
322</a>
323<ul class="blockList">
324<li class="blockList">
325<h4>ContainerSerializer</h4>
326<pre>protected&nbsp;ContainerSerializer(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;?&gt;&nbsp;t,
327                   boolean&nbsp;dummy)</pre>
328<div class="block">Alternate constructor that is (alas!) needed to work
329 around kinks of generic type handling</div>
330<dl><dt><span class="strong">Parameters:</span></dt><dd><code>t</code> - </dd></dl>
331</li>
332</ul>
333<a name="ContainerSerializer(com.fasterxml.jackson.databind.ser.ContainerSerializer)">
334<!--   -->
335</a>
336<ul class="blockListLast">
337<li class="blockList">
338<h4>ContainerSerializer</h4>
339<pre>protected&nbsp;ContainerSerializer(<a href="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html" title="class in com.fasterxml.jackson.databind.ser">ContainerSerializer</a>&lt;?&gt;&nbsp;src)</pre>
340</li>
341</ul>
342</li>
343</ul>
344<!-- ============ METHOD DETAIL ========== -->
345<ul class="blockList">
346<li class="blockList"><a name="method_detail">
347<!--   -->
348</a>
349<h3>Method Detail</h3>
350<a name="withValueTypeSerializer(com.fasterxml.jackson.databind.jsontype.TypeSerializer)">
351<!--   -->
352</a>
353<ul class="blockList">
354<li class="blockList">
355<h4>withValueTypeSerializer</h4>
356<pre>public&nbsp;<a href="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html" title="class in com.fasterxml.jackson.databind.ser">ContainerSerializer</a>&lt;?&gt;&nbsp;withValueTypeSerializer(<a href="../../../../../com/fasterxml/jackson/databind/jsontype/TypeSerializer.html" title="class in com.fasterxml.jackson.databind.jsontype">TypeSerializer</a>&nbsp;vts)</pre>
357<div class="block">Factory(-like) method that can be used to construct a new container
358 serializer that uses specified <a href="../../../../../com/fasterxml/jackson/databind/jsontype/TypeSerializer.html" title="class in com.fasterxml.jackson.databind.jsontype"><code>TypeSerializer</code></a> for decorating
359 contained values with additional type information.</div>
360<dl><dt><span class="strong">Parameters:</span></dt><dd><code>vts</code> - Type serializer to use for contained values; can be null,
361    in which case 'this' serializer is returned as is</dd>
362<dt><span class="strong">Returns:</span></dt><dd>Serializer instance that uses given type serializer for values if
363    that is possible (or if not, just 'this' serializer)</dd></dl>
364</li>
365</ul>
366<a name="getContentType()">
367<!--   -->
368</a>
369<ul class="blockList">
370<li class="blockList">
371<h4>getContentType</h4>
372<pre>public abstract&nbsp;<a href="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a>&nbsp;getContentType()</pre>
373<div class="block">Accessor for finding declared (static) element type for
374 type this serializer is used for.</div>
375</li>
376</ul>
377<a name="getContentSerializer()">
378<!--   -->
379</a>
380<ul class="blockList">
381<li class="blockList">
382<h4>getContentSerializer</h4>
383<pre>public abstract&nbsp;<a href="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind">JsonSerializer</a>&lt;?&gt;&nbsp;getContentSerializer()</pre>
384<div class="block">Accessor for serializer used for serializing contents
385 (List and array elements, Map values etc) of the
386 container for which this serializer is used, if it is
387 known statically.
388 Note that for dynamic types this may return null; if so,
389 caller has to instead use <a href="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html#getContentType()"><code>getContentType()</code></a> and
390 <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#findValueSerializer(java.lang.Class,%20com.fasterxml.jackson.databind.BeanProperty)"><code>SerializerProvider.findValueSerializer(java.lang.Class&lt;?&gt;, com.fasterxml.jackson.databind.BeanProperty)</code></a>.</div>
391</li>
392</ul>
393<a name="isEmpty(java.lang.Object)">
394<!--   -->
395</a><a name="isEmpty(T)">
396<!--   -->
397</a>
398<ul class="blockList">
399<li class="blockList">
400<h4>isEmpty</h4>
401<pre><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
402public&nbsp;boolean&nbsp;isEmpty(<a href="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html" title="type parameter in ContainerSerializer">T</a>&nbsp;value)</pre>
403<div class="block"><span class="strong">Deprecated.</span>&nbsp;</div>
404<div class="block"><strong>Description copied from class:&nbsp;<code><a href="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html#isEmpty(T)">JsonSerializer</a></code></strong></div>
405<div class="block">Method called to check whether given serializable value is
406 considered "empty" value (for purposes of suppressing serialization
407 of empty values).
408<p>
409 Default implementation will consider only null values to be empty.</div>
410<dl>
411<dt><strong>Overrides:</strong></dt>
412<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html#isEmpty(T)">isEmpty</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind">JsonSerializer</a>&lt;<a href="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html" title="type parameter in ContainerSerializer">T</a>&gt;</code></dd>
413</dl>
414</li>
415</ul>
416<a name="hasSingleElement(java.lang.Object)">
417<!--   -->
418</a><a name="hasSingleElement(T)">
419<!--   -->
420</a>
421<ul class="blockList">
422<li class="blockList">
423<h4>hasSingleElement</h4>
424<pre>public abstract&nbsp;boolean&nbsp;hasSingleElement(<a href="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html" title="type parameter in ContainerSerializer">T</a>&nbsp;value)</pre>
425<div class="block">Method called to determine if the given value (of type handled by
426 this serializer) contains exactly one element.
427<p>
428 Note: although it might seem sensible to instead define something
429 like "getElementCount()" method, this would not work well for
430 containers that do not keep track of size (like linked lists may
431 not).</div>
432</li>
433</ul>
434<a name="_withValueTypeSerializer(com.fasterxml.jackson.databind.jsontype.TypeSerializer)">
435<!--   -->
436</a>
437<ul class="blockList">
438<li class="blockList">
439<h4>_withValueTypeSerializer</h4>
440<pre>protected abstract&nbsp;<a href="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html" title="class in com.fasterxml.jackson.databind.ser">ContainerSerializer</a>&lt;?&gt;&nbsp;_withValueTypeSerializer(<a href="../../../../../com/fasterxml/jackson/databind/jsontype/TypeSerializer.html" title="class in com.fasterxml.jackson.databind.jsontype">TypeSerializer</a>&nbsp;vts)</pre>
441<div class="block">Method that needs to be implemented to allow construction of a new
442 serializer object with given <a href="../../../../../com/fasterxml/jackson/databind/jsontype/TypeSerializer.html" title="class in com.fasterxml.jackson.databind.jsontype"><code>TypeSerializer</code></a>, used when
443 addition type information is to be embedded.</div>
444</li>
445</ul>
446<a name="hasContentTypeAnnotation(com.fasterxml.jackson.databind.SerializerProvider, com.fasterxml.jackson.databind.BeanProperty)">
447<!--   -->
448</a>
449<ul class="blockListLast">
450<li class="blockList">
451<h4>hasContentTypeAnnotation</h4>
452<pre><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
453protected&nbsp;boolean&nbsp;hasContentTypeAnnotation(<a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html" title="class in com.fasterxml.jackson.databind">SerializerProvider</a>&nbsp;provider,
454                                          <a href="../../../../../com/fasterxml/jackson/databind/BeanProperty.html" title="interface in com.fasterxml.jackson.databind">BeanProperty</a>&nbsp;property)</pre>
455<div class="block"><span class="strong">Deprecated.</span>&nbsp;<i>Since 2.7: should not be needed; should be enough to see if
456     type has 'isStatic' modifier</i></div>
457<div class="block">Helper method used to encapsulate logic for determining whether there is
458 a property annotation that overrides element type; if so, we can
459 and need to statically find the serializer.</div>
460<dl><dt><span class="strong">Since:</span></dt>
461  <dd>2.1</dd></dl>
462</li>
463</ul>
464</li>
465</ul>
466</li>
467</ul>
468</div>
469</div>
470<!-- ========= END OF CLASS DATA ========= -->
471<!-- ======= START OF BOTTOM NAVBAR ====== -->
472<div class="bottomNav"><a name="navbar_bottom">
473<!--   -->
474</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
475<!--   -->
476</a>
477<ul class="navList" title="Navigation">
478<li><a href="../../../../../overview-summary.html">Overview</a></li>
479<li><a href="package-summary.html">Package</a></li>
480<li class="navBarCell1Rev">Class</li>
481<li><a href="class-use/ContainerSerializer.html">Use</a></li>
482<li><a href="package-tree.html">Tree</a></li>
483<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
484<li><a href="../../../../../index-all.html">Index</a></li>
485<li><a href="../../../../../help-doc.html">Help</a></li>
486</ul>
487</div>
488<div class="subNav">
489<ul class="navList">
490<li><a href="../../../../../com/fasterxml/jackson/databind/ser/BeanSerializerModifier.html" title="class in com.fasterxml.jackson.databind.ser"><span class="strong">Prev Class</span></a></li>
491<li><a href="../../../../../com/fasterxml/jackson/databind/ser/ContextualSerializer.html" title="interface in com.fasterxml.jackson.databind.ser"><span class="strong">Next Class</span></a></li>
492</ul>
493<ul class="navList">
494<li><a href="../../../../../index.html?com/fasterxml/jackson/databind/ser/ContainerSerializer.html" target="_top">Frames</a></li>
495<li><a href="ContainerSerializer.html" target="_top">No Frames</a></li>
496</ul>
497<ul class="navList" id="allclasses_navbar_bottom">
498<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
499</ul>
500<div>
501<script type="text/javascript"><!--
502  allClassesLink = document.getElementById("allclasses_navbar_bottom");
503  if(window==top) {
504    allClassesLink.style.display = "block";
505  }
506  else {
507    allClassesLink.style.display = "none";
508  }
509  //-->
510</script>
511</div>
512<div>
513<ul class="subNavList">
514<li>Summary:&nbsp;</li>
515<li><a href="#nested_classes_inherited_from_class_com.fasterxml.jackson.databind.JsonSerializer">Nested</a>&nbsp;|&nbsp;</li>
516<li><a href="#fields_inherited_from_class_com.fasterxml.jackson.databind.ser.std.StdSerializer">Field</a>&nbsp;|&nbsp;</li>
517<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
518<li><a href="#method_summary">Method</a></li>
519</ul>
520<ul class="subNavList">
521<li>Detail:&nbsp;</li>
522<li>Field&nbsp;|&nbsp;</li>
523<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
524<li><a href="#method_detail">Method</a></li>
525</ul>
526</div>
527<a name="skip-navbar_bottom">
528<!--   -->
529</a></div>
530<!-- ======== END OF BOTTOM NAVBAR ======= -->
531<p class="legalCopy"><small>Copyright &#169; 2008&#x2013;2016 <a href="http://fasterxml.com/">FasterXML</a>. All rights reserved.</small></p>
532</body>
533</html>
534