• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_25) on Sat Nov 16 21:43:19 PST 2013 -->
6<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
7<title>ContainerSerializer (jackson-databind 2.3.0 API)</title>
8<meta name="date" content="2013-11-16">
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.3.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/6/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></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/std/EnumMapSerializer.html" title="class in com.fasterxml.jackson.databind.ser.std">EnumMapSerializer</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/6/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/6/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/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util"><code>Iterator</code></a>s).</div>
125</li>
126</ul>
127</div>
128<div class="summary">
129<ul class="blockList">
130<li class="blockList">
131<!-- ======== NESTED CLASS SUMMARY ======== -->
132<ul class="blockList">
133<li class="blockList"><a name="nested_class_summary">
134<!--   -->
135</a>
136<h3>Nested Class Summary</h3>
137<ul class="blockList">
138<li class="blockList"><a name="nested_classes_inherited_from_class_com.fasterxml.jackson.databind.JsonSerializer">
139<!--   -->
140</a>
141<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>
142<code><a href="../../../../../com/fasterxml/jackson/databind/JsonSerializer.None.html" title="class in com.fasterxml.jackson.databind">JsonSerializer.None</a></code></li>
143</ul>
144</li>
145</ul>
146<!-- =========== FIELD SUMMARY =========== -->
147<ul class="blockList">
148<li class="blockList"><a name="field_summary">
149<!--   -->
150</a>
151<h3>Field Summary</h3>
152<ul class="blockList">
153<li class="blockList"><a name="fields_inherited_from_class_com.fasterxml.jackson.databind.ser.std.StdSerializer">
154<!--   -->
155</a>
156<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>
157<code><a href="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html#_handledType">_handledType</a></code></li>
158</ul>
159</li>
160</ul>
161<!-- ======== CONSTRUCTOR SUMMARY ======== -->
162<ul class="blockList">
163<li class="blockList"><a name="constructor_summary">
164<!--   -->
165</a>
166<h3>Constructor Summary</h3>
167<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
168<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
169<tr>
170<th class="colFirst" scope="col">Modifier</th>
171<th class="colLast" scope="col">Constructor and Description</th>
172</tr>
173<tr class="altColor">
174<td class="colFirst"><code>protected </code></td>
175<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html#ContainerSerializer(java.lang.Class, boolean)">ContainerSerializer</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;?&gt;&nbsp;t,
176                   boolean&nbsp;dummy)</code>
177<div class="block">Alternate constructor that is (alas!) needed to work
178 around kinks of generic type handling</div>
179</td>
180</tr>
181<tr class="rowColor">
182<td class="colFirst"><code>protected </code></td>
183<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/6/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>
184</tr>
185<tr class="altColor">
186<td class="colFirst"><code>protected </code></td>
187<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>
188</tr>
189</table>
190</li>
191</ul>
192<!-- ========== METHOD SUMMARY =========== -->
193<ul class="blockList">
194<li class="blockList"><a name="method_summary">
195<!--   -->
196</a>
197<h3>Method Summary</h3>
198<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
199<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
200<tr>
201<th class="colFirst" scope="col">Modifier and Type</th>
202<th class="colLast" scope="col">Method and Description</th>
203</tr>
204<tr class="altColor">
205<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>
206<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>
207<div class="block">Method that needs to be implemented to allow construction of a new
208 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
209 addition type information is to be embedded.</div>
210</td>
211</tr>
212<tr class="rowColor">
213<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>
214<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html#getContentSerializer()">getContentSerializer</a></strong>()</code>
215<div class="block">Accessor for serializer used for serializing contents
216 (List and array elements, Map values etc) of the
217 container for which this serializer is used, if it is
218 known statically.</div>
219</td>
220</tr>
221<tr class="altColor">
222<td class="colFirst"><code>abstract <a href="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a></code></td>
223<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html#getContentType()">getContentType</a></strong>()</code>
224<div class="block">Accessor for finding declared (static) element type for
225 type this serializer is used for.</div>
226</td>
227</tr>
228<tr class="rowColor">
229<td class="colFirst"><code>protected boolean</code></td>
230<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html#hasContentTypeAnnotation(com.fasterxml.jackson.databind.SerializerProvider, com.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,
231                        <a href="../../../../../com/fasterxml/jackson/databind/BeanProperty.html" title="interface in com.fasterxml.jackson.databind">BeanProperty</a>&nbsp;property)</code>
232<div class="block">Helper method used to encapsulate logic for determining whether there is
233 a property annotation that overrides element type; if so, we can
234 and need to statically find the serializer.</div>
235</td>
236</tr>
237<tr class="altColor">
238<td class="colFirst"><code>abstract boolean</code></td>
239<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>
240<div class="block">Method called to determine if the given value (of type handled by
241 this serializer) contains exactly one element.</div>
242</td>
243</tr>
244<tr class="rowColor">
245<td class="colFirst"><code>abstract boolean</code></td>
246<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>
247<div class="block">Method called to check whether given serializable value is
248 considered "empty" value (for purposes of suppressing serialization
249 of empty values).</div>
250</td>
251</tr>
252<tr class="altColor">
253<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>
254<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>
255<div class="block">Factory(-like) method that can be used to construct a new container
256 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
257 contained values with additional type information.</div>
258</td>
259</tr>
260</table>
261<ul class="blockList">
262<li class="blockList"><a name="methods_inherited_from_class_com.fasterxml.jackson.databind.ser.std.StdSerializer">
263<!--   -->
264</a>
265<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>
266<code><a href="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html#acceptJsonFormatVisitor(com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper, com.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, boolean)">createSchemaNode</a>, <a href="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html#findConvertingContentSerializer(com.fasterxml.jackson.databind.SerializerProvider, com.fasterxml.jackson.databind.BeanProperty, com.fasterxml.jackson.databind.JsonSerializer)">findConvertingContentSerializer</a>, <a href="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html#findPropertyFilter(com.fasterxml.jackson.databind.SerializerProvider, java.lang.Object, java.lang.Object)">findPropertyFilter</a>, <a href="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html#getSchema(com.fasterxml.jackson.databind.SerializerProvider, java.lang.reflect.Type)">getSchema</a>, <a href="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html#getSchema(com.fasterxml.jackson.databind.SerializerProvider, java.lang.reflect.Type, boolean)">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, com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.SerializerProvider)">serialize</a>, <a href="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html#wrapAndThrow(com.fasterxml.jackson.databind.SerializerProvider, java.lang.Throwable, java.lang.Object, int)">wrapAndThrow</a>, <a href="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html#wrapAndThrow(com.fasterxml.jackson.databind.SerializerProvider, java.lang.Throwable, java.lang.Object, java.lang.String)">wrapAndThrow</a></code></li>
267</ul>
268<ul class="blockList">
269<li class="blockList"><a name="methods_inherited_from_class_com.fasterxml.jackson.databind.JsonSerializer">
270<!--   -->
271</a>
272<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>
273<code><a href="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html#getDelegatee()">getDelegatee</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html#isUnwrappingSerializer()">isUnwrappingSerializer</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, com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.SerializerProvider, com.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></code></li>
274</ul>
275<ul class="blockList">
276<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
277<!--   -->
278</a>
279<h3>Methods inherited from class&nbsp;java.lang.<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
280<code><a href="http://docs.oracle.com/javase/6/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/6/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/6/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/6/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/6/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/6/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/6/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/6/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/6/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/6/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/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</a></code></li>
281</ul>
282</li>
283</ul>
284</li>
285</ul>
286</div>
287<div class="details">
288<ul class="blockList">
289<li class="blockList">
290<!-- ========= CONSTRUCTOR DETAIL ======== -->
291<ul class="blockList">
292<li class="blockList"><a name="constructor_detail">
293<!--   -->
294</a>
295<h3>Constructor Detail</h3>
296<a name="ContainerSerializer(java.lang.Class)">
297<!--   -->
298</a>
299<ul class="blockList">
300<li class="blockList">
301<h4>ContainerSerializer</h4>
302<pre>protected&nbsp;ContainerSerializer(<a href="http://docs.oracle.com/javase/6/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>
303</li>
304</ul>
305<a name="ContainerSerializer(java.lang.Class, boolean)">
306<!--   -->
307</a>
308<ul class="blockList">
309<li class="blockList">
310<h4>ContainerSerializer</h4>
311<pre>protected&nbsp;ContainerSerializer(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;?&gt;&nbsp;t,
312                   boolean&nbsp;dummy)</pre>
313<div class="block">Alternate constructor that is (alas!) needed to work
314 around kinks of generic type handling</div>
315<dl><dt><span class="strong">Parameters:</span></dt><dd><code>t</code> - </dd></dl>
316</li>
317</ul>
318<a name="ContainerSerializer(com.fasterxml.jackson.databind.ser.ContainerSerializer)">
319<!--   -->
320</a>
321<ul class="blockListLast">
322<li class="blockList">
323<h4>ContainerSerializer</h4>
324<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>
325</li>
326</ul>
327</li>
328</ul>
329<!-- ============ METHOD DETAIL ========== -->
330<ul class="blockList">
331<li class="blockList"><a name="method_detail">
332<!--   -->
333</a>
334<h3>Method Detail</h3>
335<a name="withValueTypeSerializer(com.fasterxml.jackson.databind.jsontype.TypeSerializer)">
336<!--   -->
337</a>
338<ul class="blockList">
339<li class="blockList">
340<h4>withValueTypeSerializer</h4>
341<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>
342<div class="block">Factory(-like) method that can be used to construct a new container
343 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
344 contained values with additional type information.</div>
345<dl><dt><span class="strong">Parameters:</span></dt><dd><code>vts</code> - Type serializer to use for contained values; can be null,
346    in which case 'this' serializer is returned as is</dd>
347<dt><span class="strong">Returns:</span></dt><dd>Serializer instance that uses given type serializer for values if
348    that is possible (or if not, just 'this' serializer)</dd></dl>
349</li>
350</ul>
351<a name="getContentType()">
352<!--   -->
353</a>
354<ul class="blockList">
355<li class="blockList">
356<h4>getContentType</h4>
357<pre>public abstract&nbsp;<a href="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a>&nbsp;getContentType()</pre>
358<div class="block">Accessor for finding declared (static) element type for
359 type this serializer is used for.</div>
360</li>
361</ul>
362<a name="getContentSerializer()">
363<!--   -->
364</a>
365<ul class="blockList">
366<li class="blockList">
367<h4>getContentSerializer</h4>
368<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>
369<div class="block">Accessor for serializer used for serializing contents
370 (List and array elements, Map values etc) of the
371 container for which this serializer is used, if it is
372 known statically.
373 Note that for dynamic types this may return null; if so,
374 caller has to instead use <a href="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html#getContentType()"><code>getContentType()</code></a> and
375 <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#findValueSerializer(java.lang.Class, com.fasterxml.jackson.databind.BeanProperty)"><code>SerializerProvider.findValueSerializer(java.lang.Class&lt;?&gt;, com.fasterxml.jackson.databind.BeanProperty)</code></a>.</div>
376</li>
377</ul>
378<a name="isEmpty(java.lang.Object)">
379<!--   -->
380</a><a name="isEmpty(T)">
381<!--   -->
382</a>
383<ul class="blockList">
384<li class="blockList">
385<h4>isEmpty</h4>
386<pre>public abstract&nbsp;boolean&nbsp;isEmpty(<a href="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html" title="type parameter in ContainerSerializer">T</a>&nbsp;value)</pre>
387<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>
388<div class="block">Method called to check whether given serializable value is
389 considered "empty" value (for purposes of suppressing serialization
390 of empty values).
391<p>
392 Default implementation will consider only null values to be empty.</div>
393<dl>
394<dt><strong>Overrides:</strong></dt>
395<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>
396</dl>
397</li>
398</ul>
399<a name="hasSingleElement(java.lang.Object)">
400<!--   -->
401</a><a name="hasSingleElement(T)">
402<!--   -->
403</a>
404<ul class="blockList">
405<li class="blockList">
406<h4>hasSingleElement</h4>
407<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>
408<div class="block">Method called to determine if the given value (of type handled by
409 this serializer) contains exactly one element.
410<p>
411 Note: although it might seem sensible to instead define something
412 like "getElementCount()" method, this would not work well for
413 containers that do not keep track of size (like linked lists may
414 not).</div>
415</li>
416</ul>
417<a name="_withValueTypeSerializer(com.fasterxml.jackson.databind.jsontype.TypeSerializer)">
418<!--   -->
419</a>
420<ul class="blockList">
421<li class="blockList">
422<h4>_withValueTypeSerializer</h4>
423<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>
424<div class="block">Method that needs to be implemented to allow construction of a new
425 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
426 addition type information is to be embedded.</div>
427</li>
428</ul>
429<a name="hasContentTypeAnnotation(com.fasterxml.jackson.databind.SerializerProvider, com.fasterxml.jackson.databind.BeanProperty)">
430<!--   -->
431</a>
432<ul class="blockListLast">
433<li class="blockList">
434<h4>hasContentTypeAnnotation</h4>
435<pre>protected&nbsp;boolean&nbsp;hasContentTypeAnnotation(<a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html" title="class in com.fasterxml.jackson.databind">SerializerProvider</a>&nbsp;provider,
436                               <a href="../../../../../com/fasterxml/jackson/databind/BeanProperty.html" title="interface in com.fasterxml.jackson.databind">BeanProperty</a>&nbsp;property)</pre>
437<div class="block">Helper method used to encapsulate logic for determining whether there is
438 a property annotation that overrides element type; if so, we can
439 and need to statically find the serializer.</div>
440<dl><dt><span class="strong">Since:</span></dt>
441  <dd>2.1</dd></dl>
442</li>
443</ul>
444</li>
445</ul>
446</li>
447</ul>
448</div>
449</div>
450<!-- ========= END OF CLASS DATA ========= -->
451<!-- ======= START OF BOTTOM NAVBAR ====== -->
452<div class="bottomNav"><a name="navbar_bottom">
453<!--   -->
454</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
455<!--   -->
456</a>
457<ul class="navList" title="Navigation">
458<li><a href="../../../../../overview-summary.html">Overview</a></li>
459<li><a href="package-summary.html">Package</a></li>
460<li class="navBarCell1Rev">Class</li>
461<li><a href="class-use/ContainerSerializer.html">Use</a></li>
462<li><a href="package-tree.html">Tree</a></li>
463<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
464<li><a href="../../../../../index-all.html">Index</a></li>
465<li><a href="../../../../../help-doc.html">Help</a></li>
466</ul>
467</div>
468<div class="subNav">
469<ul class="navList">
470<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>
471<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>
472</ul>
473<ul class="navList">
474<li><a href="../../../../../index.html?com/fasterxml/jackson/databind/ser/ContainerSerializer.html" target="_top">Frames</a></li>
475<li><a href="ContainerSerializer.html" target="_top">No Frames</a></li>
476</ul>
477<ul class="navList" id="allclasses_navbar_bottom">
478<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
479</ul>
480<div>
481<script type="text/javascript"><!--
482  allClassesLink = document.getElementById("allclasses_navbar_bottom");
483  if(window==top) {
484    allClassesLink.style.display = "block";
485  }
486  else {
487    allClassesLink.style.display = "none";
488  }
489  //-->
490</script>
491</div>
492<div>
493<ul class="subNavList">
494<li>Summary:&nbsp;</li>
495<li><a href="#nested_classes_inherited_from_class_com.fasterxml.jackson.databind.JsonSerializer">Nested</a>&nbsp;|&nbsp;</li>
496<li><a href="#fields_inherited_from_class_com.fasterxml.jackson.databind.ser.std.StdSerializer">Field</a>&nbsp;|&nbsp;</li>
497<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
498<li><a href="#method_summary">Method</a></li>
499</ul>
500<ul class="subNavList">
501<li>Detail:&nbsp;</li>
502<li>Field&nbsp;|&nbsp;</li>
503<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
504<li><a href="#method_detail">Method</a></li>
505</ul>
506</div>
507<a name="skip-navbar_bottom">
508<!--   -->
509</a></div>
510<!-- ======== END OF BOTTOM NAVBAR ======= -->
511<p class="legalCopy"><small>Copyright &#169; 2012-2013 <a href="http://fasterxml.com/">FasterXML</a>. All Rights Reserved.</small></p>
512</body>
513</html>
514