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 Thu Jan 01 17:43:58 PST 2015 --> 6<meta http-equiv="Content-Type" content="text/html" charset="UTF-8"> 7<title>ContainerSerializer (jackson-databind 2.5.0 API)</title> 8<meta name="date" content="2015-01-01"> 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.5.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: </li> 65<li><a href="#nested_classes_inherited_from_class_com.fasterxml.jackson.databind.JsonSerializer">Nested</a> | </li> 66<li><a href="#fields_inherited_from_class_com.fasterxml.jackson.databind.ser.std.StdSerializer">Field</a> | </li> 67<li><a href="#constructor_summary">Constr</a> | </li> 68<li><a href="#method_summary">Method</a></li> 69</ul> 70<ul class="subNavList"> 71<li>Detail: </li> 72<li>Field | </li> 73<li><a href="#constructor_detail">Constr</a> | </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<T></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><T></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><T></li> 95<li> 96<ul class="inheritance"> 97<li>com.fasterxml.jackson.databind.ser.ContainerSerializer<T></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/6/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/std/EnumMapSerializer.html" title="class in com.fasterxml.jackson.databind.ser.std">EnumMapSerializer</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<T></span> 119extends <a href="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html" title="class in com.fasterxml.jackson.databind.ser.std">StdSerializer</a><T></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<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 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 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"> </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, 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><?> t, 177 boolean 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/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><<a href="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html" title="type parameter in ContainerSerializer">T</a>> t)</code> </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><?> src)</code> </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> fullType)</code> </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"> </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><?></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> 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><?></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, 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> provider, 236 <a href="../../../../../com/fasterxml/jackson/databind/BeanProperty.html" title="interface in com.fasterxml.jackson.databind">BeanProperty</a> property)</code> 237<div class="block">Helper method used to encapsulate logic for determining whether there is 238 a property annotation that overrides element type; if so, we can 239 and need to statically find the serializer.</div> 240</td> 241</tr> 242<tr class="altColor"> 243<td class="colFirst"><code>abstract boolean</code></td> 244<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> value)</code> 245<div class="block">Method called to determine if the given value (of type handled by 246 this serializer) contains exactly one element.</div> 247</td> 248</tr> 249<tr class="rowColor"> 250<td class="colFirst"><code>boolean</code></td> 251<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> value)</code> 252<div class="block"><strong>Deprecated.</strong> </div> 253</td> 254</tr> 255<tr class="altColor"> 256<td class="colFirst"><code><a href="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html" title="class in com.fasterxml.jackson.databind.ser">ContainerSerializer</a><?></code></td> 257<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> vts)</code> 258<div class="block">Factory(-like) method that can be used to construct a new container 259 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 260 contained values with additional type information.</div> 261</td> 262</tr> 263</table> 264<ul class="blockList"> 265<li class="blockList"><a name="methods_inherited_from_class_com.fasterxml.jackson.databind.ser.std.StdSerializer"> 266<!-- --> 267</a> 268<h3>Methods inherited from class 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> 269<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> 270</ul> 271<ul class="blockList"> 272<li class="blockList"><a name="methods_inherited_from_class_com.fasterxml.jackson.databind.JsonSerializer"> 273<!-- --> 274</a> 275<h3>Methods inherited from class com.fasterxml.jackson.databind.<a href="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind">JsonSerializer</a></h3> 276<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, T)">isEmpty</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> 277</ul> 278<ul class="blockList"> 279<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> 280<!-- --> 281</a> 282<h3>Methods inherited from class 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> 283<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> 284</ul> 285</li> 286</ul> 287</li> 288</ul> 289</div> 290<div class="details"> 291<ul class="blockList"> 292<li class="blockList"> 293<!-- ========= CONSTRUCTOR DETAIL ======== --> 294<ul class="blockList"> 295<li class="blockList"><a name="constructor_detail"> 296<!-- --> 297</a> 298<h3>Constructor Detail</h3> 299<a name="ContainerSerializer(java.lang.Class)"> 300<!-- --> 301</a> 302<ul class="blockList"> 303<li class="blockList"> 304<h4>ContainerSerializer</h4> 305<pre>protected 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><<a href="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html" title="type parameter in ContainerSerializer">T</a>> t)</pre> 306</li> 307</ul> 308<a name="ContainerSerializer(com.fasterxml.jackson.databind.JavaType)"> 309<!-- --> 310</a> 311<ul class="blockList"> 312<li class="blockList"> 313<h4>ContainerSerializer</h4> 314<pre>protected ContainerSerializer(<a href="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a> fullType)</pre> 315<dl><dt><span class="strong">Since:</span></dt> 316 <dd>2.5</dd></dl> 317</li> 318</ul> 319<a name="ContainerSerializer(java.lang.Class, boolean)"> 320<!-- --> 321</a> 322<ul class="blockList"> 323<li class="blockList"> 324<h4>ContainerSerializer</h4> 325<pre>protected 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><?> t, 326 boolean dummy)</pre> 327<div class="block">Alternate constructor that is (alas!) needed to work 328 around kinks of generic type handling</div> 329<dl><dt><span class="strong">Parameters:</span></dt><dd><code>t</code> - </dd></dl> 330</li> 331</ul> 332<a name="ContainerSerializer(com.fasterxml.jackson.databind.ser.ContainerSerializer)"> 333<!-- --> 334</a> 335<ul class="blockListLast"> 336<li class="blockList"> 337<h4>ContainerSerializer</h4> 338<pre>protected ContainerSerializer(<a href="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html" title="class in com.fasterxml.jackson.databind.ser">ContainerSerializer</a><?> src)</pre> 339</li> 340</ul> 341</li> 342</ul> 343<!-- ============ METHOD DETAIL ========== --> 344<ul class="blockList"> 345<li class="blockList"><a name="method_detail"> 346<!-- --> 347</a> 348<h3>Method Detail</h3> 349<a name="withValueTypeSerializer(com.fasterxml.jackson.databind.jsontype.TypeSerializer)"> 350<!-- --> 351</a> 352<ul class="blockList"> 353<li class="blockList"> 354<h4>withValueTypeSerializer</h4> 355<pre>public <a href="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html" title="class in com.fasterxml.jackson.databind.ser">ContainerSerializer</a><?> withValueTypeSerializer(<a href="../../../../../com/fasterxml/jackson/databind/jsontype/TypeSerializer.html" title="class in com.fasterxml.jackson.databind.jsontype">TypeSerializer</a> vts)</pre> 356<div class="block">Factory(-like) method that can be used to construct a new container 357 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 358 contained values with additional type information.</div> 359<dl><dt><span class="strong">Parameters:</span></dt><dd><code>vts</code> - Type serializer to use for contained values; can be null, 360 in which case 'this' serializer is returned as is</dd> 361<dt><span class="strong">Returns:</span></dt><dd>Serializer instance that uses given type serializer for values if 362 that is possible (or if not, just 'this' serializer)</dd></dl> 363</li> 364</ul> 365<a name="getContentType()"> 366<!-- --> 367</a> 368<ul class="blockList"> 369<li class="blockList"> 370<h4>getContentType</h4> 371<pre>public abstract <a href="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a> getContentType()</pre> 372<div class="block">Accessor for finding declared (static) element type for 373 type this serializer is used for.</div> 374</li> 375</ul> 376<a name="getContentSerializer()"> 377<!-- --> 378</a> 379<ul class="blockList"> 380<li class="blockList"> 381<h4>getContentSerializer</h4> 382<pre>public abstract <a href="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind">JsonSerializer</a><?> getContentSerializer()</pre> 383<div class="block">Accessor for serializer used for serializing contents 384 (List and array elements, Map values etc) of the 385 container for which this serializer is used, if it is 386 known statically. 387 Note that for dynamic types this may return null; if so, 388 caller has to instead use <a href="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html#getContentType()"><code>getContentType()</code></a> and 389 <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#findValueSerializer(java.lang.Class, com.fasterxml.jackson.databind.BeanProperty)"><code>SerializerProvider.findValueSerializer(java.lang.Class<?>, com.fasterxml.jackson.databind.BeanProperty)</code></a>.</div> 390</li> 391</ul> 392<a name="isEmpty(java.lang.Object)"> 393<!-- --> 394</a><a name="isEmpty(T)"> 395<!-- --> 396</a> 397<ul class="blockList"> 398<li class="blockList"> 399<h4>isEmpty</h4> 400<pre><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a> 401public boolean isEmpty(<a href="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html" title="type parameter in ContainerSerializer">T</a> value)</pre> 402<div class="block"><span class="strong">Deprecated.</span> </div> 403<div class="block"><strong>Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html#isEmpty(T)">JsonSerializer</a></code></strong></div> 404<div class="block">Method called to check whether given serializable value is 405 considered "empty" value (for purposes of suppressing serialization 406 of empty values). 407<p> 408 Default implementation will consider only null values to be empty.</div> 409<dl> 410<dt><strong>Overrides:</strong></dt> 411<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html#isEmpty(T)">isEmpty</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind">JsonSerializer</a><<a href="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html" title="type parameter in ContainerSerializer">T</a>></code></dd> 412</dl> 413</li> 414</ul> 415<a name="hasSingleElement(java.lang.Object)"> 416<!-- --> 417</a><a name="hasSingleElement(T)"> 418<!-- --> 419</a> 420<ul class="blockList"> 421<li class="blockList"> 422<h4>hasSingleElement</h4> 423<pre>public abstract boolean hasSingleElement(<a href="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html" title="type parameter in ContainerSerializer">T</a> value)</pre> 424<div class="block">Method called to determine if the given value (of type handled by 425 this serializer) contains exactly one element. 426<p> 427 Note: although it might seem sensible to instead define something 428 like "getElementCount()" method, this would not work well for 429 containers that do not keep track of size (like linked lists may 430 not).</div> 431</li> 432</ul> 433<a name="_withValueTypeSerializer(com.fasterxml.jackson.databind.jsontype.TypeSerializer)"> 434<!-- --> 435</a> 436<ul class="blockList"> 437<li class="blockList"> 438<h4>_withValueTypeSerializer</h4> 439<pre>protected abstract <a href="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html" title="class in com.fasterxml.jackson.databind.ser">ContainerSerializer</a><?> _withValueTypeSerializer(<a href="../../../../../com/fasterxml/jackson/databind/jsontype/TypeSerializer.html" title="class in com.fasterxml.jackson.databind.jsontype">TypeSerializer</a> vts)</pre> 440<div class="block">Method that needs to be implemented to allow construction of a new 441 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 442 addition type information is to be embedded.</div> 443</li> 444</ul> 445<a name="hasContentTypeAnnotation(com.fasterxml.jackson.databind.SerializerProvider, com.fasterxml.jackson.databind.BeanProperty)"> 446<!-- --> 447</a> 448<ul class="blockListLast"> 449<li class="blockList"> 450<h4>hasContentTypeAnnotation</h4> 451<pre>protected boolean hasContentTypeAnnotation(<a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html" title="class in com.fasterxml.jackson.databind">SerializerProvider</a> provider, 452 <a href="../../../../../com/fasterxml/jackson/databind/BeanProperty.html" title="interface in com.fasterxml.jackson.databind">BeanProperty</a> property)</pre> 453<div class="block">Helper method used to encapsulate logic for determining whether there is 454 a property annotation that overrides element type; if so, we can 455 and need to statically find the serializer.</div> 456<dl><dt><span class="strong">Since:</span></dt> 457 <dd>2.1</dd></dl> 458</li> 459</ul> 460</li> 461</ul> 462</li> 463</ul> 464</div> 465</div> 466<!-- ========= END OF CLASS DATA ========= --> 467<!-- ======= START OF BOTTOM NAVBAR ====== --> 468<div class="bottomNav"><a name="navbar_bottom"> 469<!-- --> 470</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> 471<!-- --> 472</a> 473<ul class="navList" title="Navigation"> 474<li><a href="../../../../../overview-summary.html">Overview</a></li> 475<li><a href="package-summary.html">Package</a></li> 476<li class="navBarCell1Rev">Class</li> 477<li><a href="class-use/ContainerSerializer.html">Use</a></li> 478<li><a href="package-tree.html">Tree</a></li> 479<li><a href="../../../../../deprecated-list.html">Deprecated</a></li> 480<li><a href="../../../../../index-all.html">Index</a></li> 481<li><a href="../../../../../help-doc.html">Help</a></li> 482</ul> 483</div> 484<div class="subNav"> 485<ul class="navList"> 486<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> 487<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> 488</ul> 489<ul class="navList"> 490<li><a href="../../../../../index.html?com/fasterxml/jackson/databind/ser/ContainerSerializer.html" target="_top">Frames</a></li> 491<li><a href="ContainerSerializer.html" target="_top">No Frames</a></li> 492</ul> 493<ul class="navList" id="allclasses_navbar_bottom"> 494<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> 495</ul> 496<div> 497<script type="text/javascript"><!-- 498 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 499 if(window==top) { 500 allClassesLink.style.display = "block"; 501 } 502 else { 503 allClassesLink.style.display = "none"; 504 } 505 //--> 506</script> 507</div> 508<div> 509<ul class="subNavList"> 510<li>Summary: </li> 511<li><a href="#nested_classes_inherited_from_class_com.fasterxml.jackson.databind.JsonSerializer">Nested</a> | </li> 512<li><a href="#fields_inherited_from_class_com.fasterxml.jackson.databind.ser.std.StdSerializer">Field</a> | </li> 513<li><a href="#constructor_summary">Constr</a> | </li> 514<li><a href="#method_summary">Method</a></li> 515</ul> 516<ul class="subNavList"> 517<li>Detail: </li> 518<li>Field | </li> 519<li><a href="#constructor_detail">Constr</a> | </li> 520<li><a href="#method_detail">Method</a></li> 521</ul> 522</div> 523<a name="skip-navbar_bottom"> 524<!-- --> 525</a></div> 526<!-- ======== END OF BOTTOM NAVBAR ======= --> 527<p class="legalCopy"><small>Copyright © 2014-2015 <a href="http://fasterxml.com/">FasterXML</a>. All Rights Reserved.</small></p> 528</body> 529</html> 530