• 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 (version 1.7.0_25) on Thu Jan 01 17:43:55 PST 2015 -->
6<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
7<title>SerializationFeature (jackson-databind 2.5.0 API)</title>
8<meta name="date" content="2015-01-01">
9<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
10</head>
11<body>
12<script type="text/javascript"><!--
13    if (location.href.indexOf('is-external=true') == -1) {
14        parent.document.title="SerializationFeature (jackson-databind 2.5.0 API)";
15    }
16//-->
17</script>
18<noscript>
19<div>JavaScript is disabled on your browser.</div>
20</noscript>
21<!-- ========= START OF TOP NAVBAR ======= -->
22<div class="topNav"><a name="navbar_top">
23<!--   -->
24</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
25<!--   -->
26</a>
27<ul class="navList" title="Navigation">
28<li><a href="../../../../overview-summary.html">Overview</a></li>
29<li><a href="package-summary.html">Package</a></li>
30<li class="navBarCell1Rev">Class</li>
31<li><a href="class-use/SerializationFeature.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/SerializationConfig.html" title="class in com.fasterxml.jackson.databind"><span class="strong">Prev Class</span></a></li>
41<li><a href="../../../../com/fasterxml/jackson/databind/SerializerProvider.html" title="class in com.fasterxml.jackson.databind"><span class="strong">Next Class</span></a></li>
42</ul>
43<ul class="navList">
44<li><a href="../../../../index.html?com/fasterxml/jackson/databind/SerializationFeature.html" target="_top">Frames</a></li>
45<li><a href="SerializationFeature.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:&nbsp;</li>
65<li>Nested&nbsp;|&nbsp;</li>
66<li><a href="#enum_constant_summary">Enum Constants</a>&nbsp;|&nbsp;</li>
67<li>Field&nbsp;|&nbsp;</li>
68<li><a href="#method_summary">Method</a></li>
69</ul>
70<ul class="subNavList">
71<li>Detail:&nbsp;</li>
72<li><a href="#enum_constant_detail">Enum Constants</a>&nbsp;|&nbsp;</li>
73<li>Field&nbsp;|&nbsp;</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</div>
84<h2 title="Enum SerializationFeature" class="title">Enum SerializationFeature</h2>
85</div>
86<div class="contentContainer">
87<ul class="inheritance">
88<li><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
89<li>
90<ul class="inheritance">
91<li><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">java.lang.Enum</a>&lt;<a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</a>&gt;</li>
92<li>
93<ul class="inheritance">
94<li>com.fasterxml.jackson.databind.SerializationFeature</li>
95</ul>
96</li>
97</ul>
98</li>
99</ul>
100<div class="description">
101<ul class="blockList">
102<li class="blockList">
103<dl>
104<dt>All Implemented Interfaces:</dt>
105<dd><a href="../../../../com/fasterxml/jackson/databind/cfg/ConfigFeature.html" title="interface in com.fasterxml.jackson.databind.cfg">ConfigFeature</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a>&lt;<a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</a>&gt;</dd>
106</dl>
107<hr>
108<br>
109<pre>public enum <span class="strong">SerializationFeature</span>
110extends <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a>&lt;<a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</a>&gt;
111implements <a href="../../../../com/fasterxml/jackson/databind/cfg/ConfigFeature.html" title="interface in com.fasterxml.jackson.databind.cfg">ConfigFeature</a></pre>
112<div class="block">Enumeration that defines simple on/off features that affect
113 the way Java objects are serialized.
114<p>
115 Note that features can be set both through
116 <a href="../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind"><code>ObjectMapper</code></a> (as sort of defaults) and through
117 <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind"><code>ObjectWriter</code></a>.
118 In first case these defaults must follow "config-then-use" patterns
119 (i.e. defined once, not changed afterwards); all per-call
120 changes must be done using <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind"><code>ObjectWriter</code></a>.</div>
121</li>
122</ul>
123</div>
124<div class="summary">
125<ul class="blockList">
126<li class="blockList">
127<!-- =========== ENUM CONSTANT SUMMARY =========== -->
128<ul class="blockList">
129<li class="blockList"><a name="enum_constant_summary">
130<!--   -->
131</a>
132<h3>Enum Constant Summary</h3>
133<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Enum Constant Summary table, listing enum constants, and an explanation">
134<caption><span>Enum Constants</span><span class="tabEnd">&nbsp;</span></caption>
135<tr>
136<th class="colOne" scope="col">Enum Constant and Description</th>
137</tr>
138<tr class="altColor">
139<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#CLOSE_CLOSEABLE">CLOSE_CLOSEABLE</a></strong></code>
140<div class="block">Feature that determines whether <code>close</code> method of
141 serialized <b>root level</b> objects (ones for which <code>ObjectMapper</code>'s
142 writeValue() (or equivalent) method is called)
143 that implement <a href="http://docs.oracle.com/javase/6/docs/api/java/io/Closeable.html?is-external=true" title="class or interface in java.io"><code>Closeable</code></a>
144 is called after serialization or not.</div>
145</td>
146</tr>
147<tr class="rowColor">
148<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#EAGER_SERIALIZER_FETCH">EAGER_SERIALIZER_FETCH</a></strong></code>
149<div class="block">Feature that determines whether <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind"><code>ObjectWriter</code></a> should
150 try to eagerly fetch necessary <a href="../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind"><code>JsonSerializer</code></a> when
151 possible.</div>
152</td>
153</tr>
154<tr class="altColor">
155<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#FAIL_ON_EMPTY_BEANS">FAIL_ON_EMPTY_BEANS</a></strong></code>
156<div class="block">Feature that determines what happens when no accessors are
157 found for a type (and there are no annotations to indicate
158 it is meant to be serialized).</div>
159</td>
160</tr>
161<tr class="rowColor">
162<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#FAIL_ON_SELF_REFERENCES">FAIL_ON_SELF_REFERENCES</a></strong></code>
163<div class="block">Feature that determines what happens when a direct self-reference
164 is detected by a POJO (and no Object Id handling is enabled for it):
165 either a <a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind"><code>JsonMappingException</code></a> is
166 thrown (if true), or reference is normally processed (false).</div>
167</td>
168</tr>
169<tr class="altColor">
170<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#FAIL_ON_UNWRAPPED_TYPE_IDENTIFIERS">FAIL_ON_UNWRAPPED_TYPE_IDENTIFIERS</a></strong></code>
171<div class="block">Feature that determines what happens when an object which
172 normally has type information included by Jackson is used
173 in conjunction with <code>JsonUnwrapped</code>.</div>
174</td>
175</tr>
176<tr class="rowColor">
177<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#FLUSH_AFTER_WRITE_VALUE">FLUSH_AFTER_WRITE_VALUE</a></strong></code>
178<div class="block">Feature that determines whether <code>JsonGenerator.flush()</code> is
179 called after <code>writeValue()</code> method <b>that takes JsonGenerator
180 as an argument</b> completes (i.e.</div>
181</td>
182</tr>
183<tr class="altColor">
184<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#INDENT_OUTPUT">INDENT_OUTPUT</a></strong></code>
185<div class="block">Feature that allows enabling (or disabling) indentation
186 for the underlying generator, using the default pretty
187 printer (see
188 <code>JsonGenerator.useDefaultPrettyPrinter()</code>
189 for details).</div>
190</td>
191</tr>
192<tr class="rowColor">
193<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#ORDER_MAP_ENTRIES_BY_KEYS">ORDER_MAP_ENTRIES_BY_KEYS</a></strong></code>
194<div class="block">Feature that determines whether <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util"><code>Map</code></a> entries are first
195 sorted by key before serialization or not: if enabled, additional sorting
196 step is performed if necessary (not necessary for <a href="http://docs.oracle.com/javase/6/docs/api/java/util/SortedMap.html?is-external=true" title="class or interface in java.util"><code>SortedMap</code></a>s),
197 if disabled, no additional sorting is needed.</div>
198</td>
199</tr>
200<tr class="altColor">
201<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#USE_EQUALITY_FOR_OBJECT_ID">USE_EQUALITY_FOR_OBJECT_ID</a></strong></code>
202<div class="block">Feature that determines whether Object Identity is compared using
203 true JVM-level identity of Object (false); or, <code>equals()</code> method.</div>
204</td>
205</tr>
206<tr class="rowColor">
207<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#WRAP_EXCEPTIONS">WRAP_EXCEPTIONS</a></strong></code>
208<div class="block">Feature that determines whether Jackson code should catch
209 and wrap <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang"><code>Exception</code></a>s (but never <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Error.html?is-external=true" title="class or interface in java.lang"><code>Error</code></a>s!)
210 to add additional information about
211 location (within input) of problem or not.</div>
212</td>
213</tr>
214<tr class="altColor">
215<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#WRAP_ROOT_VALUE">WRAP_ROOT_VALUE</a></strong></code>
216<div class="block">Feature that can be enabled to make root value (usually JSON
217 Object but can be any type) wrapped within a single property
218 JSON object, where key as the "root name", as determined by
219 annotation introspector (esp.</div>
220</td>
221</tr>
222<tr class="rowColor">
223<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#WRITE_BIGDECIMAL_AS_PLAIN">WRITE_BIGDECIMAL_AS_PLAIN</a></strong></code>
224<div class="block"><strong>Deprecated.</strong>&nbsp;
225<div class="block"><i>Since 2.5: use <code>JsonGenerator.Feature.WRITE_BIGDECIMAL_AS_PLAIN</code> directly
226    (using <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#with(com.fasterxml.jackson.core.JsonGenerator.Feature)"><code>ObjectWriter.with(com.fasterxml.jackson.core.JsonGenerator.Feature)</code></a>).</i></div>
227</div>
228</td>
229</tr>
230<tr class="altColor">
231<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#WRITE_CHAR_ARRAYS_AS_JSON_ARRAYS">WRITE_CHAR_ARRAYS_AS_JSON_ARRAYS</a></strong></code>
232<div class="block">Feature that determines how type <code>char[]</code> is serialized:
233 when enabled, will be serialized as an explict JSON array (with
234 single-character Strings as values); when disabled, defaults to
235 serializing them as Strings (which is more compact).</div>
236</td>
237</tr>
238<tr class="rowColor">
239<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#WRITE_DATE_KEYS_AS_TIMESTAMPS">WRITE_DATE_KEYS_AS_TIMESTAMPS</a></strong></code>
240<div class="block">Feature that determines whether <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Date.html?is-external=true" title="class or interface in java.util"><code>Date</code></a>s
241 (and sub-types) used as <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util"><code>Map</code></a> keys are serialized
242 as timestamps or not (if not, will be serialized as textual
243 values).</div>
244</td>
245</tr>
246<tr class="altColor">
247<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#WRITE_DATE_TIMESTAMPS_AS_NANOSECONDS">WRITE_DATE_TIMESTAMPS_AS_NANOSECONDS</a></strong></code>
248<div class="block">Feature that controls whether numeric timestamp values are
249 to be written using nanosecond timestamps (enabled) or not (disabled);
250 <b>if and only if</b> datatype supports such resolution.</div>
251</td>
252</tr>
253<tr class="rowColor">
254<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#WRITE_DATES_AS_TIMESTAMPS">WRITE_DATES_AS_TIMESTAMPS</a></strong></code>
255<div class="block">Feature that determines whether <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Date.html?is-external=true" title="class or interface in java.util"><code>Date</code></a> values
256 (and Date-based things like <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Calendar.html?is-external=true" title="class or interface in java.util"><code>Calendar</code></a>s) are to be
257 serialized as numeric timestamps (true; the default),
258 or as something else (usually textual representation).</div>
259</td>
260</tr>
261<tr class="altColor">
262<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#WRITE_DURATIONS_AS_TIMESTAMPS">WRITE_DURATIONS_AS_TIMESTAMPS</a></strong></code>
263<div class="block">Feature that determines whether time values that represents time periods
264 (durations, periods, ranges) are to be serialized by default using
265 a numeric (true) or textual (false) representations.</div>
266</td>
267</tr>
268<tr class="rowColor">
269<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#WRITE_EMPTY_JSON_ARRAYS">WRITE_EMPTY_JSON_ARRAYS</a></strong></code>
270<div class="block">Feature that determines whether Container properties (POJO properties
271 with declared value of Collection or array; i.e.</div>
272</td>
273</tr>
274<tr class="altColor">
275<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#WRITE_ENUMS_USING_INDEX">WRITE_ENUMS_USING_INDEX</a></strong></code>
276<div class="block">Feature that determines whethere Java Enum values are serialized
277 as numbers (true), or textual values (false).</div>
278</td>
279</tr>
280<tr class="rowColor">
281<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#WRITE_ENUMS_USING_TO_STRING">WRITE_ENUMS_USING_TO_STRING</a></strong></code>
282<div class="block">Feature that determines standard serialization mechanism used for
283 Enum values: if enabled, return value of <code>Enum.toString()</code>
284 is used; if disabled, return value of <code>Enum.name()</code> is used.</div>
285</td>
286</tr>
287<tr class="altColor">
288<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#WRITE_NULL_MAP_VALUES">WRITE_NULL_MAP_VALUES</a></strong></code>
289<div class="block">Feature that determines whether Map entries with null values are
290 to be serialized (true) or not (false).</div>
291</td>
292</tr>
293<tr class="rowColor">
294<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#WRITE_SINGLE_ELEM_ARRAYS_UNWRAPPED">WRITE_SINGLE_ELEM_ARRAYS_UNWRAPPED</a></strong></code>
295<div class="block">Feature added for interoperability, to work with oddities of
296 so-called "BadgerFish" convention.</div>
297</td>
298</tr>
299</table>
300</li>
301</ul>
302<!-- ========== METHOD SUMMARY =========== -->
303<ul class="blockList">
304<li class="blockList"><a name="method_summary">
305<!--   -->
306</a>
307<h3>Method Summary</h3>
308<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
309<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
310<tr>
311<th class="colFirst" scope="col">Modifier and Type</th>
312<th class="colLast" scope="col">Method and Description</th>
313</tr>
314<tr class="altColor">
315<td class="colFirst"><code>boolean</code></td>
316<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#enabledByDefault()">enabledByDefault</a></strong>()</code>
317<div class="block">Accessor for checking whether this feature is enabled by default.</div>
318</td>
319</tr>
320<tr class="rowColor">
321<td class="colFirst"><code>boolean</code></td>
322<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#enabledIn(int)">enabledIn</a></strong>(int&nbsp;flags)</code>&nbsp;</td>
323</tr>
324<tr class="altColor">
325<td class="colFirst"><code>int</code></td>
326<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#getMask()">getMask</a></strong>()</code>
327<div class="block">Returns bit mask for this feature instance</div>
328</td>
329</tr>
330<tr class="rowColor">
331<td class="colFirst"><code>static <a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</a></code></td>
332<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#valueOf(java.lang.String)">valueOf</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;name)</code>
333<div class="block">Returns the enum constant of this type with the specified name.</div>
334</td>
335</tr>
336<tr class="altColor">
337<td class="colFirst"><code>static <a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</a>[]</code></td>
338<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#values()">values</a></strong>()</code>
339<div class="block">Returns an array containing the constants of this enum type, in
340the order they are declared.</div>
341</td>
342</tr>
343</table>
344<ul class="blockList">
345<li class="blockList"><a name="methods_inherited_from_class_java.lang.Enum">
346<!--   -->
347</a>
348<h3>Methods inherited from class&nbsp;java.lang.<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a></h3>
349<code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true#compareTo(E)" title="class or interface in java.lang">compareTo</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true#getDeclaringClass()" title="class or interface in java.lang">getDeclaringClass</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true#name()" title="class or interface in java.lang">name</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true#ordinal()" title="class or interface in java.lang">ordinal</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true#valueOf(java.lang.Class, java.lang.String)" title="class or interface in java.lang">valueOf</a></code></li>
350</ul>
351<ul class="blockList">
352<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
353<!--   -->
354</a>
355<h3>Methods inherited from class&nbsp;java.lang.<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
356<code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</a></code></li>
357</ul>
358</li>
359</ul>
360</li>
361</ul>
362</div>
363<div class="details">
364<ul class="blockList">
365<li class="blockList">
366<!-- ============ ENUM CONSTANT DETAIL =========== -->
367<ul class="blockList">
368<li class="blockList"><a name="enum_constant_detail">
369<!--   -->
370</a>
371<h3>Enum Constant Detail</h3>
372<a name="WRAP_ROOT_VALUE">
373<!--   -->
374</a>
375<ul class="blockList">
376<li class="blockList">
377<h4>WRAP_ROOT_VALUE</h4>
378<pre>public static final&nbsp;<a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</a> WRAP_ROOT_VALUE</pre>
379<div class="block">Feature that can be enabled to make root value (usually JSON
380 Object but can be any type) wrapped within a single property
381 JSON object, where key as the "root name", as determined by
382 annotation introspector (esp. for JAXB that uses
383 <code>@XmlRootElement.name</code>) or fallback (non-qualified
384 class name).
385 Feature is mostly intended for JAXB compatibility.
386<p>
387 Feature is disabled by default.</div>
388</li>
389</ul>
390<a name="INDENT_OUTPUT">
391<!--   -->
392</a>
393<ul class="blockList">
394<li class="blockList">
395<h4>INDENT_OUTPUT</h4>
396<pre>public static final&nbsp;<a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</a> INDENT_OUTPUT</pre>
397<div class="block">Feature that allows enabling (or disabling) indentation
398 for the underlying generator, using the default pretty
399 printer (see
400 <code>JsonGenerator.useDefaultPrettyPrinter()</code>
401 for details).
402<p>
403 Note that this only affects cases where
404 <code>JsonGenerator</code>
405 is constructed implicitly by ObjectMapper: if explicit
406 generator is passed, its configuration is not changed.
407<p>
408 Also note that if you want to configure details of indentation,
409 you need to directly configure the generator: there is a
410 method to use any <code>PrettyPrinter</code> instance.
411 This feature will only allow using the default implementation.
412<p>
413 Feature is disabled by default.</div>
414</li>
415</ul>
416<a name="FAIL_ON_EMPTY_BEANS">
417<!--   -->
418</a>
419<ul class="blockList">
420<li class="blockList">
421<h4>FAIL_ON_EMPTY_BEANS</h4>
422<pre>public static final&nbsp;<a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</a> FAIL_ON_EMPTY_BEANS</pre>
423<div class="block">Feature that determines what happens when no accessors are
424 found for a type (and there are no annotations to indicate
425 it is meant to be serialized). If enabled (default), an
426 exception is thrown to indicate these as non-serializable
427 types; if disabled, they are serialized as empty Objects,
428 i.e. without any properties.
429<p>
430 Note that empty types that this feature has only effect on
431 those "empty" beans that do not have any recognized annotations
432 (like <code>@JsonSerialize</code>): ones that do have annotations
433 do not result in an exception being thrown.
434<p>
435 Feature is enabled by default.</div>
436</li>
437</ul>
438<a name="FAIL_ON_SELF_REFERENCES">
439<!--   -->
440</a>
441<ul class="blockList">
442<li class="blockList">
443<h4>FAIL_ON_SELF_REFERENCES</h4>
444<pre>public static final&nbsp;<a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</a> FAIL_ON_SELF_REFERENCES</pre>
445<div class="block">Feature that determines what happens when a direct self-reference
446 is detected by a POJO (and no Object Id handling is enabled for it):
447 either a <a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.html" title="class in com.fasterxml.jackson.databind"><code>JsonMappingException</code></a> is
448 thrown (if true), or reference is normally processed (false).
449<p>
450 Feature is enabled by default.</div>
451<dl><dt><span class="strong">Since:</span></dt>
452  <dd>2.4</dd></dl>
453</li>
454</ul>
455<a name="WRAP_EXCEPTIONS">
456<!--   -->
457</a>
458<ul class="blockList">
459<li class="blockList">
460<h4>WRAP_EXCEPTIONS</h4>
461<pre>public static final&nbsp;<a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</a> WRAP_EXCEPTIONS</pre>
462<div class="block">Feature that determines whether Jackson code should catch
463 and wrap <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang"><code>Exception</code></a>s (but never <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Error.html?is-external=true" title="class or interface in java.lang"><code>Error</code></a>s!)
464 to add additional information about
465 location (within input) of problem or not. If enabled,
466 most exceptions will be caught and re-thrown (exception
467 specifically being that <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io"><code>IOException</code></a>s may be passed
468 as is, since they are declared as throwable); this can be
469 convenient both in that all exceptions will be checked and
470 declared, and so there is more contextual information.
471 However, sometimes calling application may just want "raw"
472 unchecked exceptions passed as is.
473<p>
474<p>
475 Feature is enabled by default.</div>
476</li>
477</ul>
478<a name="FAIL_ON_UNWRAPPED_TYPE_IDENTIFIERS">
479<!--   -->
480</a>
481<ul class="blockList">
482<li class="blockList">
483<h4>FAIL_ON_UNWRAPPED_TYPE_IDENTIFIERS</h4>
484<pre>public static final&nbsp;<a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</a> FAIL_ON_UNWRAPPED_TYPE_IDENTIFIERS</pre>
485<div class="block">Feature that determines what happens when an object which
486 normally has type information included by Jackson is used
487 in conjunction with <code>JsonUnwrapped</code>.
488 In the default (enabled) state, an error will be thrown when
489 an unwrapped object has type information. When disabled, the
490 object will be unwrapped and the type information discarded.
491<p>
492 Feature is enabled by default.</div>
493<dl><dt><span class="strong">Since:</span></dt>
494  <dd>2.4</dd></dl>
495</li>
496</ul>
497<a name="CLOSE_CLOSEABLE">
498<!--   -->
499</a>
500<ul class="blockList">
501<li class="blockList">
502<h4>CLOSE_CLOSEABLE</h4>
503<pre>public static final&nbsp;<a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</a> CLOSE_CLOSEABLE</pre>
504<div class="block">Feature that determines whether <code>close</code> method of
505 serialized <b>root level</b> objects (ones for which <code>ObjectMapper</code>'s
506 writeValue() (or equivalent) method is called)
507 that implement <a href="http://docs.oracle.com/javase/6/docs/api/java/io/Closeable.html?is-external=true" title="class or interface in java.io"><code>Closeable</code></a>
508 is called after serialization or not. If enabled, <b>close()</b> will
509 be called after serialization completes (whether succesfully, or
510 due to an error manifested by an exception being thrown). You can
511 think of this as sort of "finally" processing.
512<p>
513 NOTE: only affects behavior with <b>root</b> objects, and not other
514 objects reachable from the root object. Put another way, only one
515 call will be made for each 'writeValue' call.
516<p>
517 Feature is disabled by default.</div>
518</li>
519</ul>
520<a name="FLUSH_AFTER_WRITE_VALUE">
521<!--   -->
522</a>
523<ul class="blockList">
524<li class="blockList">
525<h4>FLUSH_AFTER_WRITE_VALUE</h4>
526<pre>public static final&nbsp;<a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</a> FLUSH_AFTER_WRITE_VALUE</pre>
527<div class="block">Feature that determines whether <code>JsonGenerator.flush()</code> is
528 called after <code>writeValue()</code> method <b>that takes JsonGenerator
529 as an argument</b> completes (i.e. does NOT affect methods
530 that use other destinations); same for methods in <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind"><code>ObjectWriter</code></a>.
531 This usually makes sense; but there are cases where flushing
532 should not be forced: for example when underlying stream is
533 compressing and flush() causes compression state to be flushed
534 (which occurs with some compression codecs).
535<p>
536 Feature is enabled by default.</div>
537</li>
538</ul>
539<a name="WRITE_DATES_AS_TIMESTAMPS">
540<!--   -->
541</a>
542<ul class="blockList">
543<li class="blockList">
544<h4>WRITE_DATES_AS_TIMESTAMPS</h4>
545<pre>public static final&nbsp;<a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</a> WRITE_DATES_AS_TIMESTAMPS</pre>
546<div class="block">Feature that determines whether <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Date.html?is-external=true" title="class or interface in java.util"><code>Date</code></a> values
547 (and Date-based things like <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Calendar.html?is-external=true" title="class or interface in java.util"><code>Calendar</code></a>s) are to be
548 serialized as numeric timestamps (true; the default),
549 or as something else (usually textual representation).
550 If textual representation is used, the actual format is
551 one returned by a call to
552 <a href="../../../../com/fasterxml/jackson/databind/cfg/MapperConfig.html#getDateFormat()"><code>MapperConfig.getDateFormat()</code></a>:
553 the default setting being <a href="../../../../com/fasterxml/jackson/databind/util/StdDateFormat.html" title="class in com.fasterxml.jackson.databind.util"><code>StdDateFormat</code></a>,
554 which corresponds to format String of "yyyy-MM-dd'T'HH:mm:ss.SSSZ"
555 (see <a href="http://docs.oracle.com/javase/6/docs/api/java/text/DateFormat.html?is-external=true" title="class or interface in java.text"><code>DateFormat</code></a> for details of format Strings).
556<p>
557 Note: whether this feature affects handling of other date-related
558 types depend on handlers of those types, although ideally they
559 should use this feature
560<p>
561 Note: whether <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util"><code>Map</code></a> keys are serialized as Strings
562 or not is controlled using <a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#WRITE_DATE_KEYS_AS_TIMESTAMPS"><code>WRITE_DATE_KEYS_AS_TIMESTAMPS</code></a>.
563<p>
564 Feature is enabled by default, so that date/time are by default
565 serialized as timestamps.</div>
566</li>
567</ul>
568<a name="WRITE_DURATIONS_AS_TIMESTAMPS">
569<!--   -->
570</a>
571<ul class="blockList">
572<li class="blockList">
573<h4>WRITE_DURATIONS_AS_TIMESTAMPS</h4>
574<pre>public static final&nbsp;<a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</a> WRITE_DURATIONS_AS_TIMESTAMPS</pre>
575<div class="block">Feature that determines whether time values that represents time periods
576 (durations, periods, ranges) are to be serialized by default using
577 a numeric (true) or textual (false) representations. Note that numeric
578 representation may mean either simple number, or an array of numbers,
579 depending on type.
580<p>
581 Note: whether <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util"><code>Map</code></a> keys are serialized as Strings
582 or not is controlled using <a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#WRITE_DATE_KEYS_AS_TIMESTAMPS"><code>WRITE_DATE_KEYS_AS_TIMESTAMPS</code></a>.
583<p>
584 Feature is enabled by default, so that period/duration are by default
585 serialized as timestamps.</div>
586<dl><dt><span class="strong">Since:</span></dt>
587  <dd>2.5</dd></dl>
588</li>
589</ul>
590<a name="WRITE_DATE_KEYS_AS_TIMESTAMPS">
591<!--   -->
592</a>
593<ul class="blockList">
594<li class="blockList">
595<h4>WRITE_DATE_KEYS_AS_TIMESTAMPS</h4>
596<pre>public static final&nbsp;<a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</a> WRITE_DATE_KEYS_AS_TIMESTAMPS</pre>
597<div class="block">Feature that determines whether <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Date.html?is-external=true" title="class or interface in java.util"><code>Date</code></a>s
598 (and sub-types) used as <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util"><code>Map</code></a> keys are serialized
599 as timestamps or not (if not, will be serialized as textual
600 values).
601<p>
602 Default value is 'false', meaning that Date-valued Map keys are serialized
603 as textual (ISO-8601) values.
604<p>
605 Feature is disabled by default.</div>
606</li>
607</ul>
608<a name="WRITE_CHAR_ARRAYS_AS_JSON_ARRAYS">
609<!--   -->
610</a>
611<ul class="blockList">
612<li class="blockList">
613<h4>WRITE_CHAR_ARRAYS_AS_JSON_ARRAYS</h4>
614<pre>public static final&nbsp;<a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</a> WRITE_CHAR_ARRAYS_AS_JSON_ARRAYS</pre>
615<div class="block">Feature that determines how type <code>char[]</code> is serialized:
616 when enabled, will be serialized as an explict JSON array (with
617 single-character Strings as values); when disabled, defaults to
618 serializing them as Strings (which is more compact).
619<p>
620 Feature is disabled by default.</div>
621</li>
622</ul>
623<a name="WRITE_ENUMS_USING_TO_STRING">
624<!--   -->
625</a>
626<ul class="blockList">
627<li class="blockList">
628<h4>WRITE_ENUMS_USING_TO_STRING</h4>
629<pre>public static final&nbsp;<a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</a> WRITE_ENUMS_USING_TO_STRING</pre>
630<div class="block">Feature that determines standard serialization mechanism used for
631 Enum values: if enabled, return value of <code>Enum.toString()</code>
632 is used; if disabled, return value of <code>Enum.name()</code> is used.
633<p>
634 Note: this feature should usually have same value
635 as <a href="../../../../com/fasterxml/jackson/databind/DeserializationFeature.html#READ_ENUMS_USING_TO_STRING"><code>DeserializationFeature.READ_ENUMS_USING_TO_STRING</code></a>.
636<p>
637 Feature is disabled by default.</div>
638</li>
639</ul>
640<a name="WRITE_ENUMS_USING_INDEX">
641<!--   -->
642</a>
643<ul class="blockList">
644<li class="blockList">
645<h4>WRITE_ENUMS_USING_INDEX</h4>
646<pre>public static final&nbsp;<a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</a> WRITE_ENUMS_USING_INDEX</pre>
647<div class="block">Feature that determines whethere Java Enum values are serialized
648 as numbers (true), or textual values (false). If textual values are
649 used, other settings are also considered.
650 If this feature is enabled,
651  return value of <code>Enum.ordinal()</code>
652 (an integer) will be used as the serialization.
653<p>
654 Note that this feature has precedence over <a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#WRITE_ENUMS_USING_TO_STRING"><code>WRITE_ENUMS_USING_TO_STRING</code></a>,
655 which is only considered if this feature is set to false.
656<p>
657 Feature is disabled by default.</div>
658</li>
659</ul>
660<a name="WRITE_NULL_MAP_VALUES">
661<!--   -->
662</a>
663<ul class="blockList">
664<li class="blockList">
665<h4>WRITE_NULL_MAP_VALUES</h4>
666<pre>public static final&nbsp;<a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</a> WRITE_NULL_MAP_VALUES</pre>
667<div class="block">Feature that determines whether Map entries with null values are
668 to be serialized (true) or not (false).
669<p>
670 For further details, check out [JACKSON-314]
671<p>
672 Feature is enabled by default.</div>
673</li>
674</ul>
675<a name="WRITE_EMPTY_JSON_ARRAYS">
676<!--   -->
677</a>
678<ul class="blockList">
679<li class="blockList">
680<h4>WRITE_EMPTY_JSON_ARRAYS</h4>
681<pre>public static final&nbsp;<a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</a> WRITE_EMPTY_JSON_ARRAYS</pre>
682<div class="block">Feature that determines whether Container properties (POJO properties
683 with declared value of Collection or array; i.e. things that produce JSON
684 arrays) that are empty (have no elements)
685 will be serialized as empty JSON arrays (true), or suppressed from output (false).
686<p>
687 Note that this does not change behavior of <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util"><code>Map</code></a>s, or
688 "Collection-like" types.
689<p>
690 Feature is enabled by default.</div>
691</li>
692</ul>
693<a name="WRITE_SINGLE_ELEM_ARRAYS_UNWRAPPED">
694<!--   -->
695</a>
696<ul class="blockList">
697<li class="blockList">
698<h4>WRITE_SINGLE_ELEM_ARRAYS_UNWRAPPED</h4>
699<pre>public static final&nbsp;<a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</a> WRITE_SINGLE_ELEM_ARRAYS_UNWRAPPED</pre>
700<div class="block">Feature added for interoperability, to work with oddities of
701 so-called "BadgerFish" convention.
702 Feature determines handling of single element <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util"><code>Collection</code></a>s
703 and arrays: if enabled, <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util"><code>Collection</code></a>s and arrays that contain exactly
704 one element will be serialized as if that element itself was serialized.
705<p>
706 When enabled, a POJO with array that normally looks like this:
707<pre>
708  { "arrayProperty" : [ 1 ] }
709</pre>
710 will instead be serialized as
711<pre>
712  { "arrayProperty" : 1 }
713</pre>
714<p>
715 Note that this feature is counterpart to <a href="../../../../com/fasterxml/jackson/databind/DeserializationFeature.html#ACCEPT_SINGLE_VALUE_AS_ARRAY"><code>DeserializationFeature.ACCEPT_SINGLE_VALUE_AS_ARRAY</code></a>
716 (that is, usually both are enabled, or neither is).
717<p>
718 Feature is disabled by default, so that no special handling is done.</div>
719</li>
720</ul>
721<a name="WRITE_BIGDECIMAL_AS_PLAIN">
722<!--   -->
723</a>
724<ul class="blockList">
725<li class="blockList">
726<h4>WRITE_BIGDECIMAL_AS_PLAIN</h4>
727<pre><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a>
728public static final&nbsp;<a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</a> WRITE_BIGDECIMAL_AS_PLAIN</pre>
729<div class="block"><span class="strong">Deprecated.</span>&nbsp;<i>Since 2.5: use <code>JsonGenerator.Feature.WRITE_BIGDECIMAL_AS_PLAIN</code> directly
730    (using <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html#with(com.fasterxml.jackson.core.JsonGenerator.Feature)"><code>ObjectWriter.with(com.fasterxml.jackson.core.JsonGenerator.Feature)</code></a>).</i></div>
731<div class="block">Feature that determines whether <a href="http://docs.oracle.com/javase/6/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math"><code>BigDecimal</code></a> entries are
732 serialized using <a href="http://docs.oracle.com/javase/6/docs/api/java/math/BigDecimal.html?is-external=true#toPlainString()" title="class or interface in java.math"><code>BigDecimal.toPlainString()</code></a> to prevent
733 values to be written using scientific notation.
734<p>
735 NOTE: since this feature typically requires use of
736 <code>JsonGenerator.writeNumber(String)</code>
737 ot may cause compatibility problems since not all <code>JsonGenerator</code>
738 implementations support such mode of output: usually only text-based formats
739 support it.
740<p>
741 Feature is disabled by default.</div>
742</li>
743</ul>
744<a name="WRITE_DATE_TIMESTAMPS_AS_NANOSECONDS">
745<!--   -->
746</a>
747<ul class="blockList">
748<li class="blockList">
749<h4>WRITE_DATE_TIMESTAMPS_AS_NANOSECONDS</h4>
750<pre>public static final&nbsp;<a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</a> WRITE_DATE_TIMESTAMPS_AS_NANOSECONDS</pre>
751<div class="block">Feature that controls whether numeric timestamp values are
752 to be written using nanosecond timestamps (enabled) or not (disabled);
753 <b>if and only if</b> datatype supports such resolution.
754 Only newer datatypes (such as Java8 Date/Time) support such resolution --
755 older types (pre-Java8 <b>java.util.Date</b> etc) and Joda do not --
756 and this setting <b>has no effect</b> on such types.
757<p>
758 If disabled, standard millisecond timestamps are assumed.
759 This is the counterpart to <a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#WRITE_DATE_TIMESTAMPS_AS_NANOSECONDS"><code>WRITE_DATE_TIMESTAMPS_AS_NANOSECONDS</code></a>.
760<p>
761 Feature is enabled by default, to support most accurate time values possible.</div>
762<dl><dt><span class="strong">Since:</span></dt>
763  <dd>2.2</dd></dl>
764</li>
765</ul>
766<a name="ORDER_MAP_ENTRIES_BY_KEYS">
767<!--   -->
768</a>
769<ul class="blockList">
770<li class="blockList">
771<h4>ORDER_MAP_ENTRIES_BY_KEYS</h4>
772<pre>public static final&nbsp;<a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</a> ORDER_MAP_ENTRIES_BY_KEYS</pre>
773<div class="block">Feature that determines whether <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util"><code>Map</code></a> entries are first
774 sorted by key before serialization or not: if enabled, additional sorting
775 step is performed if necessary (not necessary for <a href="http://docs.oracle.com/javase/6/docs/api/java/util/SortedMap.html?is-external=true" title="class or interface in java.util"><code>SortedMap</code></a>s),
776 if disabled, no additional sorting is needed.
777<p>
778 Feature is disabled by default.</div>
779</li>
780</ul>
781<a name="EAGER_SERIALIZER_FETCH">
782<!--   -->
783</a>
784<ul class="blockList">
785<li class="blockList">
786<h4>EAGER_SERIALIZER_FETCH</h4>
787<pre>public static final&nbsp;<a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</a> EAGER_SERIALIZER_FETCH</pre>
788<div class="block">Feature that determines whether <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind"><code>ObjectWriter</code></a> should
789 try to eagerly fetch necessary <a href="../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind"><code>JsonSerializer</code></a> when
790 possible. This improves performance in cases where similarly
791 configured <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind"><code>ObjectWriter</code></a> instance is used multiple
792 times; and should not significantly affect single-use cases.
793<p>
794 Note that there should not be any need to normally disable this
795 feature: only consider that if there are actual perceived problems.
796<p>
797 Feature is enabled by default.</div>
798<dl><dt><span class="strong">Since:</span></dt>
799  <dd>2.1</dd></dl>
800</li>
801</ul>
802<a name="USE_EQUALITY_FOR_OBJECT_ID">
803<!--   -->
804</a>
805<ul class="blockListLast">
806<li class="blockList">
807<h4>USE_EQUALITY_FOR_OBJECT_ID</h4>
808<pre>public static final&nbsp;<a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</a> USE_EQUALITY_FOR_OBJECT_ID</pre>
809<div class="block">Feature that determines whether Object Identity is compared using
810 true JVM-level identity of Object (false); or, <code>equals()</code> method.
811 Latter is sometimes useful when dealing with Database-bound objects with
812 ORM libraries (like Hibernate).
813<p>
814 Feature is disabled by default; meaning that strict identity is used, not
815 <code>equals()</code></div>
816<dl><dt><span class="strong">Since:</span></dt>
817  <dd>2.3</dd></dl>
818</li>
819</ul>
820</li>
821</ul>
822<!-- ============ METHOD DETAIL ========== -->
823<ul class="blockList">
824<li class="blockList"><a name="method_detail">
825<!--   -->
826</a>
827<h3>Method Detail</h3>
828<a name="values()">
829<!--   -->
830</a>
831<ul class="blockList">
832<li class="blockList">
833<h4>values</h4>
834<pre>public static&nbsp;<a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</a>[]&nbsp;values()</pre>
835<div class="block">Returns an array containing the constants of this enum type, in
836the order they are declared.  This method may be used to iterate
837over the constants as follows:
838<pre>
839for (SerializationFeature c : SerializationFeature.values())
840&nbsp;   System.out.println(c);
841</pre></div>
842<dl><dt><span class="strong">Returns:</span></dt><dd>an array containing the constants of this enum type, in
843the order they are declared</dd></dl>
844</li>
845</ul>
846<a name="valueOf(java.lang.String)">
847<!--   -->
848</a>
849<ul class="blockList">
850<li class="blockList">
851<h4>valueOf</h4>
852<pre>public static&nbsp;<a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</a>&nbsp;valueOf(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;name)</pre>
853<div class="block">Returns the enum constant of this type with the specified name.
854The string must match <i>exactly</i> an identifier used to declare an
855enum constant in this type.  (Extraneous whitespace characters are
856not permitted.)</div>
857<dl><dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - the name of the enum constant to be returned.</dd>
858<dt><span class="strong">Returns:</span></dt><dd>the enum constant with the specified name</dd>
859<dt><span class="strong">Throws:</span></dt>
860<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if this enum type has no constant
861with the specified name</dd>
862<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if the argument is null</dd></dl>
863</li>
864</ul>
865<a name="enabledByDefault()">
866<!--   -->
867</a>
868<ul class="blockList">
869<li class="blockList">
870<h4>enabledByDefault</h4>
871<pre>public&nbsp;boolean&nbsp;enabledByDefault()</pre>
872<div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../../com/fasterxml/jackson/databind/cfg/ConfigFeature.html#enabledByDefault()">ConfigFeature</a></code></strong></div>
873<div class="block">Accessor for checking whether this feature is enabled by default.</div>
874<dl>
875<dt><strong>Specified by:</strong></dt>
876<dd><code><a href="../../../../com/fasterxml/jackson/databind/cfg/ConfigFeature.html#enabledByDefault()">enabledByDefault</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../com/fasterxml/jackson/databind/cfg/ConfigFeature.html" title="interface in com.fasterxml.jackson.databind.cfg">ConfigFeature</a></code></dd>
877</dl>
878</li>
879</ul>
880<a name="getMask()">
881<!--   -->
882</a>
883<ul class="blockList">
884<li class="blockList">
885<h4>getMask</h4>
886<pre>public&nbsp;int&nbsp;getMask()</pre>
887<div class="block"><strong>Description copied from interface:&nbsp;<code><a href="../../../../com/fasterxml/jackson/databind/cfg/ConfigFeature.html#getMask()">ConfigFeature</a></code></strong></div>
888<div class="block">Returns bit mask for this feature instance</div>
889<dl>
890<dt><strong>Specified by:</strong></dt>
891<dd><code><a href="../../../../com/fasterxml/jackson/databind/cfg/ConfigFeature.html#getMask()">getMask</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../com/fasterxml/jackson/databind/cfg/ConfigFeature.html" title="interface in com.fasterxml.jackson.databind.cfg">ConfigFeature</a></code></dd>
892</dl>
893</li>
894</ul>
895<a name="enabledIn(int)">
896<!--   -->
897</a>
898<ul class="blockListLast">
899<li class="blockList">
900<h4>enabledIn</h4>
901<pre>public&nbsp;boolean&nbsp;enabledIn(int&nbsp;flags)</pre>
902<dl><dt><span class="strong">Since:</span></dt>
903  <dd>2.5</dd></dl>
904</li>
905</ul>
906</li>
907</ul>
908</li>
909</ul>
910</div>
911</div>
912<!-- ========= END OF CLASS DATA ========= -->
913<!-- ======= START OF BOTTOM NAVBAR ====== -->
914<div class="bottomNav"><a name="navbar_bottom">
915<!--   -->
916</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
917<!--   -->
918</a>
919<ul class="navList" title="Navigation">
920<li><a href="../../../../overview-summary.html">Overview</a></li>
921<li><a href="package-summary.html">Package</a></li>
922<li class="navBarCell1Rev">Class</li>
923<li><a href="class-use/SerializationFeature.html">Use</a></li>
924<li><a href="package-tree.html">Tree</a></li>
925<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
926<li><a href="../../../../index-all.html">Index</a></li>
927<li><a href="../../../../help-doc.html">Help</a></li>
928</ul>
929</div>
930<div class="subNav">
931<ul class="navList">
932<li><a href="../../../../com/fasterxml/jackson/databind/SerializationConfig.html" title="class in com.fasterxml.jackson.databind"><span class="strong">Prev Class</span></a></li>
933<li><a href="../../../../com/fasterxml/jackson/databind/SerializerProvider.html" title="class in com.fasterxml.jackson.databind"><span class="strong">Next Class</span></a></li>
934</ul>
935<ul class="navList">
936<li><a href="../../../../index.html?com/fasterxml/jackson/databind/SerializationFeature.html" target="_top">Frames</a></li>
937<li><a href="SerializationFeature.html" target="_top">No Frames</a></li>
938</ul>
939<ul class="navList" id="allclasses_navbar_bottom">
940<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
941</ul>
942<div>
943<script type="text/javascript"><!--
944  allClassesLink = document.getElementById("allclasses_navbar_bottom");
945  if(window==top) {
946    allClassesLink.style.display = "block";
947  }
948  else {
949    allClassesLink.style.display = "none";
950  }
951  //-->
952</script>
953</div>
954<div>
955<ul class="subNavList">
956<li>Summary:&nbsp;</li>
957<li>Nested&nbsp;|&nbsp;</li>
958<li><a href="#enum_constant_summary">Enum Constants</a>&nbsp;|&nbsp;</li>
959<li>Field&nbsp;|&nbsp;</li>
960<li><a href="#method_summary">Method</a></li>
961</ul>
962<ul class="subNavList">
963<li>Detail:&nbsp;</li>
964<li><a href="#enum_constant_detail">Enum Constants</a>&nbsp;|&nbsp;</li>
965<li>Field&nbsp;|&nbsp;</li>
966<li><a href="#method_detail">Method</a></li>
967</ul>
968</div>
969<a name="skip-navbar_bottom">
970<!--   -->
971</a></div>
972<!-- ======== END OF BOTTOM NAVBAR ======= -->
973<p class="legalCopy"><small>Copyright &#169; 2014-2015 <a href="http://fasterxml.com/">FasterXML</a>. All Rights Reserved.</small></p>
974</body>
975</html>
976