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_162) on Tue Nov 05 19:39:10 PST 2019 --> 6<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 7<title>ContainerSerializer (jackson-databind 2.10.0 API)</title> 8<meta name="date" content="2019-11-05"> 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.10.0 API)"; 17 } 18 } 19 catch(err) { 20 } 21//--> 22var methods = {"i0":6,"i1":6,"i2":6,"i3":42,"i4":6,"i5":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="https://docs.oracle.com/javase/8/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="https://docs.oracle.com/javase/8/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/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="https://docs.oracle.com/javase/8/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="https://docs.oracle.com/javase/8/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="https://docs.oracle.com/javase/8/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="https://docs.oracle.com/javase/8/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="https://docs.oracle.com/javase/8/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"><span class="deprecatedLabel">Deprecated.</span> 254<div class="block"><span class="deprecationComment">Since 2.7: should not be needed; should be enough to see if 255 type has 'isStatic' modifier</span></div> 256</div> 257</td> 258</tr> 259<tr id="i4" class="altColor"> 260<td class="colFirst"><code>abstract boolean</code></td> 261<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> 262<div class="block">Method called to determine if the given value (of type handled by 263 this serializer) contains exactly one element.</div> 264</td> 265</tr> 266<tr id="i5" class="rowColor"> 267<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> 268<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> 269<div class="block">Factory(-like) method that can be used to construct a new container 270 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 271 contained values with additional type information.</div> 272</td> 273</tr> 274</table> 275<ul class="blockList"> 276<li class="blockList"><a name="methods.inherited.from.class.com.fasterxml.jackson.databind.ser.std.StdSerializer"> 277<!-- --> 278</a> 279<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> 280<code><a href="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html#Z:Z_neitherNull-java.lang.Object-java.lang.Object-">_neitherNull</a>, <a href="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html#Z:Z_nonEmpty-java.util.Collection-">_nonEmpty</a>, <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#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#findAnnotatedContentSerializer-com.fasterxml.jackson.databind.SerializerProvider-com.fasterxml.jackson.databind.BeanProperty-">findAnnotatedContentSerializer</a>, <a href="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html#findContextualConvertingSerializer-com.fasterxml.jackson.databind.SerializerProvider-com.fasterxml.jackson.databind.BeanProperty-com.fasterxml.jackson.databind.JsonSerializer-">findContextualConvertingSerializer</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#findFormatFeature-com.fasterxml.jackson.databind.SerializerProvider-com.fasterxml.jackson.databind.BeanProperty-java.lang.Class-com.fasterxml.jackson.annotation.JsonFormat.Feature-">findFormatFeature</a>, <a href="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html#findFormatOverrides-com.fasterxml.jackson.databind.SerializerProvider-com.fasterxml.jackson.databind.BeanProperty-java.lang.Class-">findFormatOverrides</a>, <a href="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html#findIncludeOverrides-com.fasterxml.jackson.databind.SerializerProvider-com.fasterxml.jackson.databind.BeanProperty-java.lang.Class-">findIncludeOverrides</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#visitArrayFormat-com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper-com.fasterxml.jackson.databind.JavaType-com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatTypes-">visitArrayFormat</a>, <a href="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html#visitArrayFormat-com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper-com.fasterxml.jackson.databind.JavaType-com.fasterxml.jackson.databind.JsonSerializer-com.fasterxml.jackson.databind.JavaType-">visitArrayFormat</a>, <a href="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html#visitFloatFormat-com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper-com.fasterxml.jackson.databind.JavaType-com.fasterxml.jackson.core.JsonParser.NumberType-">visitFloatFormat</a>, <a href="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html#visitIntFormat-com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper-com.fasterxml.jackson.databind.JavaType-com.fasterxml.jackson.core.JsonParser.NumberType-">visitIntFormat</a>, <a href="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html#visitIntFormat-com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper-com.fasterxml.jackson.databind.JavaType-com.fasterxml.jackson.core.JsonParser.NumberType-com.fasterxml.jackson.databind.jsonFormatVisitors.JsonValueFormat-">visitIntFormat</a>, <a href="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html#visitStringFormat-com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper-com.fasterxml.jackson.databind.JavaType-">visitStringFormat</a>, <a href="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html#visitStringFormat-com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper-com.fasterxml.jackson.databind.JavaType-com.fasterxml.jackson.databind.jsonFormatVisitors.JsonValueFormat-">visitStringFormat</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> 281</ul> 282<ul class="blockList"> 283<li class="blockList"><a name="methods.inherited.from.class.com.fasterxml.jackson.databind.JsonSerializer"> 284<!-- --> 285</a> 286<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> 287<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#isEmpty-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> 288</ul> 289<ul class="blockList"> 290<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> 291<!-- --> 292</a> 293<h3>Methods inherited from class java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> 294<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li> 295</ul> 296</li> 297</ul> 298</li> 299</ul> 300</div> 301<div class="details"> 302<ul class="blockList"> 303<li class="blockList"> 304<!-- ========= CONSTRUCTOR DETAIL ======== --> 305<ul class="blockList"> 306<li class="blockList"><a name="constructor.detail"> 307<!-- --> 308</a> 309<h3>Constructor Detail</h3> 310<a name="ContainerSerializer-java.lang.Class-"> 311<!-- --> 312</a> 313<ul class="blockList"> 314<li class="blockList"> 315<h4>ContainerSerializer</h4> 316<pre>protected ContainerSerializer(<a href="https://docs.oracle.com/javase/8/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> 317</li> 318</ul> 319<a name="ContainerSerializer-com.fasterxml.jackson.databind.JavaType-"> 320<!-- --> 321</a> 322<ul class="blockList"> 323<li class="blockList"> 324<h4>ContainerSerializer</h4> 325<pre>protected ContainerSerializer(<a href="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a> fullType)</pre> 326<dl> 327<dt><span class="simpleTagLabel">Since:</span></dt> 328<dd>2.5</dd> 329</dl> 330</li> 331</ul> 332<a name="ContainerSerializer-java.lang.Class-boolean-"> 333<!-- --> 334</a> 335<ul class="blockList"> 336<li class="blockList"> 337<h4>ContainerSerializer</h4> 338<pre>protected ContainerSerializer(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> t, 339 boolean dummy)</pre> 340<div class="block">Alternate constructor that is (alas!) needed to work 341 around kinks of generic type handling</div> 342<dl> 343<dt><span class="paramLabel">Parameters:</span></dt> 344<dd><code>t</code> - </dd> 345</dl> 346</li> 347</ul> 348<a name="ContainerSerializer-com.fasterxml.jackson.databind.ser.ContainerSerializer-"> 349<!-- --> 350</a> 351<ul class="blockListLast"> 352<li class="blockList"> 353<h4>ContainerSerializer</h4> 354<pre>protected ContainerSerializer(<a href="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html" title="class in com.fasterxml.jackson.databind.ser">ContainerSerializer</a><?> src)</pre> 355</li> 356</ul> 357</li> 358</ul> 359<!-- ============ METHOD DETAIL ========== --> 360<ul class="blockList"> 361<li class="blockList"><a name="method.detail"> 362<!-- --> 363</a> 364<h3>Method Detail</h3> 365<a name="withValueTypeSerializer-com.fasterxml.jackson.databind.jsontype.TypeSerializer-"> 366<!-- --> 367</a> 368<ul class="blockList"> 369<li class="blockList"> 370<h4>withValueTypeSerializer</h4> 371<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> 372<div class="block">Factory(-like) method that can be used to construct a new container 373 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 374 contained values with additional type information.</div> 375<dl> 376<dt><span class="paramLabel">Parameters:</span></dt> 377<dd><code>vts</code> - Type serializer to use for contained values; can be null, 378 in which case 'this' serializer is returned as is</dd> 379<dt><span class="returnLabel">Returns:</span></dt> 380<dd>Serializer instance that uses given type serializer for values if 381 that is possible (or if not, just 'this' serializer)</dd> 382</dl> 383</li> 384</ul> 385<a name="getContentType--"> 386<!-- --> 387</a> 388<ul class="blockList"> 389<li class="blockList"> 390<h4>getContentType</h4> 391<pre>public abstract <a href="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a> getContentType()</pre> 392<div class="block">Accessor for finding declared (static) element type for 393 type this serializer is used for.</div> 394</li> 395</ul> 396<a name="getContentSerializer--"> 397<!-- --> 398</a> 399<ul class="blockList"> 400<li class="blockList"> 401<h4>getContentSerializer</h4> 402<pre>public abstract <a href="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind">JsonSerializer</a><?> getContentSerializer()</pre> 403<div class="block">Accessor for serializer used for serializing contents 404 (List and array elements, Map values etc) of the 405 container for which this serializer is used, if it is 406 known statically. 407 Note that for dynamic types this may return null; if so, 408 caller has to instead use <a href="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html#getContentType--"><code>getContentType()</code></a> and 409 <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> 410</li> 411</ul> 412<a name="hasSingleElement-java.lang.Object-"> 413<!-- --> 414</a><a name="hasSingleElement-T-"> 415<!-- --> 416</a> 417<ul class="blockList"> 418<li class="blockList"> 419<h4>hasSingleElement</h4> 420<pre>public abstract boolean hasSingleElement(<a href="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html" title="type parameter in ContainerSerializer">T</a> value)</pre> 421<div class="block">Method called to determine if the given value (of type handled by 422 this serializer) contains exactly one element. 423<p> 424 Note: although it might seem sensible to instead define something 425 like "getElementCount()" method, this would not work well for 426 containers that do not keep track of size (like linked lists may 427 not). 428<p> 429 Note, too, that as of now (2.9) this method is only called by serializer 430 itself; and specifically is not used for non-array/collection types 431 like <code>Map</code> or <code>Map.Entry</code> instances.</div> 432</li> 433</ul> 434<a name="Z:Z_withValueTypeSerializer-com.fasterxml.jackson.databind.jsontype.TypeSerializer-"> 435<!-- --> 436</a> 437<ul class="blockList"> 438<li class="blockList"> 439<h4>_withValueTypeSerializer</h4> 440<pre>protected abstract <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> 441<div class="block">Method that needs to be implemented to allow construction of a new 442 serializer object with given <a href="../../../../../com/fasterxml/jackson/databind/jsontype/TypeSerializer.html" title="class in com.fasterxml.jackson.databind.jsontype"><code>TypeSerializer</code></a>, used when 443 addition type information is to be embedded.</div> 444</li> 445</ul> 446<a name="hasContentTypeAnnotation-com.fasterxml.jackson.databind.SerializerProvider-com.fasterxml.jackson.databind.BeanProperty-"> 447<!-- --> 448</a> 449<ul class="blockListLast"> 450<li class="blockList"> 451<h4>hasContentTypeAnnotation</h4> 452<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a> 453protected boolean hasContentTypeAnnotation(<a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html" title="class in com.fasterxml.jackson.databind">SerializerProvider</a> provider, 454 <a href="../../../../../com/fasterxml/jackson/databind/BeanProperty.html" title="interface in com.fasterxml.jackson.databind">BeanProperty</a> property)</pre> 455<div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">Since 2.7: should not be needed; should be enough to see if 456 type has 'isStatic' modifier</span></div> 457<div class="block">Helper method used to encapsulate logic for determining whether there is 458 a property annotation that overrides element type; if so, we can 459 and need to statically find the serializer.</div> 460<dl> 461<dt><span class="simpleTagLabel">Since:</span></dt> 462<dd>2.1</dd> 463</dl> 464</li> 465</ul> 466</li> 467</ul> 468</li> 469</ul> 470</div> 471</div> 472<!-- ========= END OF CLASS DATA ========= --> 473<!-- ======= START OF BOTTOM NAVBAR ====== --> 474<div class="bottomNav"><a name="navbar.bottom"> 475<!-- --> 476</a> 477<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> 478<a name="navbar.bottom.firstrow"> 479<!-- --> 480</a> 481<ul class="navList" title="Navigation"> 482<li><a href="../../../../../overview-summary.html">Overview</a></li> 483<li><a href="package-summary.html">Package</a></li> 484<li class="navBarCell1Rev">Class</li> 485<li><a href="class-use/ContainerSerializer.html">Use</a></li> 486<li><a href="package-tree.html">Tree</a></li> 487<li><a href="../../../../../deprecated-list.html">Deprecated</a></li> 488<li><a href="../../../../../index-all.html">Index</a></li> 489<li><a href="../../../../../help-doc.html">Help</a></li> 490</ul> 491</div> 492<div class="subNav"> 493<ul class="navList"> 494<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> 495<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> 496</ul> 497<ul class="navList"> 498<li><a href="../../../../../index.html?com/fasterxml/jackson/databind/ser/ContainerSerializer.html" target="_top">Frames</a></li> 499<li><a href="ContainerSerializer.html" target="_top">No Frames</a></li> 500</ul> 501<ul class="navList" id="allclasses_navbar_bottom"> 502<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> 503</ul> 504<div> 505<script type="text/javascript"><!-- 506 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 507 if(window==top) { 508 allClassesLink.style.display = "block"; 509 } 510 else { 511 allClassesLink.style.display = "none"; 512 } 513 //--> 514</script> 515</div> 516<div> 517<ul class="subNavList"> 518<li>Summary: </li> 519<li><a href="#nested.classes.inherited.from.class.com.fasterxml.jackson.databind.JsonSerializer">Nested</a> | </li> 520<li><a href="#fields.inherited.from.class.com.fasterxml.jackson.databind.ser.std.StdSerializer">Field</a> | </li> 521<li><a href="#constructor.summary">Constr</a> | </li> 522<li><a href="#method.summary">Method</a></li> 523</ul> 524<ul class="subNavList"> 525<li>Detail: </li> 526<li>Field | </li> 527<li><a href="#constructor.detail">Constr</a> | </li> 528<li><a href="#method.detail">Method</a></li> 529</ul> 530</div> 531<a name="skip.navbar.bottom"> 532<!-- --> 533</a></div> 534<!-- ======== END OF BOTTOM NAVBAR ======= --> 535<p class="legalCopy"><small>Copyright © 2008–2019 <a href="http://fasterxml.com/">FasterXML</a>. All rights reserved.</small></p> 536</body> 537</html> 538