• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2<!-- NewPage -->
3<html lang="en">
4<head>
5<!-- Generated by javadoc (version 1.7.0_25) on Thu Jan 01 17:43:55 PST 2015 -->
6<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
7<title>PropertyNamingStrategy.PascalCaseStrategy (jackson-databind 2.5.0 API)</title>
8<meta name="date" content="2015-01-01">
9<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
10</head>
11<body>
12<script type="text/javascript"><!--
13    if (location.href.indexOf('is-external=true') == -1) {
14        parent.document.title="PropertyNamingStrategy.PascalCaseStrategy (jackson-databind 2.5.0 API)";
15    }
16//-->
17</script>
18<noscript>
19<div>JavaScript is disabled on your browser.</div>
20</noscript>
21<!-- ========= START OF TOP NAVBAR ======= -->
22<div class="topNav"><a name="navbar_top">
23<!--   -->
24</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
25<!--   -->
26</a>
27<ul class="navList" title="Navigation">
28<li><a href="../../../../overview-summary.html">Overview</a></li>
29<li><a href="package-summary.html">Package</a></li>
30<li class="navBarCell1Rev">Class</li>
31<li><a href="class-use/PropertyNamingStrategy.PascalCaseStrategy.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.LowerCaseWithUnderscoresStrategy.html" title="class in com.fasterxml.jackson.databind"><span class="strong">Prev Class</span></a></li>
41<li><a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.PropertyNamingStrategyBase.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.PascalCaseStrategy.html" target="_top">Frames</a></li>
45<li><a href="PropertyNamingStrategy.PascalCaseStrategy.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:&nbsp;</li>
65<li><a href="#nested_classes_inherited_from_class_com.fasterxml.jackson.databind.PropertyNamingStrategy">Nested</a>&nbsp;|&nbsp;</li>
66<li><a href="#fields_inherited_from_class_com.fasterxml.jackson.databind.PropertyNamingStrategy">Field</a>&nbsp;|&nbsp;</li>
67<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
68<li><a href="#method_summary">Method</a></li>
69</ul>
70<ul class="subNavList">
71<li>Detail:&nbsp;</li>
72<li>Field&nbsp;|&nbsp;</li>
73<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</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.PascalCaseStrategy" class="title">Class PropertyNamingStrategy.PascalCaseStrategy</h2>
85</div>
86<div class="contentContainer">
87<ul class="inheritance">
88<li><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
89<li>
90<ul class="inheritance">
91<li><a href="../../../../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.PascalCaseStrategy</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/6/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>Enclosing class:</dt>
114<dd><a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy</a></dd>
115</dl>
116<hr>
117<br>
118<pre>public static class <span class="strong">PropertyNamingStrategy.PascalCaseStrategy</span>
119extends <a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.PropertyNamingStrategyBase.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy.PropertyNamingStrategyBase</a></pre>
120<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
121 property names to PascalCase JSON element names (i.e., with a capital
122 first letter).  In particular, the following translations are applied by
123 this PropertyNamingStrategy.
124
125 <ul><li>The first lower-case letter in the Java property name is translated
126 into its equivalent upper-case representation.</li></ul>
127
128 This rules result in the following example translation from
129 Java property names to JSON element names.
130 <ul><li>&quot;userName&quot; is translated to &quot;UserName&quot;</li></ul></div>
131<dl><dt><span class="strong">Since:</span></dt>
132  <dd>2.1</dd>
133<dt><span class="strong">See Also:</span></dt><dd><a href="../../../../serialized-form.html#com.fasterxml.jackson.databind.PropertyNamingStrategy.PascalCaseStrategy">Serialized Form</a></dd></dl>
134</li>
135</ul>
136</div>
137<div class="summary">
138<ul class="blockList">
139<li class="blockList">
140<!-- ======== NESTED CLASS SUMMARY ======== -->
141<ul class="blockList">
142<li class="blockList"><a name="nested_class_summary">
143<!--   -->
144</a>
145<h3>Nested Class Summary</h3>
146<ul class="blockList">
147<li class="blockList"><a name="nested_classes_inherited_from_class_com.fasterxml.jackson.databind.PropertyNamingStrategy">
148<!--   -->
149</a>
150<h3>Nested classes/interfaces inherited from class&nbsp;com.fasterxml.jackson.databind.<a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy</a></h3>
151<code><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></code></li>
152</ul>
153</li>
154</ul>
155<!-- =========== FIELD SUMMARY =========== -->
156<ul class="blockList">
157<li class="blockList"><a name="field_summary">
158<!--   -->
159</a>
160<h3>Field Summary</h3>
161<ul class="blockList">
162<li class="blockList"><a name="fields_inherited_from_class_com.fasterxml.jackson.databind.PropertyNamingStrategy">
163<!--   -->
164</a>
165<h3>Fields inherited from class&nbsp;com.fasterxml.jackson.databind.<a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy</a></h3>
166<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#LOWER_CASE">LOWER_CASE</a>, <a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html#PASCAL_CASE_TO_CAMEL_CASE">PASCAL_CASE_TO_CAMEL_CASE</a></code></li>
167</ul>
168</li>
169</ul>
170<!-- ======== CONSTRUCTOR SUMMARY ======== -->
171<ul class="blockList">
172<li class="blockList"><a name="constructor_summary">
173<!--   -->
174</a>
175<h3>Constructor Summary</h3>
176<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
177<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
178<tr>
179<th class="colOne" scope="col">Constructor and Description</th>
180</tr>
181<tr class="altColor">
182<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.PascalCaseStrategy.html#PropertyNamingStrategy.PascalCaseStrategy()">PropertyNamingStrategy.PascalCaseStrategy</a></strong>()</code>&nbsp;</td>
183</tr>
184</table>
185</li>
186</ul>
187<!-- ========== METHOD SUMMARY =========== -->
188<ul class="blockList">
189<li class="blockList"><a name="method_summary">
190<!--   -->
191</a>
192<h3>Method Summary</h3>
193<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
194<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
195<tr>
196<th class="colFirst" scope="col">Modifier and Type</th>
197<th class="colLast" scope="col">Method and Description</th>
198</tr>
199<tr class="altColor">
200<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>
201<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.PascalCaseStrategy.html#translate(java.lang.String)">translate</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;input)</code>
202<div class="block">Converts camelCase to PascalCase
203
204 For example, "userName" would be converted to
205 "UserName".</div>
206</td>
207</tr>
208</table>
209<ul class="blockList">
210<li class="blockList"><a name="methods_inherited_from_class_com.fasterxml.jackson.databind.PropertyNamingStrategy.PropertyNamingStrategyBase">
211<!--   -->
212</a>
213<h3>Methods inherited from class&nbsp;com.fasterxml.jackson.databind.<a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.PropertyNamingStrategyBase.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy.PropertyNamingStrategyBase</a></h3>
214<code><a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.PropertyNamingStrategyBase.html#nameForConstructorParameter(com.fasterxml.jackson.databind.cfg.MapperConfig, com.fasterxml.jackson.databind.introspect.AnnotatedParameter, java.lang.String)">nameForConstructorParameter</a>, <a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.PropertyNamingStrategyBase.html#nameForField(com.fasterxml.jackson.databind.cfg.MapperConfig, com.fasterxml.jackson.databind.introspect.AnnotatedField, java.lang.String)">nameForField</a>, <a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.PropertyNamingStrategyBase.html#nameForGetterMethod(com.fasterxml.jackson.databind.cfg.MapperConfig, com.fasterxml.jackson.databind.introspect.AnnotatedMethod, java.lang.String)">nameForGetterMethod</a>, <a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.PropertyNamingStrategyBase.html#nameForSetterMethod(com.fasterxml.jackson.databind.cfg.MapperConfig, com.fasterxml.jackson.databind.introspect.AnnotatedMethod, java.lang.String)">nameForSetterMethod</a></code></li>
215</ul>
216<ul class="blockList">
217<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
218<!--   -->
219</a>
220<h3>Methods inherited from class&nbsp;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>
221<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>
222</ul>
223</li>
224</ul>
225</li>
226</ul>
227</div>
228<div class="details">
229<ul class="blockList">
230<li class="blockList">
231<!-- ========= CONSTRUCTOR DETAIL ======== -->
232<ul class="blockList">
233<li class="blockList"><a name="constructor_detail">
234<!--   -->
235</a>
236<h3>Constructor Detail</h3>
237<a name="PropertyNamingStrategy.PascalCaseStrategy()">
238<!--   -->
239</a>
240<ul class="blockListLast">
241<li class="blockList">
242<h4>PropertyNamingStrategy.PascalCaseStrategy</h4>
243<pre>public&nbsp;PropertyNamingStrategy.PascalCaseStrategy()</pre>
244</li>
245</ul>
246</li>
247</ul>
248<!-- ============ METHOD DETAIL ========== -->
249<ul class="blockList">
250<li class="blockList"><a name="method_detail">
251<!--   -->
252</a>
253<h3>Method Detail</h3>
254<a name="translate(java.lang.String)">
255<!--   -->
256</a>
257<ul class="blockListLast">
258<li class="blockList">
259<h4>translate</h4>
260<pre>public&nbsp;<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;translate(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;input)</pre>
261<div class="block">Converts camelCase to PascalCase
262
263 For example, "userName" would be converted to
264 "UserName".</div>
265<dl>
266<dt><strong>Specified by:</strong></dt>
267<dd><code><a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.PropertyNamingStrategyBase.html#translate(java.lang.String)">translate</a></code>&nbsp;in class&nbsp;<code><a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.PropertyNamingStrategyBase.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy.PropertyNamingStrategyBase</a></code></dd>
268<dt><span class="strong">Parameters:</span></dt><dd><code>input</code> - formatted as camelCase string</dd>
269<dt><span class="strong">Returns:</span></dt><dd>input converted to PascalCase format</dd></dl>
270</li>
271</ul>
272</li>
273</ul>
274</li>
275</ul>
276</div>
277</div>
278<!-- ========= END OF CLASS DATA ========= -->
279<!-- ======= START OF BOTTOM NAVBAR ====== -->
280<div class="bottomNav"><a name="navbar_bottom">
281<!--   -->
282</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
283<!--   -->
284</a>
285<ul class="navList" title="Navigation">
286<li><a href="../../../../overview-summary.html">Overview</a></li>
287<li><a href="package-summary.html">Package</a></li>
288<li class="navBarCell1Rev">Class</li>
289<li><a href="class-use/PropertyNamingStrategy.PascalCaseStrategy.html">Use</a></li>
290<li><a href="package-tree.html">Tree</a></li>
291<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
292<li><a href="../../../../index-all.html">Index</a></li>
293<li><a href="../../../../help-doc.html">Help</a></li>
294</ul>
295</div>
296<div class="subNav">
297<ul class="navList">
298<li><a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.LowerCaseWithUnderscoresStrategy.html" title="class in com.fasterxml.jackson.databind"><span class="strong">Prev Class</span></a></li>
299<li><a href="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.PropertyNamingStrategyBase.html" title="class in com.fasterxml.jackson.databind"><span class="strong">Next Class</span></a></li>
300</ul>
301<ul class="navList">
302<li><a href="../../../../index.html?com/fasterxml/jackson/databind/PropertyNamingStrategy.PascalCaseStrategy.html" target="_top">Frames</a></li>
303<li><a href="PropertyNamingStrategy.PascalCaseStrategy.html" target="_top">No Frames</a></li>
304</ul>
305<ul class="navList" id="allclasses_navbar_bottom">
306<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
307</ul>
308<div>
309<script type="text/javascript"><!--
310  allClassesLink = document.getElementById("allclasses_navbar_bottom");
311  if(window==top) {
312    allClassesLink.style.display = "block";
313  }
314  else {
315    allClassesLink.style.display = "none";
316  }
317  //-->
318</script>
319</div>
320<div>
321<ul class="subNavList">
322<li>Summary:&nbsp;</li>
323<li><a href="#nested_classes_inherited_from_class_com.fasterxml.jackson.databind.PropertyNamingStrategy">Nested</a>&nbsp;|&nbsp;</li>
324<li><a href="#fields_inherited_from_class_com.fasterxml.jackson.databind.PropertyNamingStrategy">Field</a>&nbsp;|&nbsp;</li>
325<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
326<li><a href="#method_summary">Method</a></li>
327</ul>
328<ul class="subNavList">
329<li>Detail:&nbsp;</li>
330<li>Field&nbsp;|&nbsp;</li>
331<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
332<li><a href="#method_detail">Method</a></li>
333</ul>
334</div>
335<a name="skip-navbar_bottom">
336<!--   -->
337</a></div>
338<!-- ======== END OF BOTTOM NAVBAR ======= -->
339<p class="legalCopy"><small>Copyright &#169; 2014-2015 <a href="http://fasterxml.com/">FasterXML</a>. All Rights Reserved.</small></p>
340</body>
341</html>
342