1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2<!-- NewPage --> 3<html lang="en"> 4<head> 5<!-- Generated by javadoc (version 1.7.0_79) on Fri Jan 15 20:28:44 PST 2016 --> 6<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 7<title>JSONWrappedObject (jackson-databind 2.7.0 API)</title> 8<meta name="date" content="2016-01-15"> 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="JSONWrappedObject (jackson-databind 2.7.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/JSONWrappedObject.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/util/JSONPObject.html" title="class in com.fasterxml.jackson.databind.util"><span class="strong">Prev Class</span></a></li> 41<li><a href="../../../../../com/fasterxml/jackson/databind/util/LinkedNode.html" title="class in com.fasterxml.jackson.databind.util"><span class="strong">Next Class</span></a></li> 42</ul> 43<ul class="navList"> 44<li><a href="../../../../../index.html?com/fasterxml/jackson/databind/util/JSONWrappedObject.html" target="_top">Frames</a></li> 45<li><a href="JSONWrappedObject.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>Nested | </li> 66<li><a href="#field_summary">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><a href="#field_detail">Field</a> | </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.util</div> 84<h2 title="Class JSONWrappedObject" class="title">Class JSONWrappedObject</h2> 85</div> 86<div class="contentContainer"> 87<ul class="inheritance"> 88<li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> 89<li> 90<ul class="inheritance"> 91<li>com.fasterxml.jackson.databind.util.JSONWrappedObject</li> 92</ul> 93</li> 94</ul> 95<div class="description"> 96<ul class="blockList"> 97<li class="blockList"> 98<dl> 99<dt>All Implemented Interfaces:</dt> 100<dd><a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.html" title="interface in com.fasterxml.jackson.databind">JsonSerializable</a></dd> 101</dl> 102<hr> 103<br> 104<pre>public class <span class="strong">JSONWrappedObject</span> 105extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> 106implements <a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.html" title="interface in com.fasterxml.jackson.databind">JsonSerializable</a></pre> 107<div class="block">General-purpose wrapper class that can be used to decorate serialized 108 value with arbitrary literal prefix and suffix. This can be used for 109 example to construct arbitrary Javascript values (similar to how basic 110 function name and parenthesis are used with JSONP).</div> 111<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../com/fasterxml/jackson/databind/util/JSONPObject.html" title="class in com.fasterxml.jackson.databind.util"><code>JSONPObject</code></a></dd></dl> 112</li> 113</ul> 114</div> 115<div class="summary"> 116<ul class="blockList"> 117<li class="blockList"> 118<!-- ======== NESTED CLASS SUMMARY ======== --> 119<ul class="blockList"> 120<li class="blockList"><a name="nested_class_summary"> 121<!-- --> 122</a> 123<h3>Nested Class Summary</h3> 124<ul class="blockList"> 125<li class="blockList"><a name="nested_classes_inherited_from_class_com.fasterxml.jackson.databind.JsonSerializable"> 126<!-- --> 127</a> 128<h3>Nested classes/interfaces inherited from interface com.fasterxml.jackson.databind.<a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.html" title="interface in com.fasterxml.jackson.databind">JsonSerializable</a></h3> 129<code><a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.Base.html" title="class in com.fasterxml.jackson.databind">JsonSerializable.Base</a></code></li> 130</ul> 131</li> 132</ul> 133<!-- =========== FIELD SUMMARY =========== --> 134<ul class="blockList"> 135<li class="blockList"><a name="field_summary"> 136<!-- --> 137</a> 138<h3>Field Summary</h3> 139<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> 140<caption><span>Fields</span><span class="tabEnd"> </span></caption> 141<tr> 142<th class="colFirst" scope="col">Modifier and Type</th> 143<th class="colLast" scope="col">Field and Description</th> 144</tr> 145<tr class="altColor"> 146<td class="colFirst"><code>protected <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> 147<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/JSONWrappedObject.html#_prefix">_prefix</a></strong></code> 148<div class="block">Literal String to output before serialized value.</div> 149</td> 150</tr> 151<tr class="rowColor"> 152<td class="colFirst"><code>protected <a href="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a></code></td> 153<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/JSONWrappedObject.html#_serializationType">_serializationType</a></strong></code> 154<div class="block">Optional static type to use for serialization; if null, runtime 155 type is used.</div> 156</td> 157</tr> 158<tr class="altColor"> 159<td class="colFirst"><code>protected <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> 160<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/JSONWrappedObject.html#_suffix">_suffix</a></strong></code> 161<div class="block">Literal String to output after serialized value.</div> 162</td> 163</tr> 164<tr class="rowColor"> 165<td class="colFirst"><code>protected <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td> 166<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/JSONWrappedObject.html#_value">_value</a></strong></code> 167<div class="block">Value to be serialized as JSONP padded; can be null.</div> 168</td> 169</tr> 170</table> 171</li> 172</ul> 173<!-- ======== CONSTRUCTOR SUMMARY ======== --> 174<ul class="blockList"> 175<li class="blockList"><a name="constructor_summary"> 176<!-- --> 177</a> 178<h3>Constructor Summary</h3> 179<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> 180<caption><span>Constructors</span><span class="tabEnd"> </span></caption> 181<tr> 182<th class="colOne" scope="col">Constructor and Description</th> 183</tr> 184<tr class="altColor"> 185<td class="colOne"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/JSONWrappedObject.html#JSONWrappedObject(java.lang.String,%20java.lang.String,%20java.lang.Object)">JSONWrappedObject</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> prefix, 186 <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> suffix, 187 <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value)</code> </td> 188</tr> 189<tr class="rowColor"> 190<td class="colOne"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/JSONWrappedObject.html#JSONWrappedObject(java.lang.String,%20java.lang.String,%20java.lang.Object,%20com.fasterxml.jackson.databind.JavaType)">JSONWrappedObject</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> prefix, 191 <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> suffix, 192 <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value, 193 <a href="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a> asType)</code> 194<div class="block">Constructor that should be used when specific serialization type to use 195 is important, and needs to be passed instead of just using runtime 196 (type-erased) type of the value.</div> 197</td> 198</tr> 199</table> 200</li> 201</ul> 202<!-- ========== METHOD SUMMARY =========== --> 203<ul class="blockList"> 204<li class="blockList"><a name="method_summary"> 205<!-- --> 206</a> 207<h3>Method Summary</h3> 208<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> 209<caption><span>Methods</span><span class="tabEnd"> </span></caption> 210<tr> 211<th class="colFirst" scope="col">Modifier and Type</th> 212<th class="colLast" scope="col">Method and Description</th> 213</tr> 214<tr class="altColor"> 215<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> 216<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/JSONWrappedObject.html#getPrefix()">getPrefix</a></strong>()</code> </td> 217</tr> 218<tr class="rowColor"> 219<td class="colFirst"><code><a href="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a></code></td> 220<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/JSONWrappedObject.html#getSerializationType()">getSerializationType</a></strong>()</code> </td> 221</tr> 222<tr class="altColor"> 223<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> 224<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/JSONWrappedObject.html#getSuffix()">getSuffix</a></strong>()</code> </td> 225</tr> 226<tr class="rowColor"> 227<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td> 228<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/JSONWrappedObject.html#getValue()">getValue</a></strong>()</code> </td> 229</tr> 230<tr class="altColor"> 231<td class="colFirst"><code>void</code></td> 232<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/JSONWrappedObject.html#serialize(com.fasterxml.jackson.core.JsonGenerator,%20com.fasterxml.jackson.databind.SerializerProvider)">serialize</a></strong>(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.7/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator</a> jgen, 233 <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html" title="class in com.fasterxml.jackson.databind">SerializerProvider</a> provider)</code> 234<div class="block">Serialization method called when no additional type information is 235 to be included in serialization.</div> 236</td> 237</tr> 238<tr class="rowColor"> 239<td class="colFirst"><code>void</code></td> 240<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/JSONWrappedObject.html#serializeWithType(com.fasterxml.jackson.core.JsonGenerator,%20com.fasterxml.jackson.databind.SerializerProvider,%20com.fasterxml.jackson.databind.jsontype.TypeSerializer)">serializeWithType</a></strong>(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.7/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator</a> jgen, 241 <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html" title="class in com.fasterxml.jackson.databind">SerializerProvider</a> provider, 242 <a href="../../../../../com/fasterxml/jackson/databind/jsontype/TypeSerializer.html" title="class in com.fasterxml.jackson.databind.jsontype">TypeSerializer</a> typeSer)</code> 243<div class="block">Serialization method called when additional type information is 244 expected to be included in serialization, for deserialization to use.</div> 245</td> 246</tr> 247</table> 248<ul class="blockList"> 249<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> 250<!-- --> 251</a> 252<h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> 253<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait(long,%20int)" title="class or interface in java.lang">wait</a></code></li> 254</ul> 255</li> 256</ul> 257</li> 258</ul> 259</div> 260<div class="details"> 261<ul class="blockList"> 262<li class="blockList"> 263<!-- ============ FIELD DETAIL =========== --> 264<ul class="blockList"> 265<li class="blockList"><a name="field_detail"> 266<!-- --> 267</a> 268<h3>Field Detail</h3> 269<a name="_prefix"> 270<!-- --> 271</a> 272<ul class="blockList"> 273<li class="blockList"> 274<h4>_prefix</h4> 275<pre>protected final <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> _prefix</pre> 276<div class="block">Literal String to output before serialized value. 277 Will not be quoted when serializing value.</div> 278</li> 279</ul> 280<a name="_suffix"> 281<!-- --> 282</a> 283<ul class="blockList"> 284<li class="blockList"> 285<h4>_suffix</h4> 286<pre>protected final <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> _suffix</pre> 287<div class="block">Literal String to output after serialized value. 288 Will not be quoted when serializing value.</div> 289</li> 290</ul> 291<a name="_value"> 292<!-- --> 293</a> 294<ul class="blockList"> 295<li class="blockList"> 296<h4>_value</h4> 297<pre>protected final <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> _value</pre> 298<div class="block">Value to be serialized as JSONP padded; can be null.</div> 299</li> 300</ul> 301<a name="_serializationType"> 302<!-- --> 303</a> 304<ul class="blockListLast"> 305<li class="blockList"> 306<h4>_serializationType</h4> 307<pre>protected final <a href="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a> _serializationType</pre> 308<div class="block">Optional static type to use for serialization; if null, runtime 309 type is used. Can be used to specify declared type which defines 310 serializer to use, as well as aspects of extra type information 311 to include (if any).</div> 312</li> 313</ul> 314</li> 315</ul> 316<!-- ========= CONSTRUCTOR DETAIL ======== --> 317<ul class="blockList"> 318<li class="blockList"><a name="constructor_detail"> 319<!-- --> 320</a> 321<h3>Constructor Detail</h3> 322<a name="JSONWrappedObject(java.lang.String, java.lang.String, java.lang.Object)"> 323<!-- --> 324</a> 325<ul class="blockList"> 326<li class="blockList"> 327<h4>JSONWrappedObject</h4> 328<pre>public JSONWrappedObject(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> prefix, 329 <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> suffix, 330 <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value)</pre> 331</li> 332</ul> 333<a name="JSONWrappedObject(java.lang.String, java.lang.String, java.lang.Object, com.fasterxml.jackson.databind.JavaType)"> 334<!-- --> 335</a> 336<ul class="blockListLast"> 337<li class="blockList"> 338<h4>JSONWrappedObject</h4> 339<pre>public JSONWrappedObject(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> prefix, 340 <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> suffix, 341 <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> value, 342 <a href="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a> asType)</pre> 343<div class="block">Constructor that should be used when specific serialization type to use 344 is important, and needs to be passed instead of just using runtime 345 (type-erased) type of the value.</div> 346</li> 347</ul> 348</li> 349</ul> 350<!-- ============ METHOD DETAIL ========== --> 351<ul class="blockList"> 352<li class="blockList"><a name="method_detail"> 353<!-- --> 354</a> 355<h3>Method Detail</h3> 356<a name="serializeWithType(com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.SerializerProvider, com.fasterxml.jackson.databind.jsontype.TypeSerializer)"> 357<!-- --> 358</a> 359<ul class="blockList"> 360<li class="blockList"> 361<h4>serializeWithType</h4> 362<pre>public void serializeWithType(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.7/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator</a> jgen, 363 <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html" title="class in com.fasterxml.jackson.databind">SerializerProvider</a> provider, 364 <a href="../../../../../com/fasterxml/jackson/databind/jsontype/TypeSerializer.html" title="class in com.fasterxml.jackson.databind.jsontype">TypeSerializer</a> typeSer) 365 throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>, 366 <a href="http://fasterxml.github.com/jackson-core/javadoc/2.7/com/fasterxml/jackson/core/JsonProcessingException.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonProcessingException</a></pre> 367<div class="block"><strong>Description copied from interface: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.html#serializeWithType(com.fasterxml.jackson.core.JsonGenerator,%20com.fasterxml.jackson.databind.SerializerProvider,%20com.fasterxml.jackson.databind.jsontype.TypeSerializer)">JsonSerializable</a></code></strong></div> 368<div class="block">Serialization method called when additional type information is 369 expected to be included in serialization, for deserialization to use. 370<p> 371 Usually implementation consists of a call to one of methods 372 in <a href="../../../../../com/fasterxml/jackson/databind/jsontype/TypeSerializer.html" title="class in com.fasterxml.jackson.databind.jsontype"><code>TypeSerializer</code></a> (such as <a href="../../../../../com/fasterxml/jackson/databind/jsontype/TypeSerializer.html#writeTypePrefixForObject(java.lang.Object,%20com.fasterxml.jackson.core.JsonGenerator)"><code>TypeSerializer.writeTypePrefixForObject(Object, JsonGenerator)</code></a>) 373 followed by serialization of contents, 374 followed by another call to <a href="../../../../../com/fasterxml/jackson/databind/jsontype/TypeSerializer.html" title="class in com.fasterxml.jackson.databind.jsontype"><code>TypeSerializer</code></a> 375 (such as <a href="../../../../../com/fasterxml/jackson/databind/jsontype/TypeSerializer.html#writeTypeSuffixForObject(java.lang.Object,%20com.fasterxml.jackson.core.JsonGenerator)"><code>TypeSerializer.writeTypeSuffixForObject(Object, JsonGenerator)</code></a>). 376 Exact methods to call in <a href="../../../../../com/fasterxml/jackson/databind/jsontype/TypeSerializer.html" title="class in com.fasterxml.jackson.databind.jsontype"><code>TypeSerializer</code></a> depend on shape of JSON Object used 377 (Array, Object or scalar like String/Number/Boolean). 378<p> 379 Note that some types (most notably, "natural" types: String, Integer, 380 Double and Boolean) never include type information.</div> 381<dl> 382<dt><strong>Specified by:</strong></dt> 383<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.html#serializeWithType(com.fasterxml.jackson.core.JsonGenerator,%20com.fasterxml.jackson.databind.SerializerProvider,%20com.fasterxml.jackson.databind.jsontype.TypeSerializer)">serializeWithType</a></code> in interface <code><a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.html" title="interface in com.fasterxml.jackson.databind">JsonSerializable</a></code></dd> 384<dt><span class="strong">Throws:</span></dt> 385<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> 386<dd><code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.7/com/fasterxml/jackson/core/JsonProcessingException.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonProcessingException</a></code></dd></dl> 387</li> 388</ul> 389<a name="serialize(com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.SerializerProvider)"> 390<!-- --> 391</a> 392<ul class="blockList"> 393<li class="blockList"> 394<h4>serialize</h4> 395<pre>public void serialize(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.7/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator</a> jgen, 396 <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html" title="class in com.fasterxml.jackson.databind">SerializerProvider</a> provider) 397 throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>, 398 <a href="http://fasterxml.github.com/jackson-core/javadoc/2.7/com/fasterxml/jackson/core/JsonProcessingException.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonProcessingException</a></pre> 399<div class="block"><strong>Description copied from interface: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.html#serialize(com.fasterxml.jackson.core.JsonGenerator,%20com.fasterxml.jackson.databind.SerializerProvider)">JsonSerializable</a></code></strong></div> 400<div class="block">Serialization method called when no additional type information is 401 to be included in serialization.</div> 402<dl> 403<dt><strong>Specified by:</strong></dt> 404<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.html#serialize(com.fasterxml.jackson.core.JsonGenerator,%20com.fasterxml.jackson.databind.SerializerProvider)">serialize</a></code> in interface <code><a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.html" title="interface in com.fasterxml.jackson.databind">JsonSerializable</a></code></dd> 405<dt><span class="strong">Throws:</span></dt> 406<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> 407<dd><code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.7/com/fasterxml/jackson/core/JsonProcessingException.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonProcessingException</a></code></dd></dl> 408</li> 409</ul> 410<a name="getPrefix()"> 411<!-- --> 412</a> 413<ul class="blockList"> 414<li class="blockList"> 415<h4>getPrefix</h4> 416<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> getPrefix()</pre> 417</li> 418</ul> 419<a name="getSuffix()"> 420<!-- --> 421</a> 422<ul class="blockList"> 423<li class="blockList"> 424<h4>getSuffix</h4> 425<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> getSuffix()</pre> 426</li> 427</ul> 428<a name="getValue()"> 429<!-- --> 430</a> 431<ul class="blockList"> 432<li class="blockList"> 433<h4>getValue</h4> 434<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> getValue()</pre> 435</li> 436</ul> 437<a name="getSerializationType()"> 438<!-- --> 439</a> 440<ul class="blockListLast"> 441<li class="blockList"> 442<h4>getSerializationType</h4> 443<pre>public <a href="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a> getSerializationType()</pre> 444</li> 445</ul> 446</li> 447</ul> 448</li> 449</ul> 450</div> 451</div> 452<!-- ========= END OF CLASS DATA ========= --> 453<!-- ======= START OF BOTTOM NAVBAR ====== --> 454<div class="bottomNav"><a name="navbar_bottom"> 455<!-- --> 456</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> 457<!-- --> 458</a> 459<ul class="navList" title="Navigation"> 460<li><a href="../../../../../overview-summary.html">Overview</a></li> 461<li><a href="package-summary.html">Package</a></li> 462<li class="navBarCell1Rev">Class</li> 463<li><a href="class-use/JSONWrappedObject.html">Use</a></li> 464<li><a href="package-tree.html">Tree</a></li> 465<li><a href="../../../../../deprecated-list.html">Deprecated</a></li> 466<li><a href="../../../../../index-all.html">Index</a></li> 467<li><a href="../../../../../help-doc.html">Help</a></li> 468</ul> 469</div> 470<div class="subNav"> 471<ul class="navList"> 472<li><a href="../../../../../com/fasterxml/jackson/databind/util/JSONPObject.html" title="class in com.fasterxml.jackson.databind.util"><span class="strong">Prev Class</span></a></li> 473<li><a href="../../../../../com/fasterxml/jackson/databind/util/LinkedNode.html" title="class in com.fasterxml.jackson.databind.util"><span class="strong">Next Class</span></a></li> 474</ul> 475<ul class="navList"> 476<li><a href="../../../../../index.html?com/fasterxml/jackson/databind/util/JSONWrappedObject.html" target="_top">Frames</a></li> 477<li><a href="JSONWrappedObject.html" target="_top">No Frames</a></li> 478</ul> 479<ul class="navList" id="allclasses_navbar_bottom"> 480<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> 481</ul> 482<div> 483<script type="text/javascript"><!-- 484 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 485 if(window==top) { 486 allClassesLink.style.display = "block"; 487 } 488 else { 489 allClassesLink.style.display = "none"; 490 } 491 //--> 492</script> 493</div> 494<div> 495<ul class="subNavList"> 496<li>Summary: </li> 497<li>Nested | </li> 498<li><a href="#field_summary">Field</a> | </li> 499<li><a href="#constructor_summary">Constr</a> | </li> 500<li><a href="#method_summary">Method</a></li> 501</ul> 502<ul class="subNavList"> 503<li>Detail: </li> 504<li><a href="#field_detail">Field</a> | </li> 505<li><a href="#constructor_detail">Constr</a> | </li> 506<li><a href="#method_detail">Method</a></li> 507</ul> 508</div> 509<a name="skip-navbar_bottom"> 510<!-- --> 511</a></div> 512<!-- ======== END OF BOTTOM NAVBAR ======= --> 513<p class="legalCopy"><small>Copyright © 2008–2016 <a href="http://fasterxml.com/">FasterXML</a>. All rights reserved.</small></p> 514</body> 515</html> 516