• 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>
4<HEAD>
5<!-- Generated by javadoc (build 1.6.0_35) on Tue Oct 09 17:08:09 PDT 2012 -->
6<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
7<TITLE>
8SerializationFeature (jackson-databind 2.1.0 API)
9</TITLE>
10
11<META NAME="date" CONTENT="2012-10-09">
12
13<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
14
15<SCRIPT type="text/javascript">
16function windowTitle()
17{
18    if (location.href.indexOf('is-external=true') == -1) {
19        parent.document.title="SerializationFeature (jackson-databind 2.1.0 API)";
20    }
21}
22</SCRIPT>
23<NOSCRIPT>
24</NOSCRIPT>
25
26</HEAD>
27
28<BODY BGCOLOR="white" onload="windowTitle();">
29<HR>
30
31
32<!-- ========= START OF TOP NAVBAR ======= -->
33<A NAME="navbar_top"><!-- --></A>
34<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
35<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
36<TR>
37<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
38<A NAME="navbar_top_firstrow"><!-- --></A>
39<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
40  <TR ALIGN="center" VALIGN="top">
41  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
42  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
43  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
44  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/SerializationFeature.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
45  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
46  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
47  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
48  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
49  </TR>
50</TABLE>
51</TD>
52<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
53</EM>
54</TD>
55</TR>
56
57<TR>
58<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
59&nbsp;<A HREF="../../../../com/fasterxml/jackson/databind/SerializationConfig.html" title="class in com.fasterxml.jackson.databind"><B>PREV CLASS</B></A>&nbsp;
60&nbsp;<A HREF="../../../../com/fasterxml/jackson/databind/SerializerProvider.html" title="class in com.fasterxml.jackson.databind"><B>NEXT CLASS</B></A></FONT></TD>
61<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
62  <A HREF="../../../../index.html?com/fasterxml/jackson/databind/SerializationFeature.html" target="_top"><B>FRAMES</B></A>  &nbsp;
63&nbsp;<A HREF="SerializationFeature.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
64&nbsp;<SCRIPT type="text/javascript">
65  <!--
66  if(window==top) {
67    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
68  }
69  //-->
70</SCRIPT>
71<NOSCRIPT>
72  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
73</NOSCRIPT>
74
75
76</FONT></TD>
77</TR>
78<TR>
79<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
80  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#enum_constant_summary">ENUM CONSTANTS</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
81<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
82DETAIL:&nbsp;<A HREF="#enum_constant_detail">ENUM CONSTANTS</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
83</TR>
84</TABLE>
85<A NAME="skip-navbar_top"></A>
86<!-- ========= END OF TOP NAVBAR ========= -->
87
88<HR>
89<!-- ======== START OF CLASS DATA ======== -->
90<H2>
91<FONT SIZE="-1">
92com.fasterxml.jackson.databind</FONT>
93<BR>
94Enum SerializationFeature</H2>
95<PRE>
96<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>
97  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><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;
98      <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.fasterxml.jackson.databind.SerializationFeature</B>
99</PRE>
100<DL>
101<DT><B>All Implemented Interfaces:</B> <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>
102</DL>
103<HR>
104<DL>
105<DT><PRE>public enum <B>SerializationFeature</B><DT>extends <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;<DT>implements <A HREF="../../../../com/fasterxml/jackson/databind/cfg/ConfigFeature.html" title="interface in com.fasterxml.jackson.databind.cfg">ConfigFeature</A></DL>
106</PRE>
107
108<P>
109Enumeration that defines simple on/off features that affect
110 the way Java objects are serialized.
111<p>
112 Note that features can be set both through
113 <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
114 <A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind"><CODE>ObjectWriter</CODE></A>.
115 In first case these defaults must follow "config-then-use" patterns
116 (i.e. defined once, not changed afterwards); all per-call
117 changes must be done using <A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind"><CODE>ObjectWriter</CODE></A>.
118<P>
119
120<P>
121<HR>
122
123<P>
124<!-- =========== ENUM CONSTANT SUMMARY =========== -->
125
126<A NAME="enum_constant_summary"><!-- --></A>
127<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
128<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
129<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
130<B>Enum Constant Summary</B></FONT></TH>
131</TR>
132<TR BGCOLOR="white" CLASS="TableRowColor">
133<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#CLOSE_CLOSEABLE">CLOSE_CLOSEABLE</A></B></CODE>
134
135<BR>
136&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Feature that determines whether <code>close</code> method of
137 serialized <b>root level</b> objects (ones for which <code>ObjectMapper</code>'s
138 writeValue() (or equivalent) method is called)
139 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>
140 is called after serialization or not.</TD>
141</TR>
142<TR BGCOLOR="white" CLASS="TableRowColor">
143<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#EAGER_SERIALIZER_FETCH">EAGER_SERIALIZER_FETCH</A></B></CODE>
144
145<BR>
146&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Feature that determines whether <A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind"><CODE>ObjectWriter</CODE></A> should
147 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
148 possible.</TD>
149</TR>
150<TR BGCOLOR="white" CLASS="TableRowColor">
151<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#FAIL_ON_EMPTY_BEANS">FAIL_ON_EMPTY_BEANS</A></B></CODE>
152
153<BR>
154&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Feature that determines what happens when no accessors are
155 found for a type (and there are no annotations to indicate
156 it is meant to be serialized).</TD>
157</TR>
158<TR BGCOLOR="white" CLASS="TableRowColor">
159<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#FLUSH_AFTER_WRITE_VALUE">FLUSH_AFTER_WRITE_VALUE</A></B></CODE>
160
161<BR>
162&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Feature that determines whether <code>JsonGenerator.flush()</code> is
163 called after <code>writeValue()</code> method <b>that takes JsonGenerator
164 as an argument</b> completes (i.e.</TD>
165</TR>
166<TR BGCOLOR="white" CLASS="TableRowColor">
167<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#INDENT_OUTPUT">INDENT_OUTPUT</A></B></CODE>
168
169<BR>
170&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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.1.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).</TD>
175</TR>
176<TR BGCOLOR="white" CLASS="TableRowColor">
177<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#ORDER_MAP_ENTRIES_BY_KEYS">ORDER_MAP_ENTRIES_BY_KEYS</A></B></CODE>
178
179<BR>
180&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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
181 sorted by key before serialization or not: if enabled, additional sorting
182 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),
183 if disabled, no additional sorting is needed.</TD>
184</TR>
185<TR BGCOLOR="white" CLASS="TableRowColor">
186<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#WRAP_EXCEPTIONS">WRAP_EXCEPTIONS</A></B></CODE>
187
188<BR>
189&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Feature that determines whether Jackson code should catch
190 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!)
191 to add additional information about
192 location (within input) of problem or not.</TD>
193</TR>
194<TR BGCOLOR="white" CLASS="TableRowColor">
195<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#WRAP_ROOT_VALUE">WRAP_ROOT_VALUE</A></B></CODE>
196
197<BR>
198&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Feature that can be enabled to make root value (usually JSON
199 Object but can be any type) wrapped within a single property
200 JSON object, where key as the "root name", as determined by
201 annotation introspector (esp.</TD>
202</TR>
203<TR BGCOLOR="white" CLASS="TableRowColor">
204<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#WRITE_CHAR_ARRAYS_AS_JSON_ARRAYS">WRITE_CHAR_ARRAYS_AS_JSON_ARRAYS</A></B></CODE>
205
206<BR>
207&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Feature that determines how type <code>char[]</code> is serialized:
208 when enabled, will be serialized as an explict JSON array (with
209 single-character Strings as values); when disabled, defaults to
210 serializing them as Strings (which is more compact).</TD>
211</TR>
212<TR BGCOLOR="white" CLASS="TableRowColor">
213<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#WRITE_DATE_KEYS_AS_TIMESTAMPS">WRITE_DATE_KEYS_AS_TIMESTAMPS</A></B></CODE>
214
215<BR>
216&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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
217 (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
218 as timestamps or not (if not, will be serialized as textual
219 values).</TD>
220</TR>
221<TR BGCOLOR="white" CLASS="TableRowColor">
222<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#WRITE_DATES_AS_TIMESTAMPS">WRITE_DATES_AS_TIMESTAMPS</A></B></CODE>
223
224<BR>
225&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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
226 (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
227 serialized as numeric timestamps (true; the default),
228 or as something else (usually textual representation).</TD>
229</TR>
230<TR BGCOLOR="white" CLASS="TableRowColor">
231<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#WRITE_EMPTY_JSON_ARRAYS">WRITE_EMPTY_JSON_ARRAYS</A></B></CODE>
232
233<BR>
234&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Feature that determines whether Container properties (POJO properties
235 with declared value of Collection or array; i.e.</TD>
236</TR>
237<TR BGCOLOR="white" CLASS="TableRowColor">
238<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#WRITE_ENUMS_USING_INDEX">WRITE_ENUMS_USING_INDEX</A></B></CODE>
239
240<BR>
241&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Feature that determines whethere Java Enum values are serialized
242 as numbers (true), or textual values (false).</TD>
243</TR>
244<TR BGCOLOR="white" CLASS="TableRowColor">
245<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#WRITE_ENUMS_USING_TO_STRING">WRITE_ENUMS_USING_TO_STRING</A></B></CODE>
246
247<BR>
248&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Feature that determines standard serialization mechanism used for
249 Enum values: if enabled, return value of <code>Enum.toString()</code>
250 is used; if disabled, return value of <code>Enum.name()</code> is used.</TD>
251</TR>
252<TR BGCOLOR="white" CLASS="TableRowColor">
253<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#WRITE_NULL_MAP_VALUES">WRITE_NULL_MAP_VALUES</A></B></CODE>
254
255<BR>
256&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Feature that determines whether Map entries with null values are
257 to be serialized (true) or not (false).</TD>
258</TR>
259<TR BGCOLOR="white" CLASS="TableRowColor">
260<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#WRITE_SINGLE_ELEM_ARRAYS_UNWRAPPED">WRITE_SINGLE_ELEM_ARRAYS_UNWRAPPED</A></B></CODE>
261
262<BR>
263&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Feature added for interoperability, to work with oddities of
264 so-called "BadgerFish" convention.</TD>
265</TR>
266</TABLE>
267&nbsp;
268<!-- ========== METHOD SUMMARY =========== -->
269
270<A NAME="method_summary"><!-- --></A>
271<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
272<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
273<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
274<B>Method Summary</B></FONT></TH>
275</TR>
276<TR BGCOLOR="white" CLASS="TableRowColor">
277<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
278<CODE>&nbsp;boolean</CODE></FONT></TD>
279<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#enabledByDefault()">enabledByDefault</A></B>()</CODE>
280
281<BR>
282&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Accessor for checking whether this feature is enabled by default.</TD>
283</TR>
284<TR BGCOLOR="white" CLASS="TableRowColor">
285<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
286<CODE>&nbsp;int</CODE></FONT></TD>
287<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#getMask()">getMask</A></B>()</CODE>
288
289<BR>
290&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns bit mask for this feature instance</TD>
291</TR>
292<TR BGCOLOR="white" CLASS="TableRowColor">
293<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
294<CODE>static&nbsp;<A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</A></CODE></FONT></TD>
295<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#valueOf(java.lang.String)">valueOf</A></B>(<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>
296
297<BR>
298&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the enum constant of this type with the specified name.</TD>
299</TR>
300<TR BGCOLOR="white" CLASS="TableRowColor">
301<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
302<CODE>static&nbsp;<A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</A>[]</CODE></FONT></TD>
303<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html#values()">values</A></B>()</CODE>
304
305<BR>
306&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an array containing the constants of this enum type, in
307the order they are declared.</TD>
308</TR>
309</TABLE>
310&nbsp;<A NAME="methods_inherited_from_class_java.lang.Enum"><!-- --></A>
311<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
312<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
313<TH ALIGN="left"><B>Methods inherited from class 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></B></TH>
314</TR>
315<TR BGCOLOR="white" CLASS="TableRowColor">
316<TD><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></TD>
317</TR>
318</TABLE>
319&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
320<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
321<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
322<TH ALIGN="left"><B>Methods inherited from class 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></B></TH>
323</TR>
324<TR BGCOLOR="white" CLASS="TableRowColor">
325<TD><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></TD>
326</TR>
327</TABLE>
328&nbsp;
329<P>
330
331<!-- ============ ENUM CONSTANT DETAIL =========== -->
332
333<A NAME="enum_constant_detail"><!-- --></A>
334<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
335<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
336<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
337<B>Enum Constant Detail</B></FONT></TH>
338</TR>
339</TABLE>
340
341<A NAME="WRAP_ROOT_VALUE"><!-- --></A><H3>
342WRAP_ROOT_VALUE</H3>
343<PRE>
344public static final <A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</A> <B>WRAP_ROOT_VALUE</B></PRE>
345<DL>
346<DD>Feature that can be enabled to make root value (usually JSON
347 Object but can be any type) wrapped within a single property
348 JSON object, where key as the "root name", as determined by
349 annotation introspector (esp. for JAXB that uses
350 <code>@XmlRootElement.name</code>) or fallback (non-qualified
351 class name).
352 Feature is mostly intended for JAXB compatibility.
353<p>
354 Feature is enabled by default.
355<P>
356<DL>
357</DL>
358</DL>
359<HR>
360
361<A NAME="INDENT_OUTPUT"><!-- --></A><H3>
362INDENT_OUTPUT</H3>
363<PRE>
364public static final <A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</A> <B>INDENT_OUTPUT</B></PRE>
365<DL>
366<DD>Feature that allows enabling (or disabling) indentation
367 for the underlying generator, using the default pretty
368 printer (see
369 <A HREF="http://fasterxml.github.com/jackson-core/javadoc/2.1.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>
370 for details).
371<p>
372 Note that this only affects cases where
373 <A HREF="http://fasterxml.github.com/jackson-core/javadoc/2.1.0/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core"><CODE>JsonGenerator</CODE></A>
374 is constructed implicitly by ObjectMapper: if explicit
375 generator is passed, its configuration is not changed.
376<p>
377 Also note that if you want to configure details of indentation,
378 you need to directly configure the generator: there is a
379 method to use any <code>PrettyPrinter</code> instance.
380 This feature will only allow using the default implementation.
381<p>
382 Feature is enabled by default.
383<P>
384<DL>
385</DL>
386</DL>
387<HR>
388
389<A NAME="FAIL_ON_EMPTY_BEANS"><!-- --></A><H3>
390FAIL_ON_EMPTY_BEANS</H3>
391<PRE>
392public static final <A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</A> <B>FAIL_ON_EMPTY_BEANS</B></PRE>
393<DL>
394<DD>Feature that determines what happens when no accessors are
395 found for a type (and there are no annotations to indicate
396 it is meant to be serialized). If enabled (default), an
397 exception is thrown to indicate these as non-serializable
398 types; if disabled, they are serialized as empty Objects,
399 i.e. without any properties.
400<p>
401 Note that empty types that this feature has only effect on
402 those "empty" beans that do not have any recognized annotations
403 (like <code>@JsonSerialize</code>): ones that do have annotations
404 do not result in an exception being thrown.
405<p>
406 Feature is enabled by default.
407<P>
408<DL>
409</DL>
410</DL>
411<HR>
412
413<A NAME="WRAP_EXCEPTIONS"><!-- --></A><H3>
414WRAP_EXCEPTIONS</H3>
415<PRE>
416public static final <A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</A> <B>WRAP_EXCEPTIONS</B></PRE>
417<DL>
418<DD>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.
432<P>
433<DL>
434</DL>
435</DL>
436<HR>
437
438<A NAME="CLOSE_CLOSEABLE"><!-- --></A><H3>
439CLOSE_CLOSEABLE</H3>
440<PRE>
441public static final <A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</A> <B>CLOSE_CLOSEABLE</B></PRE>
442<DL>
443<DD>Feature that determines whether <code>close</code> method of
444 serialized <b>root level</b> objects (ones for which <code>ObjectMapper</code>'s
445 writeValue() (or equivalent) method is called)
446 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>
447 is called after serialization or not. If enabled, <b>close()</b> will
448 be called after serialization completes (whether succesfully, or
449 due to an error manifested by an exception being thrown). You can
450 think of this as sort of "finally" processing.
451<p>
452 NOTE: only affects behavior with <b>root</b> objects, and not other
453 objects reachable from the root object. Put another way, only one
454 call will be made for each 'writeValue' call.
455<p>
456 Feature is disabled by default.
457<P>
458<DL>
459</DL>
460</DL>
461<HR>
462
463<A NAME="FLUSH_AFTER_WRITE_VALUE"><!-- --></A><H3>
464FLUSH_AFTER_WRITE_VALUE</H3>
465<PRE>
466public static final <A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</A> <B>FLUSH_AFTER_WRITE_VALUE</B></PRE>
467<DL>
468<DD>Feature that determines whether <code>JsonGenerator.flush()</code> is
469 called after <code>writeValue()</code> method <b>that takes JsonGenerator
470 as an argument</b> completes (i.e. does NOT affect methods
471 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>.
472 This usually makes sense; but there are cases where flushing
473 should not be forced: for example when underlying stream is
474 compressing and flush() causes compression state to be flushed
475 (which occurs with some compression codecs).
476<p>
477 Feature is enabled by default.
478<P>
479<DL>
480</DL>
481</DL>
482<HR>
483
484<A NAME="WRITE_DATES_AS_TIMESTAMPS"><!-- --></A><H3>
485WRITE_DATES_AS_TIMESTAMPS</H3>
486<PRE>
487public static final <A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</A> <B>WRITE_DATES_AS_TIMESTAMPS</B></PRE>
488<DL>
489<DD>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
490 (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
491 serialized as numeric timestamps (true; the default),
492 or as something else (usually textual representation).
493 If textual representation is used, the actual format is
494 one returned by a call to
495 <A HREF="../../../../com/fasterxml/jackson/databind/cfg/MapperConfig.html#getDateFormat()"><CODE>MapperConfig.getDateFormat()</CODE></A>.
496<p>
497 Note: whether this feature affects handling of other date-related
498 types depend on handlers of those types, although ideally they
499 should use this feature
500<p>
501 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
502 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>.
503<p>
504 Feature is enabled by default.
505<P>
506<DL>
507</DL>
508</DL>
509<HR>
510
511<A NAME="WRITE_DATE_KEYS_AS_TIMESTAMPS"><!-- --></A><H3>
512WRITE_DATE_KEYS_AS_TIMESTAMPS</H3>
513<PRE>
514public static final <A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</A> <B>WRITE_DATE_KEYS_AS_TIMESTAMPS</B></PRE>
515<DL>
516<DD>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
517 (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
518 as timestamps or not (if not, will be serialized as textual
519 values).
520<p>
521 Default value is 'false', meaning that Date-valued Map keys are serialized
522 as textual (ISO-8601) values.
523<p>
524 Feature is disabled by default.
525<P>
526<DL>
527</DL>
528</DL>
529<HR>
530
531<A NAME="WRITE_CHAR_ARRAYS_AS_JSON_ARRAYS"><!-- --></A><H3>
532WRITE_CHAR_ARRAYS_AS_JSON_ARRAYS</H3>
533<PRE>
534public static final <A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</A> <B>WRITE_CHAR_ARRAYS_AS_JSON_ARRAYS</B></PRE>
535<DL>
536<DD>Feature that determines how type <code>char[]</code> is serialized:
537 when enabled, will be serialized as an explict JSON array (with
538 single-character Strings as values); when disabled, defaults to
539 serializing them as Strings (which is more compact).
540<p>
541 Feature is disabled by default.
542<P>
543<DL>
544</DL>
545</DL>
546<HR>
547
548<A NAME="WRITE_ENUMS_USING_TO_STRING"><!-- --></A><H3>
549WRITE_ENUMS_USING_TO_STRING</H3>
550<PRE>
551public static final <A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</A> <B>WRITE_ENUMS_USING_TO_STRING</B></PRE>
552<DL>
553<DD>Feature that determines standard serialization mechanism used for
554 Enum values: if enabled, return value of <code>Enum.toString()</code>
555 is used; if disabled, return value of <code>Enum.name()</code> is used.
556<p>
557 Note: this feature should usually have same value
558 as <A HREF="../../../../com/fasterxml/jackson/databind/DeserializationFeature.html#READ_ENUMS_USING_TO_STRING"><CODE>DeserializationFeature.READ_ENUMS_USING_TO_STRING</CODE></A>.
559<p>
560 Feature is disabled by default.
561<P>
562<DL>
563</DL>
564</DL>
565<HR>
566
567<A NAME="WRITE_ENUMS_USING_INDEX"><!-- --></A><H3>
568WRITE_ENUMS_USING_INDEX</H3>
569<PRE>
570public static final <A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</A> <B>WRITE_ENUMS_USING_INDEX</B></PRE>
571<DL>
572<DD>Feature that determines whethere Java Enum values are serialized
573 as numbers (true), or textual values (false). If textual values are
574 used, other settings are also considered.
575 If this feature is enabled,
576  return value of <code>Enum.ordinal()</code>
577 (an integer) will be used as the serialization.
578<p>
579 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>,
580 which is only considered if this feature is set to false.
581<p>
582 Feature is disabled by default.
583<P>
584<DL>
585</DL>
586</DL>
587<HR>
588
589<A NAME="WRITE_NULL_MAP_VALUES"><!-- --></A><H3>
590WRITE_NULL_MAP_VALUES</H3>
591<PRE>
592public static final <A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</A> <B>WRITE_NULL_MAP_VALUES</B></PRE>
593<DL>
594<DD>Feature that determines whether Map entries with null values are
595 to be serialized (true) or not (false).
596<p>
597 For further details, check out [JACKSON-314]
598<p>
599 Feature is enabled by default.
600<P>
601<DL>
602</DL>
603</DL>
604<HR>
605
606<A NAME="WRITE_EMPTY_JSON_ARRAYS"><!-- --></A><H3>
607WRITE_EMPTY_JSON_ARRAYS</H3>
608<PRE>
609public static final <A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</A> <B>WRITE_EMPTY_JSON_ARRAYS</B></PRE>
610<DL>
611<DD>Feature that determines whether Container properties (POJO properties
612 with declared value of Collection or array; i.e. things that produce JSON
613 arrays) that are empty (have no elements)
614 will be serialized as empty JSON arrays (true), or suppressed from output (false).
615<p>
616 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
617 "Collection-like" types.
618<p>
619 Feature is enabled by default.
620<P>
621<DL>
622</DL>
623</DL>
624<HR>
625
626<A NAME="WRITE_SINGLE_ELEM_ARRAYS_UNWRAPPED"><!-- --></A><H3>
627WRITE_SINGLE_ELEM_ARRAYS_UNWRAPPED</H3>
628<PRE>
629public static final <A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</A> <B>WRITE_SINGLE_ELEM_ARRAYS_UNWRAPPED</B></PRE>
630<DL>
631<DD>Feature added for interoperability, to work with oddities of
632 so-called "BadgerFish" convention.
633 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
634 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
635 one element will be serialized as if that element itself was serialized.
636<p>
637 When enabled, a POJO with array that normally looks like this:
638<pre>
639  { "arrayProperty" : [ 1 ] }
640</pre>
641 will instead be serialized as
642<pre>
643  { "arrayProperty" : 1 }
644</pre>
645<p>
646 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>
647 (that is, usually both are enabled, or neither is).
648<p>
649 Feature is disabled by default, so that no special handling is done.
650<P>
651<DL>
652</DL>
653</DL>
654<HR>
655
656<A NAME="ORDER_MAP_ENTRIES_BY_KEYS"><!-- --></A><H3>
657ORDER_MAP_ENTRIES_BY_KEYS</H3>
658<PRE>
659public static final <A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</A> <B>ORDER_MAP_ENTRIES_BY_KEYS</B></PRE>
660<DL>
661<DD>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
662 sorted by key before serialization or not: if enabled, additional sorting
663 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),
664 if disabled, no additional sorting is needed.
665<p>
666 Feature is disabled by default.
667<P>
668<DL>
669</DL>
670</DL>
671<HR>
672
673<A NAME="EAGER_SERIALIZER_FETCH"><!-- --></A><H3>
674EAGER_SERIALIZER_FETCH</H3>
675<PRE>
676public static final <A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</A> <B>EAGER_SERIALIZER_FETCH</B></PRE>
677<DL>
678<DD>Feature that determines whether <A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind"><CODE>ObjectWriter</CODE></A> should
679 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
680 possible. This improves performance in cases where similarly
681 configured <A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind"><CODE>ObjectWriter</CODE></A> instance is used multiple
682 times; and should not significantly affect single-use cases.
683<p>
684 Note that there should not be any need to normally disable this
685 feature: only consider that if there are actual perceived problems.
686<p>
687 Feature is enabled by default.
688<P>
689<DL>
690<DT><B>Since:</B></DT>
691  <DD>2.1</DD>
692</DL>
693</DL>
694
695<!-- ============ METHOD DETAIL ========== -->
696
697<A NAME="method_detail"><!-- --></A>
698<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
699<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
700<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
701<B>Method Detail</B></FONT></TH>
702</TR>
703</TABLE>
704
705<A NAME="values()"><!-- --></A><H3>
706values</H3>
707<PRE>
708public static <A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</A>[] <B>values</B>()</PRE>
709<DL>
710<DD>Returns an array containing the constants of this enum type, in
711the order they are declared.  This method may be used to iterate
712over the constants as follows:
713<pre>
714for (SerializationFeature c : SerializationFeature.values())
715&nbsp;   System.out.println(c);
716</pre>
717<P>
718<DD><DL>
719</DL>
720</DD>
721<DD><DL>
722
723<DT><B>Returns:</B><DD>an array containing the constants of this enum type, in
724the order they are declared</DL>
725</DD>
726</DL>
727<HR>
728
729<A NAME="valueOf(java.lang.String)"><!-- --></A><H3>
730valueOf</H3>
731<PRE>
732public static <A HREF="../../../../com/fasterxml/jackson/databind/SerializationFeature.html" title="enum in com.fasterxml.jackson.databind">SerializationFeature</A> <B>valueOf</B>(<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>
733<DL>
734<DD>Returns the enum constant of this type with the specified name.
735The string must match <I>exactly</I> an identifier used to declare an
736enum constant in this type.  (Extraneous whitespace characters are
737not permitted.)
738<P>
739<DD><DL>
740</DL>
741</DD>
742<DD><DL>
743<DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the enum constant to be returned.
744<DT><B>Returns:</B><DD>the enum constant with the specified name
745<DT><B>Throws:</B>
746<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
747with the specified name
748<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</DL>
749</DD>
750</DL>
751<HR>
752
753<A NAME="enabledByDefault()"><!-- --></A><H3>
754enabledByDefault</H3>
755<PRE>
756public boolean <B>enabledByDefault</B>()</PRE>
757<DL>
758<DD><B>Description copied from interface: <CODE><A HREF="../../../../com/fasterxml/jackson/databind/cfg/ConfigFeature.html#enabledByDefault()">ConfigFeature</A></CODE></B></DD>
759<DD>Accessor for checking whether this feature is enabled by default.
760<P>
761<DD><DL>
762<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/fasterxml/jackson/databind/cfg/ConfigFeature.html#enabledByDefault()">enabledByDefault</A></CODE> in interface <CODE><A HREF="../../../../com/fasterxml/jackson/databind/cfg/ConfigFeature.html" title="interface in com.fasterxml.jackson.databind.cfg">ConfigFeature</A></CODE></DL>
763</DD>
764<DD><DL>
765</DL>
766</DD>
767</DL>
768<HR>
769
770<A NAME="getMask()"><!-- --></A><H3>
771getMask</H3>
772<PRE>
773public int <B>getMask</B>()</PRE>
774<DL>
775<DD><B>Description copied from interface: <CODE><A HREF="../../../../com/fasterxml/jackson/databind/cfg/ConfigFeature.html#getMask()">ConfigFeature</A></CODE></B></DD>
776<DD>Returns bit mask for this feature instance
777<P>
778<DD><DL>
779<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/fasterxml/jackson/databind/cfg/ConfigFeature.html#getMask()">getMask</A></CODE> in interface <CODE><A HREF="../../../../com/fasterxml/jackson/databind/cfg/ConfigFeature.html" title="interface in com.fasterxml.jackson.databind.cfg">ConfigFeature</A></CODE></DL>
780</DD>
781<DD><DL>
782</DL>
783</DD>
784</DL>
785<!-- ========= END OF CLASS DATA ========= -->
786<HR>
787
788
789<!-- ======= START OF BOTTOM NAVBAR ====== -->
790<A NAME="navbar_bottom"><!-- --></A>
791<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
792<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
793<TR>
794<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
795<A NAME="navbar_bottom_firstrow"><!-- --></A>
796<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
797  <TR ALIGN="center" VALIGN="top">
798  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
799  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
800  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
801  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/SerializationFeature.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
802  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
803  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
804  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
805  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
806  </TR>
807</TABLE>
808</TD>
809<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
810</EM>
811</TD>
812</TR>
813
814<TR>
815<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
816&nbsp;<A HREF="../../../../com/fasterxml/jackson/databind/SerializationConfig.html" title="class in com.fasterxml.jackson.databind"><B>PREV CLASS</B></A>&nbsp;
817&nbsp;<A HREF="../../../../com/fasterxml/jackson/databind/SerializerProvider.html" title="class in com.fasterxml.jackson.databind"><B>NEXT CLASS</B></A></FONT></TD>
818<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
819  <A HREF="../../../../index.html?com/fasterxml/jackson/databind/SerializationFeature.html" target="_top"><B>FRAMES</B></A>  &nbsp;
820&nbsp;<A HREF="SerializationFeature.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
821&nbsp;<SCRIPT type="text/javascript">
822  <!--
823  if(window==top) {
824    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
825  }
826  //-->
827</SCRIPT>
828<NOSCRIPT>
829  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
830</NOSCRIPT>
831
832
833</FONT></TD>
834</TR>
835<TR>
836<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
837  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#enum_constant_summary">ENUM CONSTANTS</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
838<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
839DETAIL:&nbsp;<A HREF="#enum_constant_detail">ENUM CONSTANTS</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
840</TR>
841</TABLE>
842<A NAME="skip-navbar_bottom"></A>
843<!-- ======== END OF BOTTOM NAVBAR ======= -->
844
845<HR>
846Copyright &#169; 2012 <a href="http://fasterxml.com/">FasterXML</a>. All Rights Reserved.
847</BODY>
848</HTML>
849