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_79) on Wed Jul 20 08:39:10 PDT 2016 --> 6<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 7<title>PropertyNamingStrategy.UpperCamelCaseStrategy (jackson-databind 2.8.0 API)</title> 8<meta name="date" content="2016-07-20"> 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="PropertyNamingStrategy.UpperCamelCaseStrategy (jackson-databind 2.8.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/PropertyNamingStrategy.UpperCamelCaseStrategy.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/PropertyNamingStrategy.SnakeCaseStrategy.html" title="class in com.fasterxml.jackson.databind"><span class="strong">Prev Class</span></a></li> 41<li><a href="../../../../com/fasterxml/jackson/databind/RuntimeJsonMappingException.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/PropertyNamingStrategy.UpperCamelCaseStrategy.html" target="_top">Frames</a></li> 45<li><a href="PropertyNamingStrategy.UpperCamelCaseStrategy.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><a href="#nested_classes_inherited_from_class_com.fasterxml.jackson.databind.PropertyNamingStrategy">Nested</a> | </li> 66<li><a href="#fields_inherited_from_class_com.fasterxml.jackson.databind.PropertyNamingStrategy">Field</a> | </li> 67<li><a href="#constructor_summary">Constr</a> | </li> 68<li><a href="#method_summary">Method</a></li> 69</ul> 70<ul class="subNavList"> 71<li>Detail: </li> 72<li>Field | </li> 73<li><a href="#constructor_detail">Constr</a> | </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="Class PropertyNamingStrategy.UpperCamelCaseStrategy" class="title">Class PropertyNamingStrategy.UpperCamelCaseStrategy</h2> 85</div> 86<div class="contentContainer"> 87<ul class="inheritance"> 88<li><a href="http://docs.oracle.com/javase/7/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="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html" title="class in com.fasterxml.jackson.databind">com.fasterxml.jackson.databind.PropertyNamingStrategy</a></li> 92<li> 93<ul class="inheritance"> 94<li><a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.PropertyNamingStrategyBase.html" title="class in com.fasterxml.jackson.databind">com.fasterxml.jackson.databind.PropertyNamingStrategy.PropertyNamingStrategyBase</a></li> 95<li> 96<ul class="inheritance"> 97<li>com.fasterxml.jackson.databind.PropertyNamingStrategy.UpperCamelCaseStrategy</li> 98</ul> 99</li> 100</ul> 101</li> 102</ul> 103</li> 104</ul> 105<div class="description"> 106<ul class="blockList"> 107<li class="blockList"> 108<dl> 109<dt>All Implemented Interfaces:</dt> 110<dd><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a></dd> 111</dl> 112<dl> 113<dt>Direct Known Subclasses:</dt> 114<dd><a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.PascalCaseStrategy.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy.PascalCaseStrategy</a></dd> 115</dl> 116<dl> 117<dt>Enclosing class:</dt> 118<dd><a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy</a></dd> 119</dl> 120<hr> 121<br> 122<pre>public static class <span class="strong">PropertyNamingStrategy.UpperCamelCaseStrategy</span> 123extends <a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.PropertyNamingStrategyBase.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy.PropertyNamingStrategyBase</a></pre> 124<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 125 property names to PascalCase JSON element names (i.e., with a capital 126 first letter). In particular, the following translations are applied by 127 this PropertyNamingStrategy. 128 129 <ul><li>The first lower-case letter in the Java property name is translated 130 into its equivalent upper-case representation.</li></ul> 131 132 This rules result in the following example translation from 133 Java property names to JSON element names. 134 <ul><li>"userName" is translated to "UserName"</li></ul></div> 135<dl><dt><span class="strong">Since:</span></dt> 136 <dd>2.7 (was formerly called <a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.PascalCaseStrategy.html" title="class in com.fasterxml.jackson.databind"><code>PropertyNamingStrategy.PascalCaseStrategy</code></a>)</dd> 137<dt><span class="strong">See Also:</span></dt><dd><a href="../../../../serialized-form.html#com.fasterxml.jackson.databind.PropertyNamingStrategy.UpperCamelCaseStrategy">Serialized Form</a></dd></dl> 138</li> 139</ul> 140</div> 141<div class="summary"> 142<ul class="blockList"> 143<li class="blockList"> 144<!-- ======== NESTED CLASS SUMMARY ======== --> 145<ul class="blockList"> 146<li class="blockList"><a name="nested_class_summary"> 147<!-- --> 148</a> 149<h3>Nested Class Summary</h3> 150<ul class="blockList"> 151<li class="blockList"><a name="nested_classes_inherited_from_class_com.fasterxml.jackson.databind.PropertyNamingStrategy"> 152<!-- --> 153</a> 154<h3>Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.<a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy</a></h3> 155<code><a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.KebabCaseStrategy.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy.KebabCaseStrategy</a>, <a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.LowerCaseStrategy.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy.LowerCaseStrategy</a>, <a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.LowerCaseWithUnderscoresStrategy.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy.LowerCaseWithUnderscoresStrategy</a>, <a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.PascalCaseStrategy.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy.PascalCaseStrategy</a>, <a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.PropertyNamingStrategyBase.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy.PropertyNamingStrategyBase</a>, <a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.SnakeCaseStrategy.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy.SnakeCaseStrategy</a>, <a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.UpperCamelCaseStrategy.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy.UpperCamelCaseStrategy</a></code></li> 156</ul> 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<ul class="blockList"> 166<li class="blockList"><a name="fields_inherited_from_class_com.fasterxml.jackson.databind.PropertyNamingStrategy"> 167<!-- --> 168</a> 169<h3>Fields inherited from class com.fasterxml.jackson.databind.<a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy</a></h3> 170<code><a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html#CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES">CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES</a>, <a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html#KEBAB_CASE">KEBAB_CASE</a>, <a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html#LOWER_CAMEL_CASE">LOWER_CAMEL_CASE</a>, <a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html#LOWER_CASE">LOWER_CASE</a>, <a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html#PASCAL_CASE_TO_CAMEL_CASE">PASCAL_CASE_TO_CAMEL_CASE</a>, <a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html#SNAKE_CASE">SNAKE_CASE</a>, <a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html#UPPER_CAMEL_CASE">UPPER_CAMEL_CASE</a></code></li> 171</ul> 172</li> 173</ul> 174<!-- ======== CONSTRUCTOR SUMMARY ======== --> 175<ul class="blockList"> 176<li class="blockList"><a name="constructor_summary"> 177<!-- --> 178</a> 179<h3>Constructor Summary</h3> 180<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> 181<caption><span>Constructors</span><span class="tabEnd"> </span></caption> 182<tr> 183<th class="colOne" scope="col">Constructor and Description</th> 184</tr> 185<tr class="altColor"> 186<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.UpperCamelCaseStrategy.html#PropertyNamingStrategy.UpperCamelCaseStrategy()">PropertyNamingStrategy.UpperCamelCaseStrategy</a></strong>()</code> </td> 187</tr> 188</table> 189</li> 190</ul> 191<!-- ========== METHOD SUMMARY =========== --> 192<ul class="blockList"> 193<li class="blockList"><a name="method_summary"> 194<!-- --> 195</a> 196<h3>Method Summary</h3> 197<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> 198<caption><span>Methods</span><span class="tabEnd"> </span></caption> 199<tr> 200<th class="colFirst" scope="col">Modifier and Type</th> 201<th class="colLast" scope="col">Method and Description</th> 202</tr> 203<tr class="altColor"> 204<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> 205<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.UpperCamelCaseStrategy.html#translate(java.lang.String)">translate</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> input)</code> 206<div class="block">Converts camelCase to PascalCase 207 208 For example, "userName" would be converted to 209 "UserName".</div> 210</td> 211</tr> 212</table> 213<ul class="blockList"> 214<li class="blockList"><a name="methods_inherited_from_class_com.fasterxml.jackson.databind.PropertyNamingStrategy.PropertyNamingStrategyBase"> 215<!-- --> 216</a> 217<h3>Methods inherited from class com.fasterxml.jackson.databind.<a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.PropertyNamingStrategyBase.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy.PropertyNamingStrategyBase</a></h3> 218<code><a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.PropertyNamingStrategyBase.html#nameForConstructorParameter(com.fasterxml.jackson.databind.cfg.MapperConfig,%20com.fasterxml.jackson.databind.introspect.AnnotatedParameter,%20java.lang.String)">nameForConstructorParameter</a>, <a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.PropertyNamingStrategyBase.html#nameForField(com.fasterxml.jackson.databind.cfg.MapperConfig,%20com.fasterxml.jackson.databind.introspect.AnnotatedField,%20java.lang.String)">nameForField</a>, <a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.PropertyNamingStrategyBase.html#nameForGetterMethod(com.fasterxml.jackson.databind.cfg.MapperConfig,%20com.fasterxml.jackson.databind.introspect.AnnotatedMethod,%20java.lang.String)">nameForGetterMethod</a>, <a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.PropertyNamingStrategyBase.html#nameForSetterMethod(com.fasterxml.jackson.databind.cfg.MapperConfig,%20com.fasterxml.jackson.databind.introspect.AnnotatedMethod,%20java.lang.String)">nameForSetterMethod</a></code></li> 219</ul> 220<ul class="blockList"> 221<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> 222<!-- --> 223</a> 224<h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> 225<code><a href="http://docs.oracle.com/javase/7/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/7/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/7/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/7/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/7/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/7/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/7/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/7/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/7/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/7/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/7/docs/api/java/lang/Object.html?is-external=true#wait(long,%20int)" title="class or interface in java.lang">wait</a></code></li> 226</ul> 227</li> 228</ul> 229</li> 230</ul> 231</div> 232<div class="details"> 233<ul class="blockList"> 234<li class="blockList"> 235<!-- ========= CONSTRUCTOR DETAIL ======== --> 236<ul class="blockList"> 237<li class="blockList"><a name="constructor_detail"> 238<!-- --> 239</a> 240<h3>Constructor Detail</h3> 241<a name="PropertyNamingStrategy.UpperCamelCaseStrategy()"> 242<!-- --> 243</a> 244<ul class="blockListLast"> 245<li class="blockList"> 246<h4>PropertyNamingStrategy.UpperCamelCaseStrategy</h4> 247<pre>public PropertyNamingStrategy.UpperCamelCaseStrategy()</pre> 248</li> 249</ul> 250</li> 251</ul> 252<!-- ============ METHOD DETAIL ========== --> 253<ul class="blockList"> 254<li class="blockList"><a name="method_detail"> 255<!-- --> 256</a> 257<h3>Method Detail</h3> 258<a name="translate(java.lang.String)"> 259<!-- --> 260</a> 261<ul class="blockListLast"> 262<li class="blockList"> 263<h4>translate</h4> 264<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> translate(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> input)</pre> 265<div class="block">Converts camelCase to PascalCase 266 267 For example, "userName" would be converted to 268 "UserName".</div> 269<dl> 270<dt><strong>Specified by:</strong></dt> 271<dd><code><a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.PropertyNamingStrategyBase.html#translate(java.lang.String)">translate</a></code> in class <code><a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.PropertyNamingStrategyBase.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy.PropertyNamingStrategyBase</a></code></dd> 272<dt><span class="strong">Parameters:</span></dt><dd><code>input</code> - formatted as camelCase string</dd> 273<dt><span class="strong">Returns:</span></dt><dd>input converted to PascalCase format</dd></dl> 274</li> 275</ul> 276</li> 277</ul> 278</li> 279</ul> 280</div> 281</div> 282<!-- ========= END OF CLASS DATA ========= --> 283<!-- ======= START OF BOTTOM NAVBAR ====== --> 284<div class="bottomNav"><a name="navbar_bottom"> 285<!-- --> 286</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> 287<!-- --> 288</a> 289<ul class="navList" title="Navigation"> 290<li><a href="../../../../overview-summary.html">Overview</a></li> 291<li><a href="package-summary.html">Package</a></li> 292<li class="navBarCell1Rev">Class</li> 293<li><a href="class-use/PropertyNamingStrategy.UpperCamelCaseStrategy.html">Use</a></li> 294<li><a href="package-tree.html">Tree</a></li> 295<li><a href="../../../../deprecated-list.html">Deprecated</a></li> 296<li><a href="../../../../index-all.html">Index</a></li> 297<li><a href="../../../../help-doc.html">Help</a></li> 298</ul> 299</div> 300<div class="subNav"> 301<ul class="navList"> 302<li><a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.SnakeCaseStrategy.html" title="class in com.fasterxml.jackson.databind"><span class="strong">Prev Class</span></a></li> 303<li><a href="../../../../com/fasterxml/jackson/databind/RuntimeJsonMappingException.html" title="class in com.fasterxml.jackson.databind"><span class="strong">Next Class</span></a></li> 304</ul> 305<ul class="navList"> 306<li><a href="../../../../index.html?com/fasterxml/jackson/databind/PropertyNamingStrategy.UpperCamelCaseStrategy.html" target="_top">Frames</a></li> 307<li><a href="PropertyNamingStrategy.UpperCamelCaseStrategy.html" target="_top">No Frames</a></li> 308</ul> 309<ul class="navList" id="allclasses_navbar_bottom"> 310<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> 311</ul> 312<div> 313<script type="text/javascript"><!-- 314 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 315 if(window==top) { 316 allClassesLink.style.display = "block"; 317 } 318 else { 319 allClassesLink.style.display = "none"; 320 } 321 //--> 322</script> 323</div> 324<div> 325<ul class="subNavList"> 326<li>Summary: </li> 327<li><a href="#nested_classes_inherited_from_class_com.fasterxml.jackson.databind.PropertyNamingStrategy">Nested</a> | </li> 328<li><a href="#fields_inherited_from_class_com.fasterxml.jackson.databind.PropertyNamingStrategy">Field</a> | </li> 329<li><a href="#constructor_summary">Constr</a> | </li> 330<li><a href="#method_summary">Method</a></li> 331</ul> 332<ul class="subNavList"> 333<li>Detail: </li> 334<li>Field | </li> 335<li><a href="#constructor_detail">Constr</a> | </li> 336<li><a href="#method_detail">Method</a></li> 337</ul> 338</div> 339<a name="skip-navbar_bottom"> 340<!-- --> 341</a></div> 342<!-- ======== END OF BOTTOM NAVBAR ======= --> 343<p class="legalCopy"><small>Copyright © 2008–2016 <a href="http://fasterxml.com/">FasterXML</a>. All rights reserved.</small></p> 344</body> 345</html> 346