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_10-ea) on Sun Jul 14 20:03:27 PDT 2013 --> 6<title>PropertyNamingStrategy (Jackson JSON Processor)</title> 7<meta name="date" content="2013-07-14"> 8<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> 9</head> 10<body> 11<script type="text/javascript"><!-- 12 if (location.href.indexOf('is-external=true') == -1) { 13 parent.document.title="PropertyNamingStrategy (Jackson JSON Processor)"; 14 } 15//--> 16</script> 17<noscript> 18<div>JavaScript is disabled on your browser.</div> 19</noscript> 20<!-- ========= START OF TOP NAVBAR ======= --> 21<div class="topNav"><a name="navbar_top"> 22<!-- --> 23</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> 24<!-- --> 25</a> 26<ul class="navList" title="Navigation"> 27<li><a href="../../../../overview-summary.html">Overview</a></li> 28<li><a href="package-summary.html">Package</a></li> 29<li class="navBarCell1Rev">Class</li> 30<li><a href="class-use/PropertyNamingStrategy.html">Use</a></li> 31<li><a href="package-tree.html">Tree</a></li> 32<li><a href="../../../../deprecated-list.html">Deprecated</a></li> 33<li><a href="../../../../index-all.html">Index</a></li> 34<li><a href="../../../../help-doc.html">Help</a></li> 35</ul> 36</div> 37<div class="subNav"> 38<ul class="navList"> 39<li><a href="../../../../org/codehaus/jackson/map/ObjectWriter.html" title="class in org.codehaus.jackson.map"><span class="strong">Prev Class</span></a></li> 40<li><a href="../../../../org/codehaus/jackson/map/PropertyNamingStrategy.LowerCaseWithUnderscoresStrategy.html" title="class in org.codehaus.jackson.map"><span class="strong">Next Class</span></a></li> 41</ul> 42<ul class="navList"> 43<li><a href="../../../../index.html?org/codehaus/jackson/map/PropertyNamingStrategy.html" target="_top">Frames</a></li> 44<li><a href="PropertyNamingStrategy.html" target="_top">No Frames</a></li> 45</ul> 46<ul class="navList" id="allclasses_navbar_top"> 47<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> 48</ul> 49<div> 50<script type="text/javascript"><!-- 51 allClassesLink = document.getElementById("allclasses_navbar_top"); 52 if(window==top) { 53 allClassesLink.style.display = "block"; 54 } 55 else { 56 allClassesLink.style.display = "none"; 57 } 58 //--> 59</script> 60</div> 61<div> 62<ul class="subNavList"> 63<li>Summary: </li> 64<li><a href="#nested_class_summary">Nested</a> | </li> 65<li><a href="#field_summary">Field</a> | </li> 66<li><a href="#constructor_summary">Constr</a> | </li> 67<li><a href="#method_summary">Method</a></li> 68</ul> 69<ul class="subNavList"> 70<li>Detail: </li> 71<li><a href="#field_detail">Field</a> | </li> 72<li><a href="#constructor_detail">Constr</a> | </li> 73<li><a href="#method_detail">Method</a></li> 74</ul> 75</div> 76<a name="skip-navbar_top"> 77<!-- --> 78</a></div> 79<!-- ========= END OF TOP NAVBAR ========= --> 80<!-- ======== START OF CLASS DATA ======== --> 81<div class="header"> 82<div class="subTitle">org.codehaus.jackson.map</div> 83<h2 title="Class PropertyNamingStrategy" class="title">Class PropertyNamingStrategy</h2> 84</div> 85<div class="contentContainer"> 86<ul class="inheritance"> 87<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> 88<li> 89<ul class="inheritance"> 90<li>org.codehaus.jackson.map.PropertyNamingStrategy</li> 91</ul> 92</li> 93</ul> 94<div class="description"> 95<ul class="blockList"> 96<li class="blockList"> 97<dl> 98<dt>Direct Known Subclasses:</dt> 99<dd><a href="../../../../org/codehaus/jackson/map/PropertyNamingStrategy.PropertyNamingStrategyBase.html" title="class in org.codehaus.jackson.map">PropertyNamingStrategy.PropertyNamingStrategyBase</a></dd> 100</dl> 101<hr> 102<br> 103<pre>public abstract class <span class="strong">PropertyNamingStrategy</span> 104extends <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></pre> 105<div class="block">Class that defines how names of JSON properties ("external names") 106 are derived from names of POJO methods and fields ("internal names"), 107 in cases where they are not 108 auto-detected and no explicit annotations exist for naming. 109 Methods are passed information about POJO member for which name is needed, 110 as well as default name that would be used if no custom strategy was used. 111<p> 112 Default implementation returns suggested ("default") name unmodified. 113<p> 114 Note that the strategy is guaranteed to be called once per logical property 115 (which may be represented by multiple members; such as pair of a getter and 116 a setter), but may be called for each: implementations should not count on 117 exact number of times, and should work for any member that represent a 118 property. 119<p> 120 In absence of a registered custom strategy, default Java property naming strategy 121 is used, which leaves field names as is, and removes set/get/is prefix 122 from methods (as well as lower-cases initial sequence of capitalized 123 characters).</div> 124<dl><dt><span class="strong">Since:</span></dt> 125 <dd>1.8</dd></dl> 126</li> 127</ul> 128</div> 129<div class="summary"> 130<ul class="blockList"> 131<li class="blockList"> 132<!-- ======== NESTED CLASS SUMMARY ======== --> 133<ul class="blockList"> 134<li class="blockList"><a name="nested_class_summary"> 135<!-- --> 136</a> 137<h3>Nested Class Summary</h3> 138<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation"> 139<caption><span>Nested Classes</span><span class="tabEnd"> </span></caption> 140<tr> 141<th class="colFirst" scope="col">Modifier and Type</th> 142<th class="colLast" scope="col">Class and Description</th> 143</tr> 144<tr class="altColor"> 145<td class="colFirst"><code>static class </code></td> 146<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/map/PropertyNamingStrategy.LowerCaseWithUnderscoresStrategy.html" title="class in org.codehaus.jackson.map">PropertyNamingStrategy.LowerCaseWithUnderscoresStrategy</a></strong></code> 147<div class="block">A <a href="../../../../org/codehaus/jackson/map/PropertyNamingStrategy.html" title="class in org.codehaus.jackson.map"><code>PropertyNamingStrategy</code></a> that translates typical camel case Java 148 property names to lower case JSON element names, separated by 149 underscores.</div> 150</td> 151</tr> 152<tr class="rowColor"> 153<td class="colFirst"><code>static class </code></td> 154<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/map/PropertyNamingStrategy.PropertyNamingStrategyBase.html" title="class in org.codehaus.jackson.map">PropertyNamingStrategy.PropertyNamingStrategyBase</a></strong></code> </td> 155</tr> 156</table> 157</li> 158</ul> 159<!-- =========== FIELD SUMMARY =========== --> 160<ul class="blockList"> 161<li class="blockList"><a name="field_summary"> 162<!-- --> 163</a> 164<h3>Field Summary</h3> 165<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> 166<caption><span>Fields</span><span class="tabEnd"> </span></caption> 167<tr> 168<th class="colFirst" scope="col">Modifier and Type</th> 169<th class="colLast" scope="col">Field and Description</th> 170</tr> 171<tr class="altColor"> 172<td class="colFirst"><code>static <a href="../../../../org/codehaus/jackson/map/PropertyNamingStrategy.html" title="class in org.codehaus.jackson.map">PropertyNamingStrategy</a></code></td> 173<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/map/PropertyNamingStrategy.html#CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES">CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES</a></strong></code> 174<div class="block">See <a href="../../../../org/codehaus/jackson/map/PropertyNamingStrategy.LowerCaseWithUnderscoresStrategy.html" title="class in org.codehaus.jackson.map"><code>PropertyNamingStrategy.LowerCaseWithUnderscoresStrategy</code></a> for details.</div> 175</td> 176</tr> 177</table> 178</li> 179</ul> 180<!-- ======== CONSTRUCTOR SUMMARY ======== --> 181<ul class="blockList"> 182<li class="blockList"><a name="constructor_summary"> 183<!-- --> 184</a> 185<h3>Constructor Summary</h3> 186<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> 187<caption><span>Constructors</span><span class="tabEnd"> </span></caption> 188<tr> 189<th class="colOne" scope="col">Constructor and Description</th> 190</tr> 191<tr class="altColor"> 192<td class="colOne"><code><strong><a href="../../../../org/codehaus/jackson/map/PropertyNamingStrategy.html#PropertyNamingStrategy()">PropertyNamingStrategy</a></strong>()</code> </td> 193</tr> 194</table> 195</li> 196</ul> 197<!-- ========== METHOD SUMMARY =========== --> 198<ul class="blockList"> 199<li class="blockList"><a name="method_summary"> 200<!-- --> 201</a> 202<h3>Method Summary</h3> 203<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> 204<caption><span>Methods</span><span class="tabEnd"> </span></caption> 205<tr> 206<th class="colFirst" scope="col">Modifier and Type</th> 207<th class="colLast" scope="col">Method and Description</th> 208</tr> 209<tr class="altColor"> 210<td class="colFirst"><code><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></code></td> 211<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/map/PropertyNamingStrategy.html#nameForConstructorParameter(org.codehaus.jackson.map.MapperConfig, org.codehaus.jackson.map.introspect.AnnotatedParameter, java.lang.String)">nameForConstructorParameter</a></strong>(<a href="../../../../org/codehaus/jackson/map/MapperConfig.html" title="class in org.codehaus.jackson.map">MapperConfig</a><?> config, 212 <a href="../../../../org/codehaus/jackson/map/introspect/AnnotatedParameter.html" title="class in org.codehaus.jackson.map.introspect">AnnotatedParameter</a> ctorParam, 213 <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> defaultName)</code> 214<div class="block">Method called to find external name (name used in JSON) for given logical 215 POJO property, 216 as defined by given constructor parameter; typically called when building a deserializer 217 (but not necessarily only then).</div> 218</td> 219</tr> 220<tr class="rowColor"> 221<td class="colFirst"><code><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></code></td> 222<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/map/PropertyNamingStrategy.html#nameForField(org.codehaus.jackson.map.MapperConfig, org.codehaus.jackson.map.introspect.AnnotatedField, java.lang.String)">nameForField</a></strong>(<a href="../../../../org/codehaus/jackson/map/MapperConfig.html" title="class in org.codehaus.jackson.map">MapperConfig</a><?> config, 223 <a href="../../../../org/codehaus/jackson/map/introspect/AnnotatedField.html" title="class in org.codehaus.jackson.map.introspect">AnnotatedField</a> field, 224 <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> defaultName)</code> 225<div class="block">Method called to find external name (name used in JSON) for given logical 226 POJO property, 227 as defined by given field.</div> 228</td> 229</tr> 230<tr class="altColor"> 231<td class="colFirst"><code><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></code></td> 232<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/map/PropertyNamingStrategy.html#nameForGetterMethod(org.codehaus.jackson.map.MapperConfig, org.codehaus.jackson.map.introspect.AnnotatedMethod, java.lang.String)">nameForGetterMethod</a></strong>(<a href="../../../../org/codehaus/jackson/map/MapperConfig.html" title="class in org.codehaus.jackson.map">MapperConfig</a><?> config, 233 <a href="../../../../org/codehaus/jackson/map/introspect/AnnotatedMethod.html" title="class in org.codehaus.jackson.map.introspect">AnnotatedMethod</a> method, 234 <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> defaultName)</code> 235<div class="block">Method called to find external name (name used in JSON) for given logical 236 POJO property, 237 as defined by given getter method; typically called when building a serializer.</div> 238</td> 239</tr> 240<tr class="rowColor"> 241<td class="colFirst"><code><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></code></td> 242<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/map/PropertyNamingStrategy.html#nameForSetterMethod(org.codehaus.jackson.map.MapperConfig, org.codehaus.jackson.map.introspect.AnnotatedMethod, java.lang.String)">nameForSetterMethod</a></strong>(<a href="../../../../org/codehaus/jackson/map/MapperConfig.html" title="class in org.codehaus.jackson.map">MapperConfig</a><?> config, 243 <a href="../../../../org/codehaus/jackson/map/introspect/AnnotatedMethod.html" title="class in org.codehaus.jackson.map.introspect">AnnotatedMethod</a> method, 244 <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> defaultName)</code> 245<div class="block">Method called to find external name (name used in JSON) for given logical 246 POJO property, 247 as defined by given setter method; typically called when building a deserializer 248 (but not necessarily only then).</div> 249</td> 250</tr> 251</table> 252<ul class="blockList"> 253<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> 254<!-- --> 255</a> 256<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> 257<code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.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/Object.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/Object.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/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#hashCode()" title="class or interface in java.lang">hashCode</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#toString()" title="class or interface in java.lang">toString</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> 258</ul> 259</li> 260</ul> 261</li> 262</ul> 263</div> 264<div class="details"> 265<ul class="blockList"> 266<li class="blockList"> 267<!-- ============ FIELD DETAIL =========== --> 268<ul class="blockList"> 269<li class="blockList"><a name="field_detail"> 270<!-- --> 271</a> 272<h3>Field Detail</h3> 273<a name="CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES"> 274<!-- --> 275</a> 276<ul class="blockListLast"> 277<li class="blockList"> 278<h4>CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES</h4> 279<pre>public static final <a href="../../../../org/codehaus/jackson/map/PropertyNamingStrategy.html" title="class in org.codehaus.jackson.map">PropertyNamingStrategy</a> CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES</pre> 280<div class="block">See <a href="../../../../org/codehaus/jackson/map/PropertyNamingStrategy.LowerCaseWithUnderscoresStrategy.html" title="class in org.codehaus.jackson.map"><code>PropertyNamingStrategy.LowerCaseWithUnderscoresStrategy</code></a> for details.</div> 281<dl><dt><span class="strong">Since:</span></dt> 282 <dd>1.9</dd></dl> 283</li> 284</ul> 285</li> 286</ul> 287<!-- ========= CONSTRUCTOR DETAIL ======== --> 288<ul class="blockList"> 289<li class="blockList"><a name="constructor_detail"> 290<!-- --> 291</a> 292<h3>Constructor Detail</h3> 293<a name="PropertyNamingStrategy()"> 294<!-- --> 295</a> 296<ul class="blockListLast"> 297<li class="blockList"> 298<h4>PropertyNamingStrategy</h4> 299<pre>public PropertyNamingStrategy()</pre> 300</li> 301</ul> 302</li> 303</ul> 304<!-- ============ METHOD DETAIL ========== --> 305<ul class="blockList"> 306<li class="blockList"><a name="method_detail"> 307<!-- --> 308</a> 309<h3>Method Detail</h3> 310<a name="nameForField(org.codehaus.jackson.map.MapperConfig, org.codehaus.jackson.map.introspect.AnnotatedField, java.lang.String)"> 311<!-- --> 312</a> 313<ul class="blockList"> 314<li class="blockList"> 315<h4>nameForField</h4> 316<pre>public <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> nameForField(<a href="../../../../org/codehaus/jackson/map/MapperConfig.html" title="class in org.codehaus.jackson.map">MapperConfig</a><?> config, 317 <a href="../../../../org/codehaus/jackson/map/introspect/AnnotatedField.html" title="class in org.codehaus.jackson.map.introspect">AnnotatedField</a> field, 318 <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> defaultName)</pre> 319<div class="block">Method called to find external name (name used in JSON) for given logical 320 POJO property, 321 as defined by given field.</div> 322<dl><dt><span class="strong">Parameters:</span></dt><dd><code>config</code> - Configuration in used: either <code>SerializationConfig</code> 323 or <code>DeserializationConfig</code>, depending on whether method is called 324 during serialization or deserialization</dd><dd><code>field</code> - Field used to access property</dd><dd><code>defaultName</code> - Default name that would be used for property in absence of custom strategy</dd> 325<dt><span class="strong">Returns:</span></dt><dd>Logical name to use for property that the field represents</dd></dl> 326</li> 327</ul> 328<a name="nameForGetterMethod(org.codehaus.jackson.map.MapperConfig, org.codehaus.jackson.map.introspect.AnnotatedMethod, java.lang.String)"> 329<!-- --> 330</a> 331<ul class="blockList"> 332<li class="blockList"> 333<h4>nameForGetterMethod</h4> 334<pre>public <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> nameForGetterMethod(<a href="../../../../org/codehaus/jackson/map/MapperConfig.html" title="class in org.codehaus.jackson.map">MapperConfig</a><?> config, 335 <a href="../../../../org/codehaus/jackson/map/introspect/AnnotatedMethod.html" title="class in org.codehaus.jackson.map.introspect">AnnotatedMethod</a> method, 336 <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> defaultName)</pre> 337<div class="block">Method called to find external name (name used in JSON) for given logical 338 POJO property, 339 as defined by given getter method; typically called when building a serializer. 340 (but not always -- when using "getter-as-setter", may be called during 341 deserialization)</div> 342<dl><dt><span class="strong">Parameters:</span></dt><dd><code>config</code> - Configuration in used: either <code>SerializationConfig</code> 343 or <code>DeserializationConfig</code>, depending on whether method is called 344 during serialization or deserialization</dd><dd><code>method</code> - Method used to access property.</dd><dd><code>defaultName</code> - Default name that would be used for property in absence of custom strategy</dd> 345<dt><span class="strong">Returns:</span></dt><dd>Logical name to use for property that the method represents</dd></dl> 346</li> 347</ul> 348<a name="nameForSetterMethod(org.codehaus.jackson.map.MapperConfig, org.codehaus.jackson.map.introspect.AnnotatedMethod, java.lang.String)"> 349<!-- --> 350</a> 351<ul class="blockList"> 352<li class="blockList"> 353<h4>nameForSetterMethod</h4> 354<pre>public <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> nameForSetterMethod(<a href="../../../../org/codehaus/jackson/map/MapperConfig.html" title="class in org.codehaus.jackson.map">MapperConfig</a><?> config, 355 <a href="../../../../org/codehaus/jackson/map/introspect/AnnotatedMethod.html" title="class in org.codehaus.jackson.map.introspect">AnnotatedMethod</a> method, 356 <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> defaultName)</pre> 357<div class="block">Method called to find external name (name used in JSON) for given logical 358 POJO property, 359 as defined by given setter method; typically called when building a deserializer 360 (but not necessarily only then).</div> 361<dl><dt><span class="strong">Parameters:</span></dt><dd><code>config</code> - Configuration in used: either <code>SerializationConfig</code> 362 or <code>DeserializationConfig</code>, depending on whether method is called 363 during serialization or deserialization</dd><dd><code>method</code> - Method used to access property.</dd><dd><code>defaultName</code> - Default name that would be used for property in absence of custom strategy</dd> 364<dt><span class="strong">Returns:</span></dt><dd>Logical name to use for property that the method represents</dd></dl> 365</li> 366</ul> 367<a name="nameForConstructorParameter(org.codehaus.jackson.map.MapperConfig, org.codehaus.jackson.map.introspect.AnnotatedParameter, java.lang.String)"> 368<!-- --> 369</a> 370<ul class="blockListLast"> 371<li class="blockList"> 372<h4>nameForConstructorParameter</h4> 373<pre>public <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> nameForConstructorParameter(<a href="../../../../org/codehaus/jackson/map/MapperConfig.html" title="class in org.codehaus.jackson.map">MapperConfig</a><?> config, 374 <a href="../../../../org/codehaus/jackson/map/introspect/AnnotatedParameter.html" title="class in org.codehaus.jackson.map.introspect">AnnotatedParameter</a> ctorParam, 375 <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> defaultName)</pre> 376<div class="block">Method called to find external name (name used in JSON) for given logical 377 POJO property, 378 as defined by given constructor parameter; typically called when building a deserializer 379 (but not necessarily only then).</div> 380<dl><dt><span class="strong">Parameters:</span></dt><dd><code>config</code> - Configuration in used: either <code>SerializationConfig</code> 381 or <code>DeserializationConfig</code>, depending on whether method is called 382 during serialization or deserialization</dd><dd><code>ctorParam</code> - Constructor parameter used to pass property.</dd><dd><code>defaultName</code> - Default name that would be used for property in absence of custom strategy</dd><dt><span class="strong">Since:</span></dt> 383 <dd>1.9</dd></dl> 384</li> 385</ul> 386</li> 387</ul> 388</li> 389</ul> 390</div> 391</div> 392<!-- ========= END OF CLASS DATA ========= --> 393<!-- ======= START OF BOTTOM NAVBAR ====== --> 394<div class="bottomNav"><a name="navbar_bottom"> 395<!-- --> 396</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> 397<!-- --> 398</a> 399<ul class="navList" title="Navigation"> 400<li><a href="../../../../overview-summary.html">Overview</a></li> 401<li><a href="package-summary.html">Package</a></li> 402<li class="navBarCell1Rev">Class</li> 403<li><a href="class-use/PropertyNamingStrategy.html">Use</a></li> 404<li><a href="package-tree.html">Tree</a></li> 405<li><a href="../../../../deprecated-list.html">Deprecated</a></li> 406<li><a href="../../../../index-all.html">Index</a></li> 407<li><a href="../../../../help-doc.html">Help</a></li> 408</ul> 409</div> 410<div class="subNav"> 411<ul class="navList"> 412<li><a href="../../../../org/codehaus/jackson/map/ObjectWriter.html" title="class in org.codehaus.jackson.map"><span class="strong">Prev Class</span></a></li> 413<li><a href="../../../../org/codehaus/jackson/map/PropertyNamingStrategy.LowerCaseWithUnderscoresStrategy.html" title="class in org.codehaus.jackson.map"><span class="strong">Next Class</span></a></li> 414</ul> 415<ul class="navList"> 416<li><a href="../../../../index.html?org/codehaus/jackson/map/PropertyNamingStrategy.html" target="_top">Frames</a></li> 417<li><a href="PropertyNamingStrategy.html" target="_top">No Frames</a></li> 418</ul> 419<ul class="navList" id="allclasses_navbar_bottom"> 420<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> 421</ul> 422<div> 423<script type="text/javascript"><!-- 424 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 425 if(window==top) { 426 allClassesLink.style.display = "block"; 427 } 428 else { 429 allClassesLink.style.display = "none"; 430 } 431 //--> 432</script> 433</div> 434<div> 435<ul class="subNavList"> 436<li>Summary: </li> 437<li><a href="#nested_class_summary">Nested</a> | </li> 438<li><a href="#field_summary">Field</a> | </li> 439<li><a href="#constructor_summary">Constr</a> | </li> 440<li><a href="#method_summary">Method</a></li> 441</ul> 442<ul class="subNavList"> 443<li>Detail: </li> 444<li><a href="#field_detail">Field</a> | </li> 445<li><a href="#constructor_detail">Constr</a> | </li> 446<li><a href="#method_detail">Method</a></li> 447</ul> 448</div> 449<a name="skip-navbar_bottom"> 450<!-- --> 451</a></div> 452<!-- ======== END OF BOTTOM NAVBAR ======= --> 453</body> 454</html> 455