• 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 Sat Nov 16 21:43:17 PST 2013 -->
6<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
7<title>SerializationFeature (jackson-databind 2.3.0 API)</title>
8<meta name="date" content="2013-11-16">
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.3.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#FLUSH_AFTER_WRITE_VALUE">FLUSH_AFTER_WRITE_VALUE</a></strong></code>
163<div class="block">Feature that determines whether <code>JsonGenerator.flush()</code> is
164 called after <code>writeValue()</code> method <b>that takes JsonGenerator
165 as an argument</b> completes (i.e.</div>
166</td>
167</tr>
168<tr class="altColor">
169<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#INDENT_OUTPUT">INDENT_OUTPUT</a></strong></code>
170<div class="block">Feature that allows enabling (or disabling) indentation
171 for the underlying generator, using the default pretty
172 printer (see
173 <a href="http://fasterxml.github.com/jackson-core/javadoc/2.3.0/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true#useDefaultPrettyPrinter()" title="class or interface in com.fasterxml.jackson.core"><code>JsonGenerator.useDefaultPrettyPrinter()</code></a>
174 for details).</div>
175</td>
176</tr>
177<tr class="rowColor">
178<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>
179<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
180 sorted by key before serialization or not: if enabled, additional sorting
181 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),
182 if disabled, no additional sorting is needed.</div>
183</td>
184</tr>
185<tr class="altColor">
186<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>
187<div class="block">Feature that determines whether Object Identity is compared using
188 true JVM-level identity of Object (false); or, <code>equals()</code> method.</div>
189</td>
190</tr>
191<tr class="rowColor">
192<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#WRAP_EXCEPTIONS">WRAP_EXCEPTIONS</a></strong></code>
193<div class="block">Feature that determines whether Jackson code should catch
194 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!)
195 to add additional information about
196 location (within input) of problem or not.</div>
197</td>
198</tr>
199<tr class="altColor">
200<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#WRAP_ROOT_VALUE">WRAP_ROOT_VALUE</a></strong></code>
201<div class="block">Feature that can be enabled to make root value (usually JSON
202 Object but can be any type) wrapped within a single property
203 JSON object, where key as the "root name", as determined by
204 annotation introspector (esp.</div>
205</td>
206</tr>
207<tr class="rowColor">
208<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#WRITE_BIGDECIMAL_AS_PLAIN">WRITE_BIGDECIMAL_AS_PLAIN</a></strong></code>
209<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
210 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
211 values to be written using scientific notation.</div>
212</td>
213</tr>
214<tr class="altColor">
215<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>
216<div class="block">Feature that determines how type <code>char[]</code> is serialized:
217 when enabled, will be serialized as an explict JSON array (with
218 single-character Strings as values); when disabled, defaults to
219 serializing them as Strings (which is more compact).</div>
220</td>
221</tr>
222<tr class="rowColor">
223<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>
224<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
225 (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
226 as timestamps or not (if not, will be serialized as textual
227 values).</div>
228</td>
229</tr>
230<tr class="altColor">
231<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>
232<div class="block">Feature that controls whether numeric timestamp values are
233 to be written using nanosecond timestamps (enabled) or not (disabled);
234 <b>if and only if</b> datatype supports such resolution.</div>
235</td>
236</tr>
237<tr class="rowColor">
238<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#WRITE_DATES_AS_TIMESTAMPS">WRITE_DATES_AS_TIMESTAMPS</a></strong></code>
239<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
240 (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
241 serialized as numeric timestamps (true; the default),
242 or as something else (usually textual representation).</div>
243</td>
244</tr>
245<tr class="altColor">
246<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#WRITE_EMPTY_JSON_ARRAYS">WRITE_EMPTY_JSON_ARRAYS</a></strong></code>
247<div class="block">Feature that determines whether Container properties (POJO properties
248 with declared value of Collection or array; i.e.</div>
249</td>
250</tr>
251<tr class="rowColor">
252<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#WRITE_ENUMS_USING_INDEX">WRITE_ENUMS_USING_INDEX</a></strong></code>
253<div class="block">Feature that determines whethere Java Enum values are serialized
254 as numbers (true), or textual values (false).</div>
255</td>
256</tr>
257<tr class="altColor">
258<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>
259<div class="block">Feature that determines standard serialization mechanism used for
260 Enum values: if enabled, return value of <code>Enum.toString()</code>
261 is used; if disabled, return value of <code>Enum.name()</code> is used.</div>
262</td>
263</tr>
264<tr class="rowColor">
265<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#WRITE_NULL_MAP_VALUES">WRITE_NULL_MAP_VALUES</a></strong></code>
266<div class="block">Feature that determines whether Map entries with null values are
267 to be serialized (true) or not (false).</div>
268</td>
269</tr>
270<tr class="altColor">
271<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>
272<div class="block">Feature added for interoperability, to work with oddities of
273 so-called "BadgerFish" convention.</div>
274</td>
275</tr>
276</table>
277</li>
278</ul>
279<!-- ========== METHOD SUMMARY =========== -->
280<ul class="blockList">
281<li class="blockList"><a name="method_summary">
282<!--   -->
283</a>
284<h3>Method Summary</h3>
285<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
286<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
287<tr>
288<th class="colFirst" scope="col">Modifier and Type</th>
289<th class="colLast" scope="col">Method and Description</th>
290</tr>
291<tr class="altColor">
292<td class="colFirst"><code>boolean</code></td>
293<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#enabledByDefault()">enabledByDefault</a></strong>()</code>
294<div class="block">Accessor for checking whether this feature is enabled by default.</div>
295</td>
296</tr>
297<tr class="rowColor">
298<td class="colFirst"><code>int</code></td>
299<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#getMask()">getMask</a></strong>()</code>
300<div class="block">Returns bit mask for this feature instance</div>
301</td>
302</tr>
303<tr class="altColor">
304<td class="colFirst"><code>static <a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</a></code></td>
305<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>
306<div class="block">Returns the enum constant of this type with the specified name.</div>
307</td>
308</tr>
309<tr class="rowColor">
310<td class="colFirst"><code>static <a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</a>[]</code></td>
311<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#values()">values</a></strong>()</code>
312<div class="block">Returns an array containing the constants of this enum type, in
313the order they are declared.</div>
314</td>
315</tr>
316</table>
317<ul class="blockList">
318<li class="blockList"><a name="methods_inherited_from_class_java.lang.Enum">
319<!--   -->
320</a>
321<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>
322<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>
323</ul>
324<ul class="blockList">
325<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
326<!--   -->
327</a>
328<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>
329<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>
330</ul>
331</li>
332</ul>
333</li>
334</ul>
335</div>
336<div class="details">
337<ul class="blockList">
338<li class="blockList">
339<!-- ============ ENUM CONSTANT DETAIL =========== -->
340<ul class="blockList">
341<li class="blockList"><a name="enum_constant_detail">
342<!--   -->
343</a>
344<h3>Enum Constant Detail</h3>
345<a name="WRAP_ROOT_VALUE">
346<!--   -->
347</a>
348<ul class="blockList">
349<li class="blockList">
350<h4>WRAP_ROOT_VALUE</h4>
351<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>
352<div class="block">Feature that can be enabled to make root value (usually JSON
353 Object but can be any type) wrapped within a single property
354 JSON object, where key as the "root name", as determined by
355 annotation introspector (esp. for JAXB that uses
356 <code>@XmlRootElement.name</code>) or fallback (non-qualified
357 class name).
358 Feature is mostly intended for JAXB compatibility.
359<p>
360 Feature is disabled by default.</div>
361</li>
362</ul>
363<a name="INDENT_OUTPUT">
364<!--   -->
365</a>
366<ul class="blockList">
367<li class="blockList">
368<h4>INDENT_OUTPUT</h4>
369<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>
370<div class="block">Feature that allows enabling (or disabling) indentation
371 for the underlying generator, using the default pretty
372 printer (see
373 <a href="http://fasterxml.github.com/jackson-core/javadoc/2.3.0/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true#useDefaultPrettyPrinter()" title="class or interface in com.fasterxml.jackson.core"><code>JsonGenerator.useDefaultPrettyPrinter()</code></a>
374 for details).
375<p>
376 Note that this only affects cases where
377 <a href="http://fasterxml.github.com/jackson-core/javadoc/2.3.0/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core"><code>JsonGenerator</code></a>
378 is constructed implicitly by ObjectMapper: if explicit
379 generator is passed, its configuration is not changed.
380<p>
381 Also note that if you want to configure details of indentation,
382 you need to directly configure the generator: there is a
383 method to use any <code>PrettyPrinter</code> instance.
384 This feature will only allow using the default implementation.
385<p>
386 Feature is enabled by default.</div>
387</li>
388</ul>
389<a name="FAIL_ON_EMPTY_BEANS">
390<!--   -->
391</a>
392<ul class="blockList">
393<li class="blockList">
394<h4>FAIL_ON_EMPTY_BEANS</h4>
395<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>
396<div class="block">Feature that determines what happens when no accessors are
397 found for a type (and there are no annotations to indicate
398 it is meant to be serialized). If enabled (default), an
399 exception is thrown to indicate these as non-serializable
400 types; if disabled, they are serialized as empty Objects,
401 i.e. without any properties.
402<p>
403 Note that empty types that this feature has only effect on
404 those "empty" beans that do not have any recognized annotations
405 (like <code>@JsonSerialize</code>): ones that do have annotations
406 do not result in an exception being thrown.
407<p>
408 Feature is enabled by default.</div>
409</li>
410</ul>
411<a name="WRAP_EXCEPTIONS">
412<!--   -->
413</a>
414<ul class="blockList">
415<li class="blockList">
416<h4>WRAP_EXCEPTIONS</h4>
417<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>
418<div class="block">Feature that determines whether Jackson code should catch
419 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!)
420 to add additional information about
421 location (within input) of problem or not. If enabled,
422 most exceptions will be caught and re-thrown (exception
423 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
424 as is, since they are declared as throwable); this can be
425 convenient both in that all exceptions will be checked and
426 declared, and so there is more contextual information.
427 However, sometimes calling application may just want "raw"
428 unchecked exceptions passed as is.
429<p>
430<p>
431 Feature is enabled by default.</div>
432</li>
433</ul>
434<a name="CLOSE_CLOSEABLE">
435<!--   -->
436</a>
437<ul class="blockList">
438<li class="blockList">
439<h4>CLOSE_CLOSEABLE</h4>
440<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>
441<div class="block">Feature that determines whether <code>close</code> method of
442 serialized <b>root level</b> objects (ones for which <code>ObjectMapper</code>'s
443 writeValue() (or equivalent) method is called)
444 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>
445 is called after serialization or not. If enabled, <b>close()</b> will
446 be called after serialization completes (whether succesfully, or
447 due to an error manifested by an exception being thrown). You can
448 think of this as sort of "finally" processing.
449<p>
450 NOTE: only affects behavior with <b>root</b> objects, and not other
451 objects reachable from the root object. Put another way, only one
452 call will be made for each 'writeValue' call.
453<p>
454 Feature is disabled by default.</div>
455</li>
456</ul>
457<a name="FLUSH_AFTER_WRITE_VALUE">
458<!--   -->
459</a>
460<ul class="blockList">
461<li class="blockList">
462<h4>FLUSH_AFTER_WRITE_VALUE</h4>
463<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>
464<div class="block">Feature that determines whether <code>JsonGenerator.flush()</code> is
465 called after <code>writeValue()</code> method <b>that takes JsonGenerator
466 as an argument</b> completes (i.e. does NOT affect methods
467 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>.
468 This usually makes sense; but there are cases where flushing
469 should not be forced: for example when underlying stream is
470 compressing and flush() causes compression state to be flushed
471 (which occurs with some compression codecs).
472<p>
473 Feature is enabled by default.</div>
474</li>
475</ul>
476<a name="WRITE_DATES_AS_TIMESTAMPS">
477<!--   -->
478</a>
479<ul class="blockList">
480<li class="blockList">
481<h4>WRITE_DATES_AS_TIMESTAMPS</h4>
482<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>
483<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
484 (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
485 serialized as numeric timestamps (true; the default),
486 or as something else (usually textual representation).
487 If textual representation is used, the actual format is
488 one returned by a call to
489 <a href="../../../../com/fasterxml/jackson/databind/cfg/MapperConfig.html#getDateFormat()"><code>MapperConfig.getDateFormat()</code></a>:
490 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>,
491 which corresponds to format String of "yyyy-MM-dd'T'HH:mm:ss.SSSZ"
492 (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).
493<p>
494 Note: whether this feature affects handling of other date-related
495 types depend on handlers of those types, although ideally they
496 should use this feature
497<p>
498 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
499 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>.
500<p>
501 Feature is enabled by default.</div>
502</li>
503</ul>
504<a name="WRITE_DATE_KEYS_AS_TIMESTAMPS">
505<!--   -->
506</a>
507<ul class="blockList">
508<li class="blockList">
509<h4>WRITE_DATE_KEYS_AS_TIMESTAMPS</h4>
510<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>
511<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
512 (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
513 as timestamps or not (if not, will be serialized as textual
514 values).
515<p>
516 Default value is 'false', meaning that Date-valued Map keys are serialized
517 as textual (ISO-8601) values.
518<p>
519 Feature is disabled by default.</div>
520</li>
521</ul>
522<a name="WRITE_CHAR_ARRAYS_AS_JSON_ARRAYS">
523<!--   -->
524</a>
525<ul class="blockList">
526<li class="blockList">
527<h4>WRITE_CHAR_ARRAYS_AS_JSON_ARRAYS</h4>
528<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>
529<div class="block">Feature that determines how type <code>char[]</code> is serialized:
530 when enabled, will be serialized as an explict JSON array (with
531 single-character Strings as values); when disabled, defaults to
532 serializing them as Strings (which is more compact).
533<p>
534 Feature is disabled by default.</div>
535</li>
536</ul>
537<a name="WRITE_ENUMS_USING_TO_STRING">
538<!--   -->
539</a>
540<ul class="blockList">
541<li class="blockList">
542<h4>WRITE_ENUMS_USING_TO_STRING</h4>
543<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>
544<div class="block">Feature that determines standard serialization mechanism used for
545 Enum values: if enabled, return value of <code>Enum.toString()</code>
546 is used; if disabled, return value of <code>Enum.name()</code> is used.
547<p>
548 Note: this feature should usually have same value
549 as <a href="../../../../com/fasterxml/jackson/databind/DeserializationFeature.html#READ_ENUMS_USING_TO_STRING"><code>DeserializationFeature.READ_ENUMS_USING_TO_STRING</code></a>.
550<p>
551 Feature is disabled by default.</div>
552</li>
553</ul>
554<a name="WRITE_ENUMS_USING_INDEX">
555<!--   -->
556</a>
557<ul class="blockList">
558<li class="blockList">
559<h4>WRITE_ENUMS_USING_INDEX</h4>
560<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>
561<div class="block">Feature that determines whethere Java Enum values are serialized
562 as numbers (true), or textual values (false). If textual values are
563 used, other settings are also considered.
564 If this feature is enabled,
565  return value of <code>Enum.ordinal()</code>
566 (an integer) will be used as the serialization.
567<p>
568 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>,
569 which is only considered if this feature is set to false.
570<p>
571 Feature is disabled by default.</div>
572</li>
573</ul>
574<a name="WRITE_NULL_MAP_VALUES">
575<!--   -->
576</a>
577<ul class="blockList">
578<li class="blockList">
579<h4>WRITE_NULL_MAP_VALUES</h4>
580<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>
581<div class="block">Feature that determines whether Map entries with null values are
582 to be serialized (true) or not (false).
583<p>
584 For further details, check out [JACKSON-314]
585<p>
586 Feature is enabled by default.</div>
587</li>
588</ul>
589<a name="WRITE_EMPTY_JSON_ARRAYS">
590<!--   -->
591</a>
592<ul class="blockList">
593<li class="blockList">
594<h4>WRITE_EMPTY_JSON_ARRAYS</h4>
595<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>
596<div class="block">Feature that determines whether Container properties (POJO properties
597 with declared value of Collection or array; i.e. things that produce JSON
598 arrays) that are empty (have no elements)
599 will be serialized as empty JSON arrays (true), or suppressed from output (false).
600<p>
601 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
602 "Collection-like" types.
603<p>
604 Feature is enabled by default.</div>
605</li>
606</ul>
607<a name="WRITE_SINGLE_ELEM_ARRAYS_UNWRAPPED">
608<!--   -->
609</a>
610<ul class="blockList">
611<li class="blockList">
612<h4>WRITE_SINGLE_ELEM_ARRAYS_UNWRAPPED</h4>
613<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>
614<div class="block">Feature added for interoperability, to work with oddities of
615 so-called "BadgerFish" convention.
616 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
617 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
618 one element will be serialized as if that element itself was serialized.
619<p>
620 When enabled, a POJO with array that normally looks like this:
621<pre>
622  { "arrayProperty" : [ 1 ] }
623</pre>
624 will instead be serialized as
625<pre>
626  { "arrayProperty" : 1 }
627</pre>
628<p>
629 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>
630 (that is, usually both are enabled, or neither is).
631<p>
632 Feature is disabled by default, so that no special handling is done.</div>
633</li>
634</ul>
635<a name="WRITE_BIGDECIMAL_AS_PLAIN">
636<!--   -->
637</a>
638<ul class="blockList">
639<li class="blockList">
640<h4>WRITE_BIGDECIMAL_AS_PLAIN</h4>
641<pre>public 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>
642<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
643 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
644 values to be written using scientific notation.
645<p>
646 NOTE: since this feature typically requires use of
647 <a href="http://fasterxml.github.com/jackson-core/javadoc/2.3.0/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true#writeNumber(java.lang.String)" title="class or interface in com.fasterxml.jackson.core"><code>JsonGenerator.writeNumber(String)</code></a>
648 ot may cause compatibility problems since not all <a href="http://fasterxml.github.com/jackson-core/javadoc/2.3.0/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core"><code>JsonGenerator</code></a>
649 implementations support such mode of output: usually only text-based formats
650 support it.
651<p>
652 Feature is disabled by default.</div>
653</li>
654</ul>
655<a name="WRITE_DATE_TIMESTAMPS_AS_NANOSECONDS">
656<!--   -->
657</a>
658<ul class="blockList">
659<li class="blockList">
660<h4>WRITE_DATE_TIMESTAMPS_AS_NANOSECONDS</h4>
661<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>
662<div class="block">Feature that controls whether numeric timestamp values are
663 to be written using nanosecond timestamps (enabled) or not (disabled);
664 <b>if and only if</b> datatype supports such resolution.
665 Only newer datatypes (such as Java8 Date/Time) support such resolution --
666 older types (pre-Java8 <b>java.util.Date</b> etc) and Joda do not --
667 and this setting <b>has no effect</b> on such types.
668<p>
669 If disabled, standard millisecond timestamps are assumed.
670 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>.
671<p>
672 Feature is enabled by default, to support most accurate time values possible.</div>
673<dl><dt><span class="strong">Since:</span></dt>
674  <dd>2.2</dd></dl>
675</li>
676</ul>
677<a name="ORDER_MAP_ENTRIES_BY_KEYS">
678<!--   -->
679</a>
680<ul class="blockList">
681<li class="blockList">
682<h4>ORDER_MAP_ENTRIES_BY_KEYS</h4>
683<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>
684<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
685 sorted by key before serialization or not: if enabled, additional sorting
686 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),
687 if disabled, no additional sorting is needed.
688<p>
689 Feature is disabled by default.</div>
690</li>
691</ul>
692<a name="EAGER_SERIALIZER_FETCH">
693<!--   -->
694</a>
695<ul class="blockList">
696<li class="blockList">
697<h4>EAGER_SERIALIZER_FETCH</h4>
698<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>
699<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
700 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
701 possible. This improves performance in cases where similarly
702 configured <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind"><code>ObjectWriter</code></a> instance is used multiple
703 times; and should not significantly affect single-use cases.
704<p>
705 Note that there should not be any need to normally disable this
706 feature: only consider that if there are actual perceived problems.
707<p>
708 Feature is enabled by default.</div>
709<dl><dt><span class="strong">Since:</span></dt>
710  <dd>2.1</dd></dl>
711</li>
712</ul>
713<a name="USE_EQUALITY_FOR_OBJECT_ID">
714<!--   -->
715</a>
716<ul class="blockListLast">
717<li class="blockList">
718<h4>USE_EQUALITY_FOR_OBJECT_ID</h4>
719<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>
720<div class="block">Feature that determines whether Object Identity is compared using
721 true JVM-level identity of Object (false); or, <code>equals()</code> method.
722 Latter is sometimes useful when dealing with Database-bound objects with
723 ORM libraries (like Hibernate).
724<p>
725 Feature is disabled by default; meaning that strict identity is used, not
726 <code>equals()</code></div>
727<dl><dt><span class="strong">Since:</span></dt>
728  <dd>2.3</dd></dl>
729</li>
730</ul>
731</li>
732</ul>
733<!-- ============ METHOD DETAIL ========== -->
734<ul class="blockList">
735<li class="blockList"><a name="method_detail">
736<!--   -->
737</a>
738<h3>Method Detail</h3>
739<a name="values()">
740<!--   -->
741</a>
742<ul class="blockList">
743<li class="blockList">
744<h4>values</h4>
745<pre>public static&nbsp;<a href="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</a>[]&nbsp;values()</pre>
746<div class="block">Returns an array containing the constants of this enum type, in
747the order they are declared.  This method may be used to iterate
748over the constants as follows:
749<pre>
750for (SerializationFeature c : SerializationFeature.values())
751&nbsp;   System.out.println(c);
752</pre></div>
753<dl><dt><span class="strong">Returns:</span></dt><dd>an array containing the constants of this enum type, in
754the order they are declared</dd></dl>
755</li>
756</ul>
757<a name="valueOf(java.lang.String)">
758<!--   -->
759</a>
760<ul class="blockList">
761<li class="blockList">
762<h4>valueOf</h4>
763<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>
764<div class="block">Returns the enum constant of this type with the specified name.
765The string must match <i>exactly</i> an identifier used to declare an
766enum constant in this type.  (Extraneous whitespace characters are
767not permitted.)</div>
768<dl><dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - the name of the enum constant to be returned.</dd>
769<dt><span class="strong">Returns:</span></dt><dd>the enum constant with the specified name</dd>
770<dt><span class="strong">Throws:</span></dt>
771<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
772with the specified name</dd>
773<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>
774</li>
775</ul>
776<a name="enabledByDefault()">
777<!--   -->
778</a>
779<ul class="blockList">
780<li class="blockList">
781<h4>enabledByDefault</h4>
782<pre>public&nbsp;boolean&nbsp;enabledByDefault()</pre>
783<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>
784<div class="block">Accessor for checking whether this feature is enabled by default.</div>
785<dl>
786<dt><strong>Specified by:</strong></dt>
787<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>
788</dl>
789</li>
790</ul>
791<a name="getMask()">
792<!--   -->
793</a>
794<ul class="blockListLast">
795<li class="blockList">
796<h4>getMask</h4>
797<pre>public&nbsp;int&nbsp;getMask()</pre>
798<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>
799<div class="block">Returns bit mask for this feature instance</div>
800<dl>
801<dt><strong>Specified by:</strong></dt>
802<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>
803</dl>
804</li>
805</ul>
806</li>
807</ul>
808</li>
809</ul>
810</div>
811</div>
812<!-- ========= END OF CLASS DATA ========= -->
813<!-- ======= START OF BOTTOM NAVBAR ====== -->
814<div class="bottomNav"><a name="navbar_bottom">
815<!--   -->
816</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
817<!--   -->
818</a>
819<ul class="navList" title="Navigation">
820<li><a href="../../../../overview-summary.html">Overview</a></li>
821<li><a href="package-summary.html">Package</a></li>
822<li class="navBarCell1Rev">Class</li>
823<li><a href="class-use/SerializationFeature.html">Use</a></li>
824<li><a href="package-tree.html">Tree</a></li>
825<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
826<li><a href="../../../../index-all.html">Index</a></li>
827<li><a href="../../../../help-doc.html">Help</a></li>
828</ul>
829</div>
830<div class="subNav">
831<ul class="navList">
832<li><a href="../../../../com/fasterxml/jackson/databind/SerializationConfig.html" title="class in com.fasterxml.jackson.databind"><span class="strong">Prev Class</span></a></li>
833<li><a href="../../../../com/fasterxml/jackson/databind/SerializerProvider.html" title="class in com.fasterxml.jackson.databind"><span class="strong">Next Class</span></a></li>
834</ul>
835<ul class="navList">
836<li><a href="../../../../index.html?com/fasterxml/jackson/databind/SerializationFeature.html" target="_top">Frames</a></li>
837<li><a href="SerializationFeature.html" target="_top">No Frames</a></li>
838</ul>
839<ul class="navList" id="allclasses_navbar_bottom">
840<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
841</ul>
842<div>
843<script type="text/javascript"><!--
844  allClassesLink = document.getElementById("allclasses_navbar_bottom");
845  if(window==top) {
846    allClassesLink.style.display = "block";
847  }
848  else {
849    allClassesLink.style.display = "none";
850  }
851  //-->
852</script>
853</div>
854<div>
855<ul class="subNavList">
856<li>Summary:&nbsp;</li>
857<li>Nested&nbsp;|&nbsp;</li>
858<li><a href="#enum_constant_summary">Enum Constants</a>&nbsp;|&nbsp;</li>
859<li>Field&nbsp;|&nbsp;</li>
860<li><a href="#method_summary">Method</a></li>
861</ul>
862<ul class="subNavList">
863<li>Detail:&nbsp;</li>
864<li><a href="#enum_constant_detail">Enum Constants</a>&nbsp;|&nbsp;</li>
865<li>Field&nbsp;|&nbsp;</li>
866<li><a href="#method_detail">Method</a></li>
867</ul>
868</div>
869<a name="skip-navbar_bottom">
870<!--   -->
871</a></div>
872<!-- ======== END OF BOTTOM NAVBAR ======= -->
873<p class="legalCopy"><small>Copyright &#169; 2012-2013 <a href="http://fasterxml.com/">FasterXML</a>. All Rights Reserved.</small></p>
874</body>
875</html>
876