1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2<!--NewPage--> 3<HTML> 4<HEAD> 5<!-- Generated by javadoc (build 1.6.0_35) on Tue Oct 09 17:08:09 PDT 2012 --> 6<META http-equiv="Content-Type" content="text/html; charset=UTF-8"> 7<TITLE> 8PropertyNamingStrategy (jackson-databind 2.1.0 API) 9</TITLE> 10 11<META NAME="date" CONTENT="2012-10-09"> 12 13<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> 14 15<SCRIPT type="text/javascript"> 16function windowTitle() 17{ 18 if (location.href.indexOf('is-external=true') == -1) { 19 parent.document.title="PropertyNamingStrategy (jackson-databind 2.1.0 API)"; 20 } 21} 22</SCRIPT> 23<NOSCRIPT> 24</NOSCRIPT> 25 26</HEAD> 27 28<BODY BGCOLOR="white" onload="windowTitle();"> 29<HR> 30 31 32<!-- ========= START OF TOP NAVBAR ======= --> 33<A NAME="navbar_top"><!-- --></A> 34<A HREF="#skip-navbar_top" title="Skip navigation links"></A> 35<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 36<TR> 37<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 38<A NAME="navbar_top_firstrow"><!-- --></A> 39<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 40 <TR ALIGN="center" VALIGN="top"> 41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 43 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/PropertyNamingStrategy.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> 45 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 46 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 47 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 48 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 49 </TR> 50</TABLE> 51</TD> 52<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 53</EM> 54</TD> 55</TR> 56 57<TR> 58<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 59 <A HREF="../../../../com/fasterxml/jackson/databind/PropertyName.html" title="class in com.fasterxml.jackson.databind"><B>PREV CLASS</B></A> 60 <A HREF="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.LowerCaseWithUnderscoresStrategy.html" title="class in com.fasterxml.jackson.databind"><B>NEXT CLASS</B></A></FONT></TD> 61<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 62 <A HREF="../../../../index.html?com/fasterxml/jackson/databind/PropertyNamingStrategy.html" target="_top"><B>FRAMES</B></A> 63 <A HREF="PropertyNamingStrategy.html" target="_top"><B>NO FRAMES</B></A> 64 <SCRIPT type="text/javascript"> 65 <!-- 66 if(window==top) { 67 document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); 68 } 69 //--> 70</SCRIPT> 71<NOSCRIPT> 72 <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> 73</NOSCRIPT> 74 75 76</FONT></TD> 77</TR> 78<TR> 79<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 80 SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> 81<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 82DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> 83</TR> 84</TABLE> 85<A NAME="skip-navbar_top"></A> 86<!-- ========= END OF TOP NAVBAR ========= --> 87 88<HR> 89<!-- ======== START OF CLASS DATA ======== --> 90<H2> 91<FONT SIZE="-1"> 92com.fasterxml.jackson.databind</FONT> 93<BR> 94Class PropertyNamingStrategy</H2> 95<PRE> 96<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> 97 <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.fasterxml.jackson.databind.PropertyNamingStrategy</B> 98</PRE> 99<DL> 100<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.PropertyNamingStrategyBase.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy.PropertyNamingStrategyBase</A></DD> 101</DL> 102<HR> 103<DL> 104<DT><PRE>public abstract class <B>PropertyNamingStrategy</B><DT>extends <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></DL> 105</PRE> 106 107<P> 108Class that defines how names of JSON properties ("external names") 109 are derived from names of POJO methods and fields ("internal names"), 110 in cases where they are not 111 auto-detected and no explicit annotations exist for naming. 112 Methods are passed information about POJO member for which name is needed, 113 as well as default name that would be used if no custom strategy was used. 114<p> 115 Default implementation returns suggested ("default") name unmodified. 116<p> 117 Note that the strategy is guaranteed to be called once per logical property 118 (which may be represented by multiple members; such as pair of a getter and 119 a setter), but may be called for each: implementations should not count on 120 exact number of times, and should work for any member that represent a 121 property. 122<p> 123 In absence of a registered custom strategy, default Java property naming strategy 124 is used, which leaves field names as is, and removes set/get/is prefix 125 from methods (as well as lower-cases initial sequence of capitalized 126 characters). 127<P> 128 129<P> 130<HR> 131 132<P> 133<!-- ======== NESTED CLASS SUMMARY ======== --> 134 135<A NAME="nested_class_summary"><!-- --></A> 136<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 137<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 138<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 139<B>Nested Class Summary</B></FONT></TH> 140</TR> 141<TR BGCOLOR="white" CLASS="TableRowColor"> 142<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 143<CODE>static class</CODE></FONT></TD> 144<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.LowerCaseWithUnderscoresStrategy.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy.LowerCaseWithUnderscoresStrategy</A></B></CODE> 145 146<BR> 147 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 148 property names to lower case JSON element names, separated by 149 underscores.</TD> 150</TR> 151<TR BGCOLOR="white" CLASS="TableRowColor"> 152<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 153<CODE>static class</CODE></FONT></TD> 154<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.PascalCaseStrategy.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy.PascalCaseStrategy</A></B></CODE> 155 156<BR> 157 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 158 property names to PascalCase JSON element names (i.e., with a capital 159 first letter).</TD> 160</TR> 161<TR BGCOLOR="white" CLASS="TableRowColor"> 162<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 163<CODE>static class</CODE></FONT></TD> 164<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.PropertyNamingStrategyBase.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy.PropertyNamingStrategyBase</A></B></CODE> 165 166<BR> 167 </TD> 168</TR> 169</TABLE> 170 <!-- =========== FIELD SUMMARY =========== --> 171 172<A NAME="field_summary"><!-- --></A> 173<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 174<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 175<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 176<B>Field Summary</B></FONT></TH> 177</TR> 178<TR BGCOLOR="white" CLASS="TableRowColor"> 179<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 180<CODE>static <A HREF="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy</A></CODE></FONT></TD> 181<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html#CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES">CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES</A></B></CODE> 182 183<BR> 184 See <A HREF="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.LowerCaseWithUnderscoresStrategy.html" title="class in com.fasterxml.jackson.databind"><CODE>PropertyNamingStrategy.LowerCaseWithUnderscoresStrategy</CODE></A> for details.</TD> 185</TR> 186<TR BGCOLOR="white" CLASS="TableRowColor"> 187<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 188<CODE>static <A HREF="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy</A></CODE></FONT></TD> 189<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html#PASCAL_CASE_TO_CAMEL_CASE">PASCAL_CASE_TO_CAMEL_CASE</A></B></CODE> 190 191<BR> 192 See <A HREF="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.PascalCaseStrategy.html" title="class in com.fasterxml.jackson.databind"><CODE>PropertyNamingStrategy.PascalCaseStrategy</CODE></A> for details.</TD> 193</TR> 194</TABLE> 195 196<!-- ======== CONSTRUCTOR SUMMARY ======== --> 197 198<A NAME="constructor_summary"><!-- --></A> 199<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 200<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 201<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 202<B>Constructor Summary</B></FONT></TH> 203</TR> 204<TR BGCOLOR="white" CLASS="TableRowColor"> 205<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html#PropertyNamingStrategy()">PropertyNamingStrategy</A></B>()</CODE> 206 207<BR> 208 </TD> 209</TR> 210</TABLE> 211 212<!-- ========== METHOD SUMMARY =========== --> 213 214<A NAME="method_summary"><!-- --></A> 215<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 216<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 217<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 218<B>Method Summary</B></FONT></TH> 219</TR> 220<TR BGCOLOR="white" CLASS="TableRowColor"> 221<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 222<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></FONT></TD> 223<TD><CODE><B><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></B>(<A HREF="../../../../com/fasterxml/jackson/databind/cfg/MapperConfig.html" title="class in com.fasterxml.jackson.databind.cfg">MapperConfig</A><?> config, 224 <A HREF="../../../../com/fasterxml/jackson/databind/introspect/AnnotatedParameter.html" title="class in com.fasterxml.jackson.databind.introspect">AnnotatedParameter</A> ctorParam, 225 <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> 226 227<BR> 228 Method called to find external name (name used in JSON) for given logical 229 POJO property, 230 as defined by given constructor parameter; typically called when building a deserializer 231 (but not necessarily only then).</TD> 232</TR> 233<TR BGCOLOR="white" CLASS="TableRowColor"> 234<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 235<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></FONT></TD> 236<TD><CODE><B><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></B>(<A HREF="../../../../com/fasterxml/jackson/databind/cfg/MapperConfig.html" title="class in com.fasterxml.jackson.databind.cfg">MapperConfig</A><?> config, 237 <A HREF="../../../../com/fasterxml/jackson/databind/introspect/AnnotatedField.html" title="class in com.fasterxml.jackson.databind.introspect">AnnotatedField</A> field, 238 <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> 239 240<BR> 241 Method called to find external name (name used in JSON) for given logical 242 POJO property, 243 as defined by given field.</TD> 244</TR> 245<TR BGCOLOR="white" CLASS="TableRowColor"> 246<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 247<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></FONT></TD> 248<TD><CODE><B><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></B>(<A HREF="../../../../com/fasterxml/jackson/databind/cfg/MapperConfig.html" title="class in com.fasterxml.jackson.databind.cfg">MapperConfig</A><?> config, 249 <A HREF="../../../../com/fasterxml/jackson/databind/introspect/AnnotatedMethod.html" title="class in com.fasterxml.jackson.databind.introspect">AnnotatedMethod</A> method, 250 <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> 251 252<BR> 253 Method called to find external name (name used in JSON) for given logical 254 POJO property, 255 as defined by given getter method; typically called when building a serializer.</TD> 256</TR> 257<TR BGCOLOR="white" CLASS="TableRowColor"> 258<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 259<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></FONT></TD> 260<TD><CODE><B><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></B>(<A HREF="../../../../com/fasterxml/jackson/databind/cfg/MapperConfig.html" title="class in com.fasterxml.jackson.databind.cfg">MapperConfig</A><?> config, 261 <A HREF="../../../../com/fasterxml/jackson/databind/introspect/AnnotatedMethod.html" title="class in com.fasterxml.jackson.databind.introspect">AnnotatedMethod</A> method, 262 <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> 263 264<BR> 265 Method called to find external name (name used in JSON) for given logical 266 POJO property, 267 as defined by given setter method; typically called when building a deserializer 268 (but not necessarily only then).</TD> 269</TR> 270</TABLE> 271 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> 272<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 273<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 274<TH ALIGN="left"><B>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></B></TH> 275</TR> 276<TR BGCOLOR="white" CLASS="TableRowColor"> 277<TD><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></TD> 278</TR> 279</TABLE> 280 281<P> 282 283<!-- ============ FIELD DETAIL =========== --> 284 285<A NAME="field_detail"><!-- --></A> 286<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 287<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 288<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 289<B>Field Detail</B></FONT></TH> 290</TR> 291</TABLE> 292 293<A NAME="CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES"><!-- --></A><H3> 294CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES</H3> 295<PRE> 296public static final <A HREF="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy</A> <B>CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES</B></PRE> 297<DL> 298<DD>See <A HREF="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.LowerCaseWithUnderscoresStrategy.html" title="class in com.fasterxml.jackson.databind"><CODE>PropertyNamingStrategy.LowerCaseWithUnderscoresStrategy</CODE></A> for details. 299<P> 300<DL> 301</DL> 302</DL> 303<HR> 304 305<A NAME="PASCAL_CASE_TO_CAMEL_CASE"><!-- --></A><H3> 306PASCAL_CASE_TO_CAMEL_CASE</H3> 307<PRE> 308public static final <A HREF="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy</A> <B>PASCAL_CASE_TO_CAMEL_CASE</B></PRE> 309<DL> 310<DD>See <A HREF="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.PascalCaseStrategy.html" title="class in com.fasterxml.jackson.databind"><CODE>PropertyNamingStrategy.PascalCaseStrategy</CODE></A> for details. 311<P> 312<DL> 313<DT><B>Since:</B></DT> 314 <DD>2.1</DD> 315</DL> 316</DL> 317 318<!-- ========= CONSTRUCTOR DETAIL ======== --> 319 320<A NAME="constructor_detail"><!-- --></A> 321<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 322<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 323<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 324<B>Constructor Detail</B></FONT></TH> 325</TR> 326</TABLE> 327 328<A NAME="PropertyNamingStrategy()"><!-- --></A><H3> 329PropertyNamingStrategy</H3> 330<PRE> 331public <B>PropertyNamingStrategy</B>()</PRE> 332<DL> 333</DL> 334 335<!-- ============ METHOD DETAIL ========== --> 336 337<A NAME="method_detail"><!-- --></A> 338<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 339<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 340<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 341<B>Method Detail</B></FONT></TH> 342</TR> 343</TABLE> 344 345<A NAME="nameForField(com.fasterxml.jackson.databind.cfg.MapperConfig, com.fasterxml.jackson.databind.introspect.AnnotatedField, java.lang.String)"><!-- --></A><H3> 346nameForField</H3> 347<PRE> 348public <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> <B>nameForField</B>(<A HREF="../../../../com/fasterxml/jackson/databind/cfg/MapperConfig.html" title="class in com.fasterxml.jackson.databind.cfg">MapperConfig</A><?> config, 349 <A HREF="../../../../com/fasterxml/jackson/databind/introspect/AnnotatedField.html" title="class in com.fasterxml.jackson.databind.introspect">AnnotatedField</A> field, 350 <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> 351<DL> 352<DD>Method called to find external name (name used in JSON) for given logical 353 POJO property, 354 as defined by given field. 355<P> 356<DD><DL> 357<DT><B>Parameters:</B><DD><CODE>config</CODE> - Configuration in used: either <code>SerializationConfig</code> 358 or <code>DeserializationConfig</code>, depending on whether method is called 359 during serialization or deserialization<DD><CODE>field</CODE> - Field used to access property<DD><CODE>defaultName</CODE> - Default name that would be used for property in absence of custom strategy 360<DT><B>Returns:</B><DD>Logical name to use for property that the field represents</DL> 361</DD> 362</DL> 363<HR> 364 365<A NAME="nameForGetterMethod(com.fasterxml.jackson.databind.cfg.MapperConfig, com.fasterxml.jackson.databind.introspect.AnnotatedMethod, java.lang.String)"><!-- --></A><H3> 366nameForGetterMethod</H3> 367<PRE> 368public <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> <B>nameForGetterMethod</B>(<A HREF="../../../../com/fasterxml/jackson/databind/cfg/MapperConfig.html" title="class in com.fasterxml.jackson.databind.cfg">MapperConfig</A><?> config, 369 <A HREF="../../../../com/fasterxml/jackson/databind/introspect/AnnotatedMethod.html" title="class in com.fasterxml.jackson.databind.introspect">AnnotatedMethod</A> method, 370 <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> 371<DL> 372<DD>Method called to find external name (name used in JSON) for given logical 373 POJO property, 374 as defined by given getter method; typically called when building a serializer. 375 (but not always -- when using "getter-as-setter", may be called during 376 deserialization) 377<P> 378<DD><DL> 379<DT><B>Parameters:</B><DD><CODE>config</CODE> - Configuration in used: either <code>SerializationConfig</code> 380 or <code>DeserializationConfig</code>, depending on whether method is called 381 during serialization or deserialization<DD><CODE>method</CODE> - Method used to access property.<DD><CODE>defaultName</CODE> - Default name that would be used for property in absence of custom strategy 382<DT><B>Returns:</B><DD>Logical name to use for property that the method represents</DL> 383</DD> 384</DL> 385<HR> 386 387<A NAME="nameForSetterMethod(com.fasterxml.jackson.databind.cfg.MapperConfig, com.fasterxml.jackson.databind.introspect.AnnotatedMethod, java.lang.String)"><!-- --></A><H3> 388nameForSetterMethod</H3> 389<PRE> 390public <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> <B>nameForSetterMethod</B>(<A HREF="../../../../com/fasterxml/jackson/databind/cfg/MapperConfig.html" title="class in com.fasterxml.jackson.databind.cfg">MapperConfig</A><?> config, 391 <A HREF="../../../../com/fasterxml/jackson/databind/introspect/AnnotatedMethod.html" title="class in com.fasterxml.jackson.databind.introspect">AnnotatedMethod</A> method, 392 <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> 393<DL> 394<DD>Method called to find external name (name used in JSON) for given logical 395 POJO property, 396 as defined by given setter method; typically called when building a deserializer 397 (but not necessarily only then). 398<P> 399<DD><DL> 400<DT><B>Parameters:</B><DD><CODE>config</CODE> - Configuration in used: either <code>SerializationConfig</code> 401 or <code>DeserializationConfig</code>, depending on whether method is called 402 during serialization or deserialization<DD><CODE>method</CODE> - Method used to access property.<DD><CODE>defaultName</CODE> - Default name that would be used for property in absence of custom strategy 403<DT><B>Returns:</B><DD>Logical name to use for property that the method represents</DL> 404</DD> 405</DL> 406<HR> 407 408<A NAME="nameForConstructorParameter(com.fasterxml.jackson.databind.cfg.MapperConfig, com.fasterxml.jackson.databind.introspect.AnnotatedParameter, java.lang.String)"><!-- --></A><H3> 409nameForConstructorParameter</H3> 410<PRE> 411public <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> <B>nameForConstructorParameter</B>(<A HREF="../../../../com/fasterxml/jackson/databind/cfg/MapperConfig.html" title="class in com.fasterxml.jackson.databind.cfg">MapperConfig</A><?> config, 412 <A HREF="../../../../com/fasterxml/jackson/databind/introspect/AnnotatedParameter.html" title="class in com.fasterxml.jackson.databind.introspect">AnnotatedParameter</A> ctorParam, 413 <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> 414<DL> 415<DD>Method called to find external name (name used in JSON) for given logical 416 POJO property, 417 as defined by given constructor parameter; typically called when building a deserializer 418 (but not necessarily only then). 419<P> 420<DD><DL> 421<DT><B>Parameters:</B><DD><CODE>config</CODE> - Configuration in used: either <code>SerializationConfig</code> 422 or <code>DeserializationConfig</code>, depending on whether method is called 423 during serialization or deserialization<DD><CODE>ctorParam</CODE> - Constructor parameter used to pass property.<DD><CODE>defaultName</CODE> - Default name that would be used for property in absence of custom strategy</DL> 424</DD> 425</DL> 426<!-- ========= END OF CLASS DATA ========= --> 427<HR> 428 429 430<!-- ======= START OF BOTTOM NAVBAR ====== --> 431<A NAME="navbar_bottom"><!-- --></A> 432<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> 433<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 434<TR> 435<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 436<A NAME="navbar_bottom_firstrow"><!-- --></A> 437<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 438 <TR ALIGN="center" VALIGN="top"> 439 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 440 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 441 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 442 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/PropertyNamingStrategy.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> 443 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 444 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 445 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 446 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 447 </TR> 448</TABLE> 449</TD> 450<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 451</EM> 452</TD> 453</TR> 454 455<TR> 456<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 457 <A HREF="../../../../com/fasterxml/jackson/databind/PropertyName.html" title="class in com.fasterxml.jackson.databind"><B>PREV CLASS</B></A> 458 <A HREF="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.LowerCaseWithUnderscoresStrategy.html" title="class in com.fasterxml.jackson.databind"><B>NEXT CLASS</B></A></FONT></TD> 459<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 460 <A HREF="../../../../index.html?com/fasterxml/jackson/databind/PropertyNamingStrategy.html" target="_top"><B>FRAMES</B></A> 461 <A HREF="PropertyNamingStrategy.html" target="_top"><B>NO FRAMES</B></A> 462 <SCRIPT type="text/javascript"> 463 <!-- 464 if(window==top) { 465 document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); 466 } 467 //--> 468</SCRIPT> 469<NOSCRIPT> 470 <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> 471</NOSCRIPT> 472 473 474</FONT></TD> 475</TR> 476<TR> 477<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 478 SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> 479<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 480DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> 481</TR> 482</TABLE> 483<A NAME="skip-navbar_bottom"></A> 484<!-- ======== END OF BOTTOM NAVBAR ======= --> 485 486<HR> 487Copyright © 2012 <a href="http://fasterxml.com/">FasterXML</a>. All Rights Reserved. 488</BODY> 489</HTML> 490