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 (1.8.0_162) on Tue Mar 24 11:44:36 PDT 2020 --> 6<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 7<title>PropertyNamingStrategy (jackson-databind 2.11.0.rc1 API)</title> 8<meta name="date" content="2020-03-24"> 9<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> 10<script type="text/javascript" src="../../../../script.js"></script> 11</head> 12<body> 13<script type="text/javascript"><!-- 14 try { 15 if (location.href.indexOf('is-external=true') == -1) { 16 parent.document.title="PropertyNamingStrategy (jackson-databind 2.11.0.rc1 API)"; 17 } 18 } 19 catch(err) { 20 } 21//--> 22var methods = {"i0":10,"i1":10,"i2":10,"i3":10}; 23var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; 24var altColor = "altColor"; 25var rowColor = "rowColor"; 26var tableTab = "tableTab"; 27var activeTableTab = "activeTableTab"; 28</script> 29<noscript> 30<div>JavaScript is disabled on your browser.</div> 31</noscript> 32<!-- ========= START OF TOP NAVBAR ======= --> 33<div class="topNav"><a name="navbar.top"> 34<!-- --> 35</a> 36<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> 37<a name="navbar.top.firstrow"> 38<!-- --> 39</a> 40<ul class="navList" title="Navigation"> 41<li><a href="../../../../overview-summary.html">Overview</a></li> 42<li><a href="package-summary.html">Package</a></li> 43<li class="navBarCell1Rev">Class</li> 44<li><a href="class-use/PropertyNamingStrategy.html">Use</a></li> 45<li><a href="package-tree.html">Tree</a></li> 46<li><a href="../../../../deprecated-list.html">Deprecated</a></li> 47<li><a href="../../../../index-all.html">Index</a></li> 48<li><a href="../../../../help-doc.html">Help</a></li> 49</ul> 50</div> 51<div class="subNav"> 52<ul class="navList"> 53<li><a href="../../../../com/fasterxml/jackson/databind/PropertyName.html" title="class in com.fasterxml.jackson.databind"><span class="typeNameLink">Prev Class</span></a></li> 54<li><a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.KebabCaseStrategy.html" title="class in com.fasterxml.jackson.databind"><span class="typeNameLink">Next Class</span></a></li> 55</ul> 56<ul class="navList"> 57<li><a href="../../../../index.html?com/fasterxml/jackson/databind/PropertyNamingStrategy.html" target="_top">Frames</a></li> 58<li><a href="PropertyNamingStrategy.html" target="_top">No Frames</a></li> 59</ul> 60<ul class="navList" id="allclasses_navbar_top"> 61<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> 62</ul> 63<div> 64<script type="text/javascript"><!-- 65 allClassesLink = document.getElementById("allclasses_navbar_top"); 66 if(window==top) { 67 allClassesLink.style.display = "block"; 68 } 69 else { 70 allClassesLink.style.display = "none"; 71 } 72 //--> 73</script> 74</div> 75<div> 76<ul class="subNavList"> 77<li>Summary: </li> 78<li><a href="#nested.class.summary">Nested</a> | </li> 79<li><a href="#field.summary">Field</a> | </li> 80<li><a href="#constructor.summary">Constr</a> | </li> 81<li><a href="#method.summary">Method</a></li> 82</ul> 83<ul class="subNavList"> 84<li>Detail: </li> 85<li><a href="#field.detail">Field</a> | </li> 86<li><a href="#constructor.detail">Constr</a> | </li> 87<li><a href="#method.detail">Method</a></li> 88</ul> 89</div> 90<a name="skip.navbar.top"> 91<!-- --> 92</a></div> 93<!-- ========= END OF TOP NAVBAR ========= --> 94<!-- ======== START OF CLASS DATA ======== --> 95<div class="header"> 96<div class="subTitle">com.fasterxml.jackson.databind</div> 97<h2 title="Class PropertyNamingStrategy" class="title">Class PropertyNamingStrategy</h2> 98</div> 99<div class="contentContainer"> 100<ul class="inheritance"> 101<li><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> 102<li> 103<ul class="inheritance"> 104<li>com.fasterxml.jackson.databind.PropertyNamingStrategy</li> 105</ul> 106</li> 107</ul> 108<div class="description"> 109<ul class="blockList"> 110<li class="blockList"> 111<dl> 112<dt>All Implemented Interfaces:</dt> 113<dd><a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a></dd> 114</dl> 115<dl> 116<dt>Direct Known Subclasses:</dt> 117<dd><a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.PropertyNamingStrategyBase.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy.PropertyNamingStrategyBase</a></dd> 118</dl> 119<hr> 120<br> 121<pre>public class <span class="typeNameLabel">PropertyNamingStrategy</span> 122extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> 123implements <a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a></pre> 124<div class="block">Class that defines how names of JSON properties ("external names") 125 are derived from names of POJO methods and fields ("internal names"), 126 in cases where they are not 127 auto-detected and no explicit annotations exist for naming. 128 Methods are passed information about POJO member for which name is needed, 129 as well as default name that would be used if no custom strategy was used. 130<p> 131 Default (empty) implementation returns suggested ("default") name unmodified. 132<p> 133 Note that the strategy is guaranteed to be called once per logical property 134 (which may be represented by multiple members; such as pair of a getter and 135 a setter), but may be called for each: implementations should not count on 136 exact number of times, and should work for any member that represent a 137 property. 138<p> 139 In absence of a registered custom strategy, default Java property naming strategy 140 is used, which leaves field names as is, and removes set/get/is prefix 141 from methods (as well as lower-cases initial sequence of capitalized 142 characters).</div> 143<dl> 144<dt><span class="seeLabel">See Also:</span></dt> 145<dd><a href="../../../../serialized-form.html#com.fasterxml.jackson.databind.PropertyNamingStrategy">Serialized Form</a></dd> 146</dl> 147</li> 148</ul> 149</div> 150<div class="summary"> 151<ul class="blockList"> 152<li class="blockList"> 153<!-- ======== NESTED CLASS SUMMARY ======== --> 154<ul class="blockList"> 155<li class="blockList"><a name="nested.class.summary"> 156<!-- --> 157</a> 158<h3>Nested Class Summary</h3> 159<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation"> 160<caption><span>Nested Classes</span><span class="tabEnd"> </span></caption> 161<tr> 162<th class="colFirst" scope="col">Modifier and Type</th> 163<th class="colLast" scope="col">Class and Description</th> 164</tr> 165<tr class="altColor"> 166<td class="colFirst"><code>static class </code></td> 167<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.KebabCaseStrategy.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy.KebabCaseStrategy</a></span></code> 168<div class="block">Naming strategy similar to <a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.SnakeCaseStrategy.html" title="class in com.fasterxml.jackson.databind"><code>PropertyNamingStrategy.SnakeCaseStrategy</code></a>, but instead of underscores 169 as separators, uses hyphens.</div> 170</td> 171</tr> 172<tr class="rowColor"> 173<td class="colFirst"><code>static class </code></td> 174<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.LowerCaseStrategy.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy.LowerCaseStrategy</a></span></code> 175<div class="block">Simple strategy where external name simply only uses lower-case characters, 176 and no separators.</div> 177</td> 178</tr> 179<tr class="altColor"> 180<td class="colFirst"><code>static class </code></td> 181<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.LowerCaseWithUnderscoresStrategy.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy.LowerCaseWithUnderscoresStrategy</a></span></code> 182<div class="block"><span class="deprecatedLabel">Deprecated.</span> 183<div class="block"><span class="deprecationComment">In 2.7 use <a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.SnakeCaseStrategy.html" title="class in com.fasterxml.jackson.databind"><code>PropertyNamingStrategy.SnakeCaseStrategy</code></a> instead</span></div> 184</div> 185</td> 186</tr> 187<tr class="rowColor"> 188<td class="colFirst"><code>static class </code></td> 189<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.LowerDotCaseStrategy.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy.LowerDotCaseStrategy</a></span></code> 190<div class="block">Naming strategy similar to <a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.KebabCaseStrategy.html" title="class in com.fasterxml.jackson.databind"><code>PropertyNamingStrategy.KebabCaseStrategy</code></a>, but instead of hyphens 191 as separators, uses dots.</div> 192</td> 193</tr> 194<tr class="altColor"> 195<td class="colFirst"><code>static class </code></td> 196<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.PascalCaseStrategy.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy.PascalCaseStrategy</a></span></code> 197<div class="block"><span class="deprecatedLabel">Deprecated.</span> 198<div class="block"><span class="deprecationComment">In 2.7 use <a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.UpperCamelCaseStrategy.html" title="class in com.fasterxml.jackson.databind"><code>PropertyNamingStrategy.UpperCamelCaseStrategy</code></a> instead</span></div> 199</div> 200</td> 201</tr> 202<tr class="rowColor"> 203<td class="colFirst"><code>static class </code></td> 204<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.PropertyNamingStrategyBase.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy.PropertyNamingStrategyBase</a></span></code> </td> 205</tr> 206<tr class="altColor"> 207<td class="colFirst"><code>static class </code></td> 208<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.SnakeCaseStrategy.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy.SnakeCaseStrategy</a></span></code> 209<div class="block">A <a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html" title="class in com.fasterxml.jackson.databind"><code>PropertyNamingStrategy</code></a> that translates typical camel case Java 210 property names to lower case JSON element names, separated by 211 underscores.</div> 212</td> 213</tr> 214<tr class="rowColor"> 215<td class="colFirst"><code>static class </code></td> 216<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.UpperCamelCaseStrategy.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy.UpperCamelCaseStrategy</a></span></code> 217<div class="block">A <a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html" title="class in com.fasterxml.jackson.databind"><code>PropertyNamingStrategy</code></a> that translates typical camelCase Java 218 property names to PascalCase JSON element names (i.e., with a capital 219 first letter).</div> 220</td> 221</tr> 222</table> 223</li> 224</ul> 225<!-- =========== FIELD SUMMARY =========== --> 226<ul class="blockList"> 227<li class="blockList"><a name="field.summary"> 228<!-- --> 229</a> 230<h3>Field Summary</h3> 231<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> 232<caption><span>Fields</span><span class="tabEnd"> </span></caption> 233<tr> 234<th class="colFirst" scope="col">Modifier and Type</th> 235<th class="colLast" scope="col">Field and Description</th> 236</tr> 237<tr class="altColor"> 238<td class="colFirst"><code>static <a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy</a></code></td> 239<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html#CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES">CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES</a></span></code> 240<div class="block"><span class="deprecatedLabel">Deprecated.</span> 241<div class="block"><span class="deprecationComment">Since 2.7 use <a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html#SNAKE_CASE"><code>SNAKE_CASE</code></a> instead;</span></div> 242</div> 243</td> 244</tr> 245<tr class="rowColor"> 246<td class="colFirst"><code>static <a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy</a></code></td> 247<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html#KEBAB_CASE">KEBAB_CASE</a></span></code> 248<div class="block">Naming convention used in languages like Lisp, where words are in lower-case 249 letters, separated by hyphens.</div> 250</td> 251</tr> 252<tr class="altColor"> 253<td class="colFirst"><code>static <a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy</a></code></td> 254<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html#LOWER_CAMEL_CASE">LOWER_CAMEL_CASE</a></span></code> 255<div class="block">Naming convention used in Java, where words other than first are capitalized 256 and no separator is used between words.</div> 257</td> 258</tr> 259<tr class="rowColor"> 260<td class="colFirst"><code>static <a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy</a></code></td> 261<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html#LOWER_CASE">LOWER_CASE</a></span></code> 262<div class="block">Naming convention in which all words of the logical name are in lower case, and 263 no separator is used between words.</div> 264</td> 265</tr> 266<tr class="altColor"> 267<td class="colFirst"><code>static <a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy</a></code></td> 268<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html#LOWER_DOT_CASE">LOWER_DOT_CASE</a></span></code> 269<div class="block">Naming convention widely used as configuration properties name, where words are in 270 lower-case letters, separated by dots.</div> 271</td> 272</tr> 273<tr class="rowColor"> 274<td class="colFirst"><code>static <a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy</a></code></td> 275<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html#PASCAL_CASE_TO_CAMEL_CASE">PASCAL_CASE_TO_CAMEL_CASE</a></span></code> 276<div class="block"><span class="deprecatedLabel">Deprecated.</span> 277<div class="block"><span class="deprecationComment">Since 2.7 use <a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html#UPPER_CAMEL_CASE"><code>UPPER_CAMEL_CASE</code></a> instead;</span></div> 278</div> 279</td> 280</tr> 281<tr class="altColor"> 282<td class="colFirst"><code>static <a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy</a></code></td> 283<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html#SNAKE_CASE">SNAKE_CASE</a></span></code> 284<div class="block">Naming convention used in languages like C, where words are in lower-case 285 letters, separated by underscores.</div> 286</td> 287</tr> 288<tr class="rowColor"> 289<td class="colFirst"><code>static <a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy</a></code></td> 290<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html#UPPER_CAMEL_CASE">UPPER_CAMEL_CASE</a></span></code> 291<div class="block">Naming convention used in languages like Pascal, where words are capitalized 292 and no separator is used between words.</div> 293</td> 294</tr> 295</table> 296</li> 297</ul> 298<!-- ======== CONSTRUCTOR SUMMARY ======== --> 299<ul class="blockList"> 300<li class="blockList"><a name="constructor.summary"> 301<!-- --> 302</a> 303<h3>Constructor Summary</h3> 304<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> 305<caption><span>Constructors</span><span class="tabEnd"> </span></caption> 306<tr> 307<th class="colOne" scope="col">Constructor and Description</th> 308</tr> 309<tr class="altColor"> 310<td class="colOne"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html#PropertyNamingStrategy--">PropertyNamingStrategy</a></span>()</code> </td> 311</tr> 312</table> 313</li> 314</ul> 315<!-- ========== METHOD SUMMARY =========== --> 316<ul class="blockList"> 317<li class="blockList"><a name="method.summary"> 318<!-- --> 319</a> 320<h3>Method Summary</h3> 321<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> 322<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> 323<tr> 324<th class="colFirst" scope="col">Modifier and Type</th> 325<th class="colLast" scope="col">Method and Description</th> 326</tr> 327<tr id="i0" class="altColor"> 328<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> 329<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html#nameForConstructorParameter-com.fasterxml.jackson.databind.cfg.MapperConfig-com.fasterxml.jackson.databind.introspect.AnnotatedParameter-java.lang.String-">nameForConstructorParameter</a></span>(<a href="../../../../com/fasterxml/jackson/databind/cfg/MapperConfig.html" title="class in com.fasterxml.jackson.databind.cfg">MapperConfig</a><?> config, 330 <a href="../../../../com/fasterxml/jackson/databind/introspect/AnnotatedParameter.html" title="class in com.fasterxml.jackson.databind.introspect">AnnotatedParameter</a> ctorParam, 331 <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> defaultName)</code> 332<div class="block">Method called to find external name (name used in JSON) for given logical 333 POJO property, 334 as defined by given constructor parameter; typically called when building a deserializer 335 (but not necessarily only then).</div> 336</td> 337</tr> 338<tr id="i1" class="rowColor"> 339<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> 340<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html#nameForField-com.fasterxml.jackson.databind.cfg.MapperConfig-com.fasterxml.jackson.databind.introspect.AnnotatedField-java.lang.String-">nameForField</a></span>(<a href="../../../../com/fasterxml/jackson/databind/cfg/MapperConfig.html" title="class in com.fasterxml.jackson.databind.cfg">MapperConfig</a><?> config, 341 <a href="../../../../com/fasterxml/jackson/databind/introspect/AnnotatedField.html" title="class in com.fasterxml.jackson.databind.introspect">AnnotatedField</a> field, 342 <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> defaultName)</code> 343<div class="block">Method called to find external name (name used in JSON) for given logical 344 POJO property, 345 as defined by given field.</div> 346</td> 347</tr> 348<tr id="i2" class="altColor"> 349<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> 350<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html#nameForGetterMethod-com.fasterxml.jackson.databind.cfg.MapperConfig-com.fasterxml.jackson.databind.introspect.AnnotatedMethod-java.lang.String-">nameForGetterMethod</a></span>(<a href="../../../../com/fasterxml/jackson/databind/cfg/MapperConfig.html" title="class in com.fasterxml.jackson.databind.cfg">MapperConfig</a><?> config, 351 <a href="../../../../com/fasterxml/jackson/databind/introspect/AnnotatedMethod.html" title="class in com.fasterxml.jackson.databind.introspect">AnnotatedMethod</a> method, 352 <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> defaultName)</code> 353<div class="block">Method called to find external name (name used in JSON) for given logical 354 POJO property, 355 as defined by given getter method; typically called when building a serializer.</div> 356</td> 357</tr> 358<tr id="i3" class="rowColor"> 359<td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> 360<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html#nameForSetterMethod-com.fasterxml.jackson.databind.cfg.MapperConfig-com.fasterxml.jackson.databind.introspect.AnnotatedMethod-java.lang.String-">nameForSetterMethod</a></span>(<a href="../../../../com/fasterxml/jackson/databind/cfg/MapperConfig.html" title="class in com.fasterxml.jackson.databind.cfg">MapperConfig</a><?> config, 361 <a href="../../../../com/fasterxml/jackson/databind/introspect/AnnotatedMethod.html" title="class in com.fasterxml.jackson.databind.introspect">AnnotatedMethod</a> method, 362 <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> defaultName)</code> 363<div class="block">Method called to find external name (name used in JSON) for given logical 364 POJO property, 365 as defined by given setter method; typically called when building a deserializer 366 (but not necessarily only then).</div> 367</td> 368</tr> 369</table> 370<ul class="blockList"> 371<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> 372<!-- --> 373</a> 374<h3>Methods inherited from class java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> 375<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li> 376</ul> 377</li> 378</ul> 379</li> 380</ul> 381</div> 382<div class="details"> 383<ul class="blockList"> 384<li class="blockList"> 385<!-- ============ FIELD DETAIL =========== --> 386<ul class="blockList"> 387<li class="blockList"><a name="field.detail"> 388<!-- --> 389</a> 390<h3>Field Detail</h3> 391<a name="SNAKE_CASE"> 392<!-- --> 393</a> 394<ul class="blockList"> 395<li class="blockList"> 396<h4>SNAKE_CASE</h4> 397<pre>public static final <a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy</a> SNAKE_CASE</pre> 398<div class="block">Naming convention used in languages like C, where words are in lower-case 399 letters, separated by underscores. 400 See <a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.SnakeCaseStrategy.html" title="class in com.fasterxml.jackson.databind"><code>PropertyNamingStrategy.SnakeCaseStrategy</code></a> for details.</div> 401<dl> 402<dt><span class="simpleTagLabel">Since:</span></dt> 403<dd>2.7 (was formerly called <a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html#CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES"><code>CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES</code></a>)</dd> 404</dl> 405</li> 406</ul> 407<a name="UPPER_CAMEL_CASE"> 408<!-- --> 409</a> 410<ul class="blockList"> 411<li class="blockList"> 412<h4>UPPER_CAMEL_CASE</h4> 413<pre>public static final <a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy</a> UPPER_CAMEL_CASE</pre> 414<div class="block">Naming convention used in languages like Pascal, where words are capitalized 415 and no separator is used between words. 416 See <a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.PascalCaseStrategy.html" title="class in com.fasterxml.jackson.databind"><code>PropertyNamingStrategy.PascalCaseStrategy</code></a> for details.</div> 417<dl> 418<dt><span class="simpleTagLabel">Since:</span></dt> 419<dd>2.7 (was formerly called <a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html#PASCAL_CASE_TO_CAMEL_CASE"><code>PASCAL_CASE_TO_CAMEL_CASE</code></a>)</dd> 420</dl> 421</li> 422</ul> 423<a name="LOWER_CAMEL_CASE"> 424<!-- --> 425</a> 426<ul class="blockList"> 427<li class="blockList"> 428<h4>LOWER_CAMEL_CASE</h4> 429<pre>public static final <a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy</a> LOWER_CAMEL_CASE</pre> 430<div class="block">Naming convention used in Java, where words other than first are capitalized 431 and no separator is used between words. Since this is the native Java naming convention, 432 naming strategy will not do any transformation between names in data (JSON) and 433 POJOS.</div> 434<dl> 435<dt><span class="simpleTagLabel">Since:</span></dt> 436<dd>2.7 (was formerly called <a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html#PASCAL_CASE_TO_CAMEL_CASE"><code>PASCAL_CASE_TO_CAMEL_CASE</code></a>)</dd> 437</dl> 438</li> 439</ul> 440<a name="LOWER_CASE"> 441<!-- --> 442</a> 443<ul class="blockList"> 444<li class="blockList"> 445<h4>LOWER_CASE</h4> 446<pre>public static final <a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy</a> LOWER_CASE</pre> 447<div class="block">Naming convention in which all words of the logical name are in lower case, and 448 no separator is used between words. 449 See <a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.LowerCaseStrategy.html" title="class in com.fasterxml.jackson.databind"><code>PropertyNamingStrategy.LowerCaseStrategy</code></a> for details.</div> 450<dl> 451<dt><span class="simpleTagLabel">Since:</span></dt> 452<dd>2.4</dd> 453</dl> 454</li> 455</ul> 456<a name="KEBAB_CASE"> 457<!-- --> 458</a> 459<ul class="blockList"> 460<li class="blockList"> 461<h4>KEBAB_CASE</h4> 462<pre>public static final <a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy</a> KEBAB_CASE</pre> 463<div class="block">Naming convention used in languages like Lisp, where words are in lower-case 464 letters, separated by hyphens. 465 See <a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.KebabCaseStrategy.html" title="class in com.fasterxml.jackson.databind"><code>PropertyNamingStrategy.KebabCaseStrategy</code></a> for details.</div> 466<dl> 467<dt><span class="simpleTagLabel">Since:</span></dt> 468<dd>2.7</dd> 469</dl> 470</li> 471</ul> 472<a name="LOWER_DOT_CASE"> 473<!-- --> 474</a> 475<ul class="blockList"> 476<li class="blockList"> 477<h4>LOWER_DOT_CASE</h4> 478<pre>public static final <a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy</a> LOWER_DOT_CASE</pre> 479<div class="block">Naming convention widely used as configuration properties name, where words are in 480 lower-case letters, separated by dots. 481 See <a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.LowerDotCaseStrategy.html" title="class in com.fasterxml.jackson.databind"><code>PropertyNamingStrategy.LowerDotCaseStrategy</code></a> for details.</div> 482<dl> 483<dt><span class="simpleTagLabel">Since:</span></dt> 484<dd>2.10</dd> 485</dl> 486</li> 487</ul> 488<a name="CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES"> 489<!-- --> 490</a> 491<ul class="blockList"> 492<li class="blockList"> 493<h4>CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES</h4> 494<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a> 495public static final <a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy</a> CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES</pre> 496<div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">Since 2.7 use <a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html#SNAKE_CASE"><code>SNAKE_CASE</code></a> instead;</span></div> 497</li> 498</ul> 499<a name="PASCAL_CASE_TO_CAMEL_CASE"> 500<!-- --> 501</a> 502<ul class="blockListLast"> 503<li class="blockList"> 504<h4>PASCAL_CASE_TO_CAMEL_CASE</h4> 505<pre><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a> 506public static final <a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy</a> PASCAL_CASE_TO_CAMEL_CASE</pre> 507<div class="block"><span class="deprecatedLabel">Deprecated.</span> <span class="deprecationComment">Since 2.7 use <a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html#UPPER_CAMEL_CASE"><code>UPPER_CAMEL_CASE</code></a> instead;</span></div> 508</li> 509</ul> 510</li> 511</ul> 512<!-- ========= CONSTRUCTOR DETAIL ======== --> 513<ul class="blockList"> 514<li class="blockList"><a name="constructor.detail"> 515<!-- --> 516</a> 517<h3>Constructor Detail</h3> 518<a name="PropertyNamingStrategy--"> 519<!-- --> 520</a> 521<ul class="blockListLast"> 522<li class="blockList"> 523<h4>PropertyNamingStrategy</h4> 524<pre>public PropertyNamingStrategy()</pre> 525</li> 526</ul> 527</li> 528</ul> 529<!-- ============ METHOD DETAIL ========== --> 530<ul class="blockList"> 531<li class="blockList"><a name="method.detail"> 532<!-- --> 533</a> 534<h3>Method Detail</h3> 535<a name="nameForField-com.fasterxml.jackson.databind.cfg.MapperConfig-com.fasterxml.jackson.databind.introspect.AnnotatedField-java.lang.String-"> 536<!-- --> 537</a> 538<ul class="blockList"> 539<li class="blockList"> 540<h4>nameForField</h4> 541<pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> nameForField(<a href="../../../../com/fasterxml/jackson/databind/cfg/MapperConfig.html" title="class in com.fasterxml.jackson.databind.cfg">MapperConfig</a><?> config, 542 <a href="../../../../com/fasterxml/jackson/databind/introspect/AnnotatedField.html" title="class in com.fasterxml.jackson.databind.introspect">AnnotatedField</a> field, 543 <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> defaultName)</pre> 544<div class="block">Method called to find external name (name used in JSON) for given logical 545 POJO property, 546 as defined by given field.</div> 547<dl> 548<dt><span class="paramLabel">Parameters:</span></dt> 549<dd><code>config</code> - Configuration in used: either <code>SerializationConfig</code> 550 or <code>DeserializationConfig</code>, depending on whether method is called 551 during serialization or deserialization</dd> 552<dd><code>field</code> - Field used to access property</dd> 553<dd><code>defaultName</code> - Default name that would be used for property in absence of custom strategy</dd> 554<dt><span class="returnLabel">Returns:</span></dt> 555<dd>Logical name to use for property that the field represents</dd> 556</dl> 557</li> 558</ul> 559<a name="nameForGetterMethod-com.fasterxml.jackson.databind.cfg.MapperConfig-com.fasterxml.jackson.databind.introspect.AnnotatedMethod-java.lang.String-"> 560<!-- --> 561</a> 562<ul class="blockList"> 563<li class="blockList"> 564<h4>nameForGetterMethod</h4> 565<pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> nameForGetterMethod(<a href="../../../../com/fasterxml/jackson/databind/cfg/MapperConfig.html" title="class in com.fasterxml.jackson.databind.cfg">MapperConfig</a><?> config, 566 <a href="../../../../com/fasterxml/jackson/databind/introspect/AnnotatedMethod.html" title="class in com.fasterxml.jackson.databind.introspect">AnnotatedMethod</a> method, 567 <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> defaultName)</pre> 568<div class="block">Method called to find external name (name used in JSON) for given logical 569 POJO property, 570 as defined by given getter method; typically called when building a serializer. 571 (but not always -- when using "getter-as-setter", may be called during 572 deserialization)</div> 573<dl> 574<dt><span class="paramLabel">Parameters:</span></dt> 575<dd><code>config</code> - Configuration in used: either <code>SerializationConfig</code> 576 or <code>DeserializationConfig</code>, depending on whether method is called 577 during serialization or deserialization</dd> 578<dd><code>method</code> - Method used to access property.</dd> 579<dd><code>defaultName</code> - Default name that would be used for property in absence of custom strategy</dd> 580<dt><span class="returnLabel">Returns:</span></dt> 581<dd>Logical name to use for property that the method represents</dd> 582</dl> 583</li> 584</ul> 585<a name="nameForSetterMethod-com.fasterxml.jackson.databind.cfg.MapperConfig-com.fasterxml.jackson.databind.introspect.AnnotatedMethod-java.lang.String-"> 586<!-- --> 587</a> 588<ul class="blockList"> 589<li class="blockList"> 590<h4>nameForSetterMethod</h4> 591<pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> nameForSetterMethod(<a href="../../../../com/fasterxml/jackson/databind/cfg/MapperConfig.html" title="class in com.fasterxml.jackson.databind.cfg">MapperConfig</a><?> config, 592 <a href="../../../../com/fasterxml/jackson/databind/introspect/AnnotatedMethod.html" title="class in com.fasterxml.jackson.databind.introspect">AnnotatedMethod</a> method, 593 <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> defaultName)</pre> 594<div class="block">Method called to find external name (name used in JSON) for given logical 595 POJO property, 596 as defined by given setter method; typically called when building a deserializer 597 (but not necessarily only then).</div> 598<dl> 599<dt><span class="paramLabel">Parameters:</span></dt> 600<dd><code>config</code> - Configuration in used: either <code>SerializationConfig</code> 601 or <code>DeserializationConfig</code>, depending on whether method is called 602 during serialization or deserialization</dd> 603<dd><code>method</code> - Method used to access property.</dd> 604<dd><code>defaultName</code> - Default name that would be used for property in absence of custom strategy</dd> 605<dt><span class="returnLabel">Returns:</span></dt> 606<dd>Logical name to use for property that the method represents</dd> 607</dl> 608</li> 609</ul> 610<a name="nameForConstructorParameter-com.fasterxml.jackson.databind.cfg.MapperConfig-com.fasterxml.jackson.databind.introspect.AnnotatedParameter-java.lang.String-"> 611<!-- --> 612</a> 613<ul class="blockListLast"> 614<li class="blockList"> 615<h4>nameForConstructorParameter</h4> 616<pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> nameForConstructorParameter(<a href="../../../../com/fasterxml/jackson/databind/cfg/MapperConfig.html" title="class in com.fasterxml.jackson.databind.cfg">MapperConfig</a><?> config, 617 <a href="../../../../com/fasterxml/jackson/databind/introspect/AnnotatedParameter.html" title="class in com.fasterxml.jackson.databind.introspect">AnnotatedParameter</a> ctorParam, 618 <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> defaultName)</pre> 619<div class="block">Method called to find external name (name used in JSON) for given logical 620 POJO property, 621 as defined by given constructor parameter; typically called when building a deserializer 622 (but not necessarily only then).</div> 623<dl> 624<dt><span class="paramLabel">Parameters:</span></dt> 625<dd><code>config</code> - Configuration in used: either <code>SerializationConfig</code> 626 or <code>DeserializationConfig</code>, depending on whether method is called 627 during serialization or deserialization</dd> 628<dd><code>ctorParam</code> - Constructor parameter used to pass property.</dd> 629<dd><code>defaultName</code> - Default name that would be used for property in absence of custom strategy</dd> 630</dl> 631</li> 632</ul> 633</li> 634</ul> 635</li> 636</ul> 637</div> 638</div> 639<!-- ========= END OF CLASS DATA ========= --> 640<!-- ======= START OF BOTTOM NAVBAR ====== --> 641<div class="bottomNav"><a name="navbar.bottom"> 642<!-- --> 643</a> 644<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> 645<a name="navbar.bottom.firstrow"> 646<!-- --> 647</a> 648<ul class="navList" title="Navigation"> 649<li><a href="../../../../overview-summary.html">Overview</a></li> 650<li><a href="package-summary.html">Package</a></li> 651<li class="navBarCell1Rev">Class</li> 652<li><a href="class-use/PropertyNamingStrategy.html">Use</a></li> 653<li><a href="package-tree.html">Tree</a></li> 654<li><a href="../../../../deprecated-list.html">Deprecated</a></li> 655<li><a href="../../../../index-all.html">Index</a></li> 656<li><a href="../../../../help-doc.html">Help</a></li> 657</ul> 658</div> 659<div class="subNav"> 660<ul class="navList"> 661<li><a href="../../../../com/fasterxml/jackson/databind/PropertyName.html" title="class in com.fasterxml.jackson.databind"><span class="typeNameLink">Prev Class</span></a></li> 662<li><a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.KebabCaseStrategy.html" title="class in com.fasterxml.jackson.databind"><span class="typeNameLink">Next Class</span></a></li> 663</ul> 664<ul class="navList"> 665<li><a href="../../../../index.html?com/fasterxml/jackson/databind/PropertyNamingStrategy.html" target="_top">Frames</a></li> 666<li><a href="PropertyNamingStrategy.html" target="_top">No Frames</a></li> 667</ul> 668<ul class="navList" id="allclasses_navbar_bottom"> 669<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> 670</ul> 671<div> 672<script type="text/javascript"><!-- 673 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 674 if(window==top) { 675 allClassesLink.style.display = "block"; 676 } 677 else { 678 allClassesLink.style.display = "none"; 679 } 680 //--> 681</script> 682</div> 683<div> 684<ul class="subNavList"> 685<li>Summary: </li> 686<li><a href="#nested.class.summary">Nested</a> | </li> 687<li><a href="#field.summary">Field</a> | </li> 688<li><a href="#constructor.summary">Constr</a> | </li> 689<li><a href="#method.summary">Method</a></li> 690</ul> 691<ul class="subNavList"> 692<li>Detail: </li> 693<li><a href="#field.detail">Field</a> | </li> 694<li><a href="#constructor.detail">Constr</a> | </li> 695<li><a href="#method.detail">Method</a></li> 696</ul> 697</div> 698<a name="skip.navbar.bottom"> 699<!-- --> 700</a></div> 701<!-- ======== END OF BOTTOM NAVBAR ======= --> 702<p class="legalCopy"><small>Copyright © 2008–2020 <a href="http://fasterxml.com/">FasterXML</a>. All rights reserved.</small></p> 703</body> 704</html> 705