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