1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2<!-- NewPage --> 3<html lang="en"> 4<head> 5<!-- Generated by javadoc (version 1.7.0_25) on Thu Jan 01 17:43:55 PST 2015 --> 6<meta http-equiv="Content-Type" content="text/html" charset="UTF-8"> 7<title>MapperFeature (jackson-databind 2.5.0 API)</title> 8<meta name="date" content="2015-01-01"> 9<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> 10</head> 11<body> 12<script type="text/javascript"><!-- 13 if (location.href.indexOf('is-external=true') == -1) { 14 parent.document.title="MapperFeature (jackson-databind 2.5.0 API)"; 15 } 16//--> 17</script> 18<noscript> 19<div>JavaScript is disabled on your browser.</div> 20</noscript> 21<!-- ========= START OF TOP NAVBAR ======= --> 22<div class="topNav"><a name="navbar_top"> 23<!-- --> 24</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> 25<!-- --> 26</a> 27<ul class="navList" title="Navigation"> 28<li><a href="../../../../overview-summary.html">Overview</a></li> 29<li><a href="package-summary.html">Package</a></li> 30<li class="navBarCell1Rev">Class</li> 31<li><a href="class-use/MapperFeature.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/KeyDeserializer.None.html" title="class in com.fasterxml.jackson.databind"><span class="strong">Prev Class</span></a></li> 41<li><a href="../../../../com/fasterxml/jackson/databind/MappingIterator.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/MapperFeature.html" target="_top">Frames</a></li> 45<li><a href="MapperFeature.html" target="_top">No Frames</a></li> 46</ul> 47<ul class="navList" id="allclasses_navbar_top"> 48<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> 49</ul> 50<div> 51<script type="text/javascript"><!-- 52 allClassesLink = document.getElementById("allclasses_navbar_top"); 53 if(window==top) { 54 allClassesLink.style.display = "block"; 55 } 56 else { 57 allClassesLink.style.display = "none"; 58 } 59 //--> 60</script> 61</div> 62<div> 63<ul class="subNavList"> 64<li>Summary: </li> 65<li>Nested | </li> 66<li><a href="#enum_constant_summary">Enum Constants</a> | </li> 67<li>Field | </li> 68<li><a href="#method_summary">Method</a></li> 69</ul> 70<ul class="subNavList"> 71<li>Detail: </li> 72<li><a href="#enum_constant_detail">Enum Constants</a> | </li> 73<li>Field | </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 MapperFeature" class="title">Enum MapperFeature</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><<a href="../../../../com/fasterxml/jackson/databind/MapperFeature.html" title="enum in com.fasterxml.jackson.databind">MapperFeature</a>></li> 92<li> 93<ul class="inheritance"> 94<li>com.fasterxml.jackson.databind.MapperFeature</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><<a href="../../../../com/fasterxml/jackson/databind/MapperFeature.html" title="enum in com.fasterxml.jackson.databind">MapperFeature</a>></dd> 106</dl> 107<hr> 108<br> 109<pre>public enum <span class="strong">MapperFeature</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><<a href="../../../../com/fasterxml/jackson/databind/MapperFeature.html" title="enum in com.fasterxml.jackson.databind">MapperFeature</a>> 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 to set 113 for <a href="../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind"><code>ObjectMapper</code></a>, and accessible (but not changeable) 114 via <a href="../../../../com/fasterxml/jackson/databind/ObjectReader.html" title="class in com.fasterxml.jackson.databind"><code>ObjectReader</code></a> and <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind"><code>ObjectWriter</code></a> (as well as 115 through various convenience methods through context objects). 116<p> 117 Note that in addition to being only mutable via <a href="../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind"><code>ObjectMapper</code></a>, 118 changes only take effect when done <b>before any serialization or 119 deserialization</b> calls -- that is, caller must follow 120 "configure-then-use" pattern.</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"> </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/MapperFeature.html#ACCEPT_CASE_INSENSITIVE_PROPERTIES">ACCEPT_CASE_INSENSITIVE_PROPERTIES</a></strong></code> 140<div class="block">Feature that will allow for more forgiving deserialization of incoming JSON.</div> 141</td> 142</tr> 143<tr class="rowColor"> 144<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MapperFeature.html#ALLOW_FINAL_FIELDS_AS_MUTATORS">ALLOW_FINAL_FIELDS_AS_MUTATORS</a></strong></code> 145<div class="block">Feature that determines whether member fields declared as 'final' may 146 be auto-detected to be used mutators (used to change value of the logical 147 property) or not.</div> 148</td> 149</tr> 150<tr class="altColor"> 151<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MapperFeature.html#AUTO_DETECT_CREATORS">AUTO_DETECT_CREATORS</a></strong></code> 152<div class="block">Feature that determines whether "creator" methods are 153 automatically detected by consider public constructors, 154 and static single argument methods with name "valueOf".</div> 155</td> 156</tr> 157<tr class="rowColor"> 158<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MapperFeature.html#AUTO_DETECT_FIELDS">AUTO_DETECT_FIELDS</a></strong></code> 159<div class="block">Feature that determines whether non-static fields are recognized as 160 properties.</div> 161</td> 162</tr> 163<tr class="altColor"> 164<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MapperFeature.html#AUTO_DETECT_GETTERS">AUTO_DETECT_GETTERS</a></strong></code> 165<div class="block">Feature that determines whether regular "getter" methods are 166 automatically detected based on standard Bean naming convention 167 or not.</div> 168</td> 169</tr> 170<tr class="rowColor"> 171<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MapperFeature.html#AUTO_DETECT_IS_GETTERS">AUTO_DETECT_IS_GETTERS</a></strong></code> 172<div class="block">Feature that determines whether "is getter" methods are 173 automatically detected based on standard Bean naming convention 174 or not.</div> 175</td> 176</tr> 177<tr class="altColor"> 178<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MapperFeature.html#AUTO_DETECT_SETTERS">AUTO_DETECT_SETTERS</a></strong></code> 179<div class="block">Feature that determines whether "setter" methods are 180 automatically detected based on standard Bean naming convention 181 or not.</div> 182</td> 183</tr> 184<tr class="rowColor"> 185<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MapperFeature.html#CAN_OVERRIDE_ACCESS_MODIFIERS">CAN_OVERRIDE_ACCESS_MODIFIERS</a></strong></code> 186<div class="block">Feature that determines whether method and field access 187 modifier settings can be overridden when accessing 188 properties.</div> 189</td> 190</tr> 191<tr class="altColor"> 192<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MapperFeature.html#DEFAULT_VIEW_INCLUSION">DEFAULT_VIEW_INCLUSION</a></strong></code> 193<div class="block">Feature that determines whether properties that have no view 194 annotations are included in JSON serialization views (see 195 <code>JsonView</code> for more 196 details on JSON Views).</div> 197</td> 198</tr> 199<tr class="rowColor"> 200<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MapperFeature.html#IGNORE_DUPLICATE_MODULE_REGISTRATIONS">IGNORE_DUPLICATE_MODULE_REGISTRATIONS</a></strong></code> 201<div class="block">Feature that determines whether multiple registrations of same module 202 should be ignored or not; if enabled, only the first registration call 203 results in module being called, and possible duplicate calls are silently 204 ignored; if disabled, no checking is done and all registration calls are 205 dispatched to module.</div> 206</td> 207</tr> 208<tr class="altColor"> 209<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MapperFeature.html#INFER_PROPERTY_MUTATORS">INFER_PROPERTY_MUTATORS</a></strong></code> 210<div class="block">Feature that determines whether member mutators (fields and 211 setters) may be "pulled in" even if they are not visible, 212 as long as there is a visible accessor (getter or field) with same name.</div> 213</td> 214</tr> 215<tr class="rowColor"> 216<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MapperFeature.html#REQUIRE_SETTERS_FOR_GETTERS">REQUIRE_SETTERS_FOR_GETTERS</a></strong></code> 217<div class="block">Feature that determines whether getters (getter methods) 218 can be auto-detected if there is no matching mutator (setter, 219 constructor parameter or field) or not: if set to true, 220 only getters that match a mutator are auto-discovered; if 221 false, all auto-detectable getters can be discovered.</div> 222</td> 223</tr> 224<tr class="altColor"> 225<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MapperFeature.html#SORT_PROPERTIES_ALPHABETICALLY">SORT_PROPERTIES_ALPHABETICALLY</a></strong></code> 226<div class="block">Feature that defines default property serialization order used 227 for POJO fields (note: does <b>not</b> apply to <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> 228 serialization!): 229 if enabled, default ordering is alphabetic (similar to 230 how <code>JsonPropertyOrder.alphabetic()</code> 231 works); if disabled, order is unspecified (based on what JDK gives 232 us, which may be declaration order, but is not guaranteed).</div> 233</td> 234</tr> 235<tr class="rowColor"> 236<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MapperFeature.html#USE_ANNOTATIONS">USE_ANNOTATIONS</a></strong></code> 237<div class="block">Feature that determines whether annotation introspection 238 is used for configuration; if enabled, configured 239 <a href="../../../../com/fasterxml/jackson/databind/AnnotationIntrospector.html" title="class in com.fasterxml.jackson.databind"><code>AnnotationIntrospector</code></a> will be used: if disabled, 240 no annotations are considered.</div> 241</td> 242</tr> 243<tr class="altColor"> 244<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MapperFeature.html#USE_GETTERS_AS_SETTERS">USE_GETTERS_AS_SETTERS</a></strong></code> 245<div class="block">Feature that determines whether otherwise regular "getter" 246 methods (but only ones that handle Collections and Maps, 247 not getters of other type) 248 can be used for purpose of getting a reference to a Collection 249 and Map to modify the property, without requiring a setter 250 method.</div> 251</td> 252</tr> 253<tr class="rowColor"> 254<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MapperFeature.html#USE_STATIC_TYPING">USE_STATIC_TYPING</a></strong></code> 255<div class="block">Feature that determines whether the type detection for 256 serialization should be using actual dynamic runtime type, 257 or declared static type.</div> 258</td> 259</tr> 260<tr class="altColor"> 261<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MapperFeature.html#USE_STD_BEAN_NAMING">USE_STD_BEAN_NAMING</a></strong></code> 262<div class="block">Feature that may be enabled to enforce strict compatibility with 263 Bean name introspection, instead of slightly different mechanism 264 Jackson defaults to.</div> 265</td> 266</tr> 267<tr class="rowColor"> 268<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MapperFeature.html#USE_WRAPPER_NAME_AS_PROPERTY_NAME">USE_WRAPPER_NAME_AS_PROPERTY_NAME</a></strong></code> 269<div class="block">Feature that can be enabled to make property names be 270 overridden by wrapper name (usually detected with annotations 271 as defined by <a href="../../../../com/fasterxml/jackson/databind/AnnotationIntrospector.html#findWrapperName(com.fasterxml.jackson.databind.introspect.Annotated)"><code>AnnotationIntrospector.findWrapperName(com.fasterxml.jackson.databind.introspect.Annotated)</code></a>.</div> 272</td> 273</tr> 274</table> 275</li> 276</ul> 277<!-- ========== METHOD SUMMARY =========== --> 278<ul class="blockList"> 279<li class="blockList"><a name="method_summary"> 280<!-- --> 281</a> 282<h3>Method Summary</h3> 283<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> 284<caption><span>Methods</span><span class="tabEnd"> </span></caption> 285<tr> 286<th class="colFirst" scope="col">Modifier and Type</th> 287<th class="colLast" scope="col">Method and Description</th> 288</tr> 289<tr class="altColor"> 290<td class="colFirst"><code>boolean</code></td> 291<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MapperFeature.html#enabledByDefault()">enabledByDefault</a></strong>()</code> 292<div class="block">Accessor for checking whether this feature is enabled by default.</div> 293</td> 294</tr> 295<tr class="rowColor"> 296<td class="colFirst"><code>boolean</code></td> 297<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MapperFeature.html#enabledIn(int)">enabledIn</a></strong>(int flags)</code> </td> 298</tr> 299<tr class="altColor"> 300<td class="colFirst"><code>int</code></td> 301<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MapperFeature.html#getMask()">getMask</a></strong>()</code> 302<div class="block">Returns bit mask for this feature instance</div> 303</td> 304</tr> 305<tr class="rowColor"> 306<td class="colFirst"><code>static <a href="../../../../com/fasterxml/jackson/databind/MapperFeature.html" title="enum in com.fasterxml.jackson.databind">MapperFeature</a></code></td> 307<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MapperFeature.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> name)</code> 308<div class="block">Returns the enum constant of this type with the specified name.</div> 309</td> 310</tr> 311<tr class="altColor"> 312<td class="colFirst"><code>static <a href="../../../../com/fasterxml/jackson/databind/MapperFeature.html" title="enum in com.fasterxml.jackson.databind">MapperFeature</a>[]</code></td> 313<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/MapperFeature.html#values()">values</a></strong>()</code> 314<div class="block">Returns an array containing the constants of this enum type, in 315the order they are declared.</div> 316</td> 317</tr> 318</table> 319<ul class="blockList"> 320<li class="blockList"><a name="methods_inherited_from_class_java.lang.Enum"> 321<!-- --> 322</a> 323<h3>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></h3> 324<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> 325</ul> 326<ul class="blockList"> 327<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> 328<!-- --> 329</a> 330<h3>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></h3> 331<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> 332</ul> 333</li> 334</ul> 335</li> 336</ul> 337</div> 338<div class="details"> 339<ul class="blockList"> 340<li class="blockList"> 341<!-- ============ ENUM CONSTANT DETAIL =========== --> 342<ul class="blockList"> 343<li class="blockList"><a name="enum_constant_detail"> 344<!-- --> 345</a> 346<h3>Enum Constant Detail</h3> 347<a name="USE_ANNOTATIONS"> 348<!-- --> 349</a> 350<ul class="blockList"> 351<li class="blockList"> 352<h4>USE_ANNOTATIONS</h4> 353<pre>public static final <a href="../../../../com/fasterxml/jackson/databind/MapperFeature.html" title="enum in com.fasterxml.jackson.databind">MapperFeature</a> USE_ANNOTATIONS</pre> 354<div class="block">Feature that determines whether annotation introspection 355 is used for configuration; if enabled, configured 356 <a href="../../../../com/fasterxml/jackson/databind/AnnotationIntrospector.html" title="class in com.fasterxml.jackson.databind"><code>AnnotationIntrospector</code></a> will be used: if disabled, 357 no annotations are considered. 358<p> 359 Feature is enabled by default.</div> 360</li> 361</ul> 362<a name="AUTO_DETECT_CREATORS"> 363<!-- --> 364</a> 365<ul class="blockList"> 366<li class="blockList"> 367<h4>AUTO_DETECT_CREATORS</h4> 368<pre>public static final <a href="../../../../com/fasterxml/jackson/databind/MapperFeature.html" title="enum in com.fasterxml.jackson.databind">MapperFeature</a> AUTO_DETECT_CREATORS</pre> 369<div class="block">Feature that determines whether "creator" methods are 370 automatically detected by consider public constructors, 371 and static single argument methods with name "valueOf". 372 If disabled, only methods explicitly annotated are considered 373 creator methods (except for the no-arg default constructor which 374 is always considered a factory method). 375<p> 376 Note that this feature has lower precedence than per-class 377 annotations, and is only used if there isn't more granular 378 configuration available. 379<P> 380 Feature is enabled by default.</div> 381</li> 382</ul> 383<a name="AUTO_DETECT_FIELDS"> 384<!-- --> 385</a> 386<ul class="blockList"> 387<li class="blockList"> 388<h4>AUTO_DETECT_FIELDS</h4> 389<pre>public static final <a href="../../../../com/fasterxml/jackson/databind/MapperFeature.html" title="enum in com.fasterxml.jackson.databind">MapperFeature</a> AUTO_DETECT_FIELDS</pre> 390<div class="block">Feature that determines whether non-static fields are recognized as 391 properties. 392 If yes, then all public member fields 393 are considered as properties. If disabled, only fields explicitly 394 annotated are considered property fields. 395<p> 396 Note that this feature has lower precedence than per-class 397 annotations, and is only used if there isn't more granular 398 configuration available. 399<p> 400 Feature is enabled by default.</div> 401</li> 402</ul> 403<a name="AUTO_DETECT_GETTERS"> 404<!-- --> 405</a> 406<ul class="blockList"> 407<li class="blockList"> 408<h4>AUTO_DETECT_GETTERS</h4> 409<pre>public static final <a href="../../../../com/fasterxml/jackson/databind/MapperFeature.html" title="enum in com.fasterxml.jackson.databind">MapperFeature</a> AUTO_DETECT_GETTERS</pre> 410<div class="block">Feature that determines whether regular "getter" methods are 411 automatically detected based on standard Bean naming convention 412 or not. If yes, then all public zero-argument methods that 413 start with prefix "get" 414 are considered as getters. 415 If disabled, only methods explicitly annotated are considered getters. 416<p> 417 Note that since version 1.3, this does <b>NOT</b> include 418 "is getters" (see <a href="../../../../com/fasterxml/jackson/databind/MapperFeature.html#AUTO_DETECT_IS_GETTERS"><code>AUTO_DETECT_IS_GETTERS</code></a> for details) 419<p> 420 Note that this feature has lower precedence than per-class 421 annotations, and is only used if there isn't more granular 422 configuration available. 423<p> 424 Feature is enabled by default.</div> 425</li> 426</ul> 427<a name="AUTO_DETECT_IS_GETTERS"> 428<!-- --> 429</a> 430<ul class="blockList"> 431<li class="blockList"> 432<h4>AUTO_DETECT_IS_GETTERS</h4> 433<pre>public static final <a href="../../../../com/fasterxml/jackson/databind/MapperFeature.html" title="enum in com.fasterxml.jackson.databind">MapperFeature</a> AUTO_DETECT_IS_GETTERS</pre> 434<div class="block">Feature that determines whether "is getter" methods are 435 automatically detected based on standard Bean naming convention 436 or not. If yes, then all public zero-argument methods that 437 start with prefix "is", and whose return type is boolean 438 are considered as "is getters". 439 If disabled, only methods explicitly annotated are considered getters. 440<p> 441 Note that this feature has lower precedence than per-class 442 annotations, and is only used if there isn't more granular 443 configuration available. 444<p> 445 Feature is enabled by default.</div> 446</li> 447</ul> 448<a name="AUTO_DETECT_SETTERS"> 449<!-- --> 450</a> 451<ul class="blockList"> 452<li class="blockList"> 453<h4>AUTO_DETECT_SETTERS</h4> 454<pre>public static final <a href="../../../../com/fasterxml/jackson/databind/MapperFeature.html" title="enum in com.fasterxml.jackson.databind">MapperFeature</a> AUTO_DETECT_SETTERS</pre> 455<div class="block">Feature that determines whether "setter" methods are 456 automatically detected based on standard Bean naming convention 457 or not. If yes, then all public one-argument methods that 458 start with prefix "set" 459 are considered setters. If disabled, only methods explicitly 460 annotated are considered setters. 461<p> 462 Note that this feature has lower precedence than per-class 463 annotations, and is only used if there isn't more granular 464 configuration available. 465<P> 466 Feature is enabled by default.</div> 467</li> 468</ul> 469<a name="REQUIRE_SETTERS_FOR_GETTERS"> 470<!-- --> 471</a> 472<ul class="blockList"> 473<li class="blockList"> 474<h4>REQUIRE_SETTERS_FOR_GETTERS</h4> 475<pre>public static final <a href="../../../../com/fasterxml/jackson/databind/MapperFeature.html" title="enum in com.fasterxml.jackson.databind">MapperFeature</a> REQUIRE_SETTERS_FOR_GETTERS</pre> 476<div class="block">Feature that determines whether getters (getter methods) 477 can be auto-detected if there is no matching mutator (setter, 478 constructor parameter or field) or not: if set to true, 479 only getters that match a mutator are auto-discovered; if 480 false, all auto-detectable getters can be discovered. 481<p> 482 Feature is disabled by default.</div> 483</li> 484</ul> 485<a name="USE_GETTERS_AS_SETTERS"> 486<!-- --> 487</a> 488<ul class="blockList"> 489<li class="blockList"> 490<h4>USE_GETTERS_AS_SETTERS</h4> 491<pre>public static final <a href="../../../../com/fasterxml/jackson/databind/MapperFeature.html" title="enum in com.fasterxml.jackson.databind">MapperFeature</a> USE_GETTERS_AS_SETTERS</pre> 492<div class="block">Feature that determines whether otherwise regular "getter" 493 methods (but only ones that handle Collections and Maps, 494 not getters of other type) 495 can be used for purpose of getting a reference to a Collection 496 and Map to modify the property, without requiring a setter 497 method. 498 This is similar to how JAXB framework sets Collections and 499 Maps: no setter is involved, just setter. 500<p> 501 Note that such getters-as-setters methods have lower 502 precedence than setters, so they are only used if no 503 setter is found for the Map/Collection property. 504<p> 505 Feature is enabled by default.</div> 506</li> 507</ul> 508<a name="CAN_OVERRIDE_ACCESS_MODIFIERS"> 509<!-- --> 510</a> 511<ul class="blockList"> 512<li class="blockList"> 513<h4>CAN_OVERRIDE_ACCESS_MODIFIERS</h4> 514<pre>public static final <a href="../../../../com/fasterxml/jackson/databind/MapperFeature.html" title="enum in com.fasterxml.jackson.databind">MapperFeature</a> CAN_OVERRIDE_ACCESS_MODIFIERS</pre> 515<div class="block">Feature that determines whether method and field access 516 modifier settings can be overridden when accessing 517 properties. If enabled, method 518 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/reflect/AccessibleObject.html?is-external=true#setAccessible(java.lang.reflect.AccessibleObject[], boolean)" title="class or interface in java.lang.reflect"><code>AccessibleObject.setAccessible(java.lang.reflect.AccessibleObject[], boolean)</code></a> 519 may be called to enable access to otherwise unaccessible 520 objects. 521<p> 522 Feature is enabled by default.</div> 523</li> 524</ul> 525<a name="INFER_PROPERTY_MUTATORS"> 526<!-- --> 527</a> 528<ul class="blockList"> 529<li class="blockList"> 530<h4>INFER_PROPERTY_MUTATORS</h4> 531<pre>public static final <a href="../../../../com/fasterxml/jackson/databind/MapperFeature.html" title="enum in com.fasterxml.jackson.databind">MapperFeature</a> INFER_PROPERTY_MUTATORS</pre> 532<div class="block">Feature that determines whether member mutators (fields and 533 setters) may be "pulled in" even if they are not visible, 534 as long as there is a visible accessor (getter or field) with same name. 535 For example: field "value" may be inferred as mutator, 536 if there is visible or explicitly marked getter "getValue()". 537 If enabled, inferring is enabled; otherwise (disabled) only visible and 538 explicitly annotated accessors are ever used. 539<p> 540 Note that 'getters' are never inferred and need to be either visible (including 541 bean-style naming) or explicitly annotated. 542<p> 543 Feature is enabled by default.</div> 544<dl><dt><span class="strong">Since:</span></dt> 545 <dd>2.2</dd></dl> 546</li> 547</ul> 548<a name="ALLOW_FINAL_FIELDS_AS_MUTATORS"> 549<!-- --> 550</a> 551<ul class="blockList"> 552<li class="blockList"> 553<h4>ALLOW_FINAL_FIELDS_AS_MUTATORS</h4> 554<pre>public static final <a href="../../../../com/fasterxml/jackson/databind/MapperFeature.html" title="enum in com.fasterxml.jackson.databind">MapperFeature</a> ALLOW_FINAL_FIELDS_AS_MUTATORS</pre> 555<div class="block">Feature that determines whether member fields declared as 'final' may 556 be auto-detected to be used mutators (used to change value of the logical 557 property) or not. If enabled, 'final' access modifier has no effect, and 558 such fields may be detected according to usual visibility and inference 559 rules; if disabled, such fields are NOT used as mutators except if 560 explicitly annotated for such use. 561<p> 562 Feature is enabled by default, for backwards compatibility reasons.</div> 563<dl><dt><span class="strong">Since:</span></dt> 564 <dd>2.2</dd></dl> 565</li> 566</ul> 567<a name="USE_STATIC_TYPING"> 568<!-- --> 569</a> 570<ul class="blockList"> 571<li class="blockList"> 572<h4>USE_STATIC_TYPING</h4> 573<pre>public static final <a href="../../../../com/fasterxml/jackson/databind/MapperFeature.html" title="enum in com.fasterxml.jackson.databind">MapperFeature</a> USE_STATIC_TYPING</pre> 574<div class="block">Feature that determines whether the type detection for 575 serialization should be using actual dynamic runtime type, 576 or declared static type. 577 Note that deserialization always uses declared static types 578 since no runtime types are available (as we are creating 579 instances after using type information). 580<p> 581 This global default value can be overridden at class, method 582 or field level by using <a href="../../../../com/fasterxml/jackson/databind/annotation/JsonSerialize.html#typing()"><code>JsonSerialize.typing()</code></a> annotation 583 property. 584<p> 585 Feature is disabled by default which means that dynamic runtime types 586 are used (instead of declared static types) for serialization.</div> 587</li> 588</ul> 589<a name="DEFAULT_VIEW_INCLUSION"> 590<!-- --> 591</a> 592<ul class="blockList"> 593<li class="blockList"> 594<h4>DEFAULT_VIEW_INCLUSION</h4> 595<pre>public static final <a href="../../../../com/fasterxml/jackson/databind/MapperFeature.html" title="enum in com.fasterxml.jackson.databind">MapperFeature</a> DEFAULT_VIEW_INCLUSION</pre> 596<div class="block">Feature that determines whether properties that have no view 597 annotations are included in JSON serialization views (see 598 <code>JsonView</code> for more 599 details on JSON Views). 600 If enabled, non-annotated properties will be included; 601 when disabled, they will be excluded. So this feature 602 changes between "opt-in" (feature disabled) and 603 "opt-out" (feature enabled) modes. 604<p> 605 Default value is enabled, meaning that non-annotated 606 properties are included in all views if there is no 607 <code>JsonView</code> annotation. 608<p> 609 Feature is enabled by default.</div> 610</li> 611</ul> 612<a name="SORT_PROPERTIES_ALPHABETICALLY"> 613<!-- --> 614</a> 615<ul class="blockList"> 616<li class="blockList"> 617<h4>SORT_PROPERTIES_ALPHABETICALLY</h4> 618<pre>public static final <a href="../../../../com/fasterxml/jackson/databind/MapperFeature.html" title="enum in com.fasterxml.jackson.databind">MapperFeature</a> SORT_PROPERTIES_ALPHABETICALLY</pre> 619<div class="block">Feature that defines default property serialization order used 620 for POJO fields (note: does <b>not</b> apply to <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> 621 serialization!): 622 if enabled, default ordering is alphabetic (similar to 623 how <code>JsonPropertyOrder.alphabetic()</code> 624 works); if disabled, order is unspecified (based on what JDK gives 625 us, which may be declaration order, but is not guaranteed). 626<p> 627 Note that this is just the default behavior, and can be overridden by 628 explicit overrides in classes (for example with 629 <code>JsonPropertyOrder</code> annotation) 630<p> 631 Feature is disabled by default.</div> 632</li> 633</ul> 634<a name="ACCEPT_CASE_INSENSITIVE_PROPERTIES"> 635<!-- --> 636</a> 637<ul class="blockList"> 638<li class="blockList"> 639<h4>ACCEPT_CASE_INSENSITIVE_PROPERTIES</h4> 640<pre>public static final <a href="../../../../com/fasterxml/jackson/databind/MapperFeature.html" title="enum in com.fasterxml.jackson.databind">MapperFeature</a> ACCEPT_CASE_INSENSITIVE_PROPERTIES</pre> 641<div class="block">Feature that will allow for more forgiving deserialization of incoming JSON. 642 If enabled, the bean properties will be matched using their lower-case equivalents, 643 meaning that any case-combination (incoming and matching names are canonicalized 644 by lower-casing) should work. 645<p> 646 Note that there is additional performance overhead since incoming property 647 names need to be lower-cased before comparison, for cases where there are upper-case 648 letters. Overhead for names that are already lower-case should be negligible however. 649<p> 650 Feature is disabled by default.</div> 651<dl><dt><span class="strong">Since:</span></dt> 652 <dd>2.5</dd></dl> 653</li> 654</ul> 655<a name="USE_WRAPPER_NAME_AS_PROPERTY_NAME"> 656<!-- --> 657</a> 658<ul class="blockList"> 659<li class="blockList"> 660<h4>USE_WRAPPER_NAME_AS_PROPERTY_NAME</h4> 661<pre>public static final <a href="../../../../com/fasterxml/jackson/databind/MapperFeature.html" title="enum in com.fasterxml.jackson.databind">MapperFeature</a> USE_WRAPPER_NAME_AS_PROPERTY_NAME</pre> 662<div class="block">Feature that can be enabled to make property names be 663 overridden by wrapper name (usually detected with annotations 664 as defined by <a href="../../../../com/fasterxml/jackson/databind/AnnotationIntrospector.html#findWrapperName(com.fasterxml.jackson.databind.introspect.Annotated)"><code>AnnotationIntrospector.findWrapperName(com.fasterxml.jackson.databind.introspect.Annotated)</code></a>. 665 If enabled, all properties that have associated non-empty Wrapper 666 name will use that wrapper name instead of property name. 667 If disabled, wrapper name is only used for wrapping (if anything). 668<p> 669 Feature is disabled by default.</div> 670<dl><dt><span class="strong">Since:</span></dt> 671 <dd>2.1</dd></dl> 672</li> 673</ul> 674<a name="USE_STD_BEAN_NAMING"> 675<!-- --> 676</a> 677<ul class="blockList"> 678<li class="blockList"> 679<h4>USE_STD_BEAN_NAMING</h4> 680<pre>public static final <a href="../../../../com/fasterxml/jackson/databind/MapperFeature.html" title="enum in com.fasterxml.jackson.databind">MapperFeature</a> USE_STD_BEAN_NAMING</pre> 681<div class="block">Feature that may be enabled to enforce strict compatibility with 682 Bean name introspection, instead of slightly different mechanism 683 Jackson defaults to. 684 Specific difference is that Jackson always lower cases leading upper-case 685 letters, so "getURL()" becomes "url" property; whereas standard Bean 686 naming <b>only</b> lower-cases the first letter if it is NOT followed by 687 another upper-case letter (so "getURL()" would result in "URL" property). 688<p> 689 Feature is disabled by default for backwards compatibility purposes: earlier 690 Jackson versions used Jackson's own mechanism.</div> 691<dl><dt><span class="strong">Since:</span></dt> 692 <dd>2.5</dd></dl> 693</li> 694</ul> 695<a name="IGNORE_DUPLICATE_MODULE_REGISTRATIONS"> 696<!-- --> 697</a> 698<ul class="blockListLast"> 699<li class="blockList"> 700<h4>IGNORE_DUPLICATE_MODULE_REGISTRATIONS</h4> 701<pre>public static final <a href="../../../../com/fasterxml/jackson/databind/MapperFeature.html" title="enum in com.fasterxml.jackson.databind">MapperFeature</a> IGNORE_DUPLICATE_MODULE_REGISTRATIONS</pre> 702<div class="block">Feature that determines whether multiple registrations of same module 703 should be ignored or not; if enabled, only the first registration call 704 results in module being called, and possible duplicate calls are silently 705 ignored; if disabled, no checking is done and all registration calls are 706 dispatched to module. 707<p> 708 Definition of "same module" is based on using <a href="../../../../com/fasterxml/jackson/databind/Module.html#getTypeId()"><code>Module.getTypeId()</code></a>; 709 modules with same non-null <code>type id</code> are considered same for 710 purposes of duplicate registration. This also avoids having to keep track 711 of actual module instances; only ids will be kept track of (and only if 712 this feature is enabled). 713<p> 714 Feature is enabled by default.</div> 715<dl><dt><span class="strong">Since:</span></dt> 716 <dd>2.5</dd></dl> 717</li> 718</ul> 719</li> 720</ul> 721<!-- ============ METHOD DETAIL ========== --> 722<ul class="blockList"> 723<li class="blockList"><a name="method_detail"> 724<!-- --> 725</a> 726<h3>Method Detail</h3> 727<a name="values()"> 728<!-- --> 729</a> 730<ul class="blockList"> 731<li class="blockList"> 732<h4>values</h4> 733<pre>public static <a href="../../../../com/fasterxml/jackson/databind/MapperFeature.html" title="enum in com.fasterxml.jackson.databind">MapperFeature</a>[] values()</pre> 734<div class="block">Returns an array containing the constants of this enum type, in 735the order they are declared. This method may be used to iterate 736over the constants as follows: 737<pre> 738for (MapperFeature c : MapperFeature.values()) 739 System.out.println(c); 740</pre></div> 741<dl><dt><span class="strong">Returns:</span></dt><dd>an array containing the constants of this enum type, in 742the order they are declared</dd></dl> 743</li> 744</ul> 745<a name="valueOf(java.lang.String)"> 746<!-- --> 747</a> 748<ul class="blockList"> 749<li class="blockList"> 750<h4>valueOf</h4> 751<pre>public static <a href="../../../../com/fasterxml/jackson/databind/MapperFeature.html" title="enum in com.fasterxml.jackson.databind">MapperFeature</a> 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> name)</pre> 752<div class="block">Returns the enum constant of this type with the specified name. 753The string must match <i>exactly</i> an identifier used to declare an 754enum constant in this type. (Extraneous whitespace characters are 755not permitted.)</div> 756<dl><dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - the name of the enum constant to be returned.</dd> 757<dt><span class="strong">Returns:</span></dt><dd>the enum constant with the specified name</dd> 758<dt><span class="strong">Throws:</span></dt> 759<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 760with the specified name</dd> 761<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> 762</li> 763</ul> 764<a name="enabledByDefault()"> 765<!-- --> 766</a> 767<ul class="blockList"> 768<li class="blockList"> 769<h4>enabledByDefault</h4> 770<pre>public boolean enabledByDefault()</pre> 771<div class="block"><strong>Description copied from interface: <code><a href="../../../../com/fasterxml/jackson/databind/cfg/ConfigFeature.html#enabledByDefault()">ConfigFeature</a></code></strong></div> 772<div class="block">Accessor for checking whether this feature is enabled by default.</div> 773<dl> 774<dt><strong>Specified by:</strong></dt> 775<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></dd> 776</dl> 777</li> 778</ul> 779<a name="getMask()"> 780<!-- --> 781</a> 782<ul class="blockList"> 783<li class="blockList"> 784<h4>getMask</h4> 785<pre>public int getMask()</pre> 786<div class="block"><strong>Description copied from interface: <code><a href="../../../../com/fasterxml/jackson/databind/cfg/ConfigFeature.html#getMask()">ConfigFeature</a></code></strong></div> 787<div class="block">Returns bit mask for this feature instance</div> 788<dl> 789<dt><strong>Specified by:</strong></dt> 790<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></dd> 791</dl> 792</li> 793</ul> 794<a name="enabledIn(int)"> 795<!-- --> 796</a> 797<ul class="blockListLast"> 798<li class="blockList"> 799<h4>enabledIn</h4> 800<pre>public boolean enabledIn(int flags)</pre> 801<dl><dt><span class="strong">Since:</span></dt> 802 <dd>2.5</dd></dl> 803</li> 804</ul> 805</li> 806</ul> 807</li> 808</ul> 809</div> 810</div> 811<!-- ========= END OF CLASS DATA ========= --> 812<!-- ======= START OF BOTTOM NAVBAR ====== --> 813<div class="bottomNav"><a name="navbar_bottom"> 814<!-- --> 815</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> 816<!-- --> 817</a> 818<ul class="navList" title="Navigation"> 819<li><a href="../../../../overview-summary.html">Overview</a></li> 820<li><a href="package-summary.html">Package</a></li> 821<li class="navBarCell1Rev">Class</li> 822<li><a href="class-use/MapperFeature.html">Use</a></li> 823<li><a href="package-tree.html">Tree</a></li> 824<li><a href="../../../../deprecated-list.html">Deprecated</a></li> 825<li><a href="../../../../index-all.html">Index</a></li> 826<li><a href="../../../../help-doc.html">Help</a></li> 827</ul> 828</div> 829<div class="subNav"> 830<ul class="navList"> 831<li><a href="../../../../com/fasterxml/jackson/databind/KeyDeserializer.None.html" title="class in com.fasterxml.jackson.databind"><span class="strong">Prev Class</span></a></li> 832<li><a href="../../../../com/fasterxml/jackson/databind/MappingIterator.html" title="class in com.fasterxml.jackson.databind"><span class="strong">Next Class</span></a></li> 833</ul> 834<ul class="navList"> 835<li><a href="../../../../index.html?com/fasterxml/jackson/databind/MapperFeature.html" target="_top">Frames</a></li> 836<li><a href="MapperFeature.html" target="_top">No Frames</a></li> 837</ul> 838<ul class="navList" id="allclasses_navbar_bottom"> 839<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> 840</ul> 841<div> 842<script type="text/javascript"><!-- 843 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 844 if(window==top) { 845 allClassesLink.style.display = "block"; 846 } 847 else { 848 allClassesLink.style.display = "none"; 849 } 850 //--> 851</script> 852</div> 853<div> 854<ul class="subNavList"> 855<li>Summary: </li> 856<li>Nested | </li> 857<li><a href="#enum_constant_summary">Enum Constants</a> | </li> 858<li>Field | </li> 859<li><a href="#method_summary">Method</a></li> 860</ul> 861<ul class="subNavList"> 862<li>Detail: </li> 863<li><a href="#enum_constant_detail">Enum Constants</a> | </li> 864<li>Field | </li> 865<li><a href="#method_detail">Method</a></li> 866</ul> 867</div> 868<a name="skip-navbar_bottom"> 869<!-- --> 870</a></div> 871<!-- ======== END OF BOTTOM NAVBAR ======= --> 872<p class="legalCopy"><small>Copyright © 2014-2015 <a href="http://fasterxml.com/">FasterXML</a>. All Rights Reserved.</small></p> 873</body> 874</html> 875