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