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_29) on Mon Mar 26 19:07:11 PDT 2012 --> 6<META http-equiv="Content-Type" content="text/html; charset=UTF-8"> 7<TITLE> 8PropertyNamingStrategy (jackson-databind 2.0.0 API) 9</TITLE> 10 11<META NAME="date" CONTENT="2012-03-26"> 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.0.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/ObjectWriter.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.PropertyNamingStrategyBase.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy.PropertyNamingStrategyBase</A></B></CODE> 155 156<BR> 157 </TD> 158</TR> 159</TABLE> 160 <!-- =========== FIELD SUMMARY =========== --> 161 162<A NAME="field_summary"><!-- --></A> 163<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 164<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 165<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 166<B>Field Summary</B></FONT></TH> 167</TR> 168<TR BGCOLOR="white" CLASS="TableRowColor"> 169<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 170<CODE>static <A HREF="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html" title="class in com.fasterxml.jackson.databind">PropertyNamingStrategy</A></CODE></FONT></TD> 171<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> 172 173<BR> 174 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> 175</TR> 176</TABLE> 177 178<!-- ======== CONSTRUCTOR SUMMARY ======== --> 179 180<A NAME="constructor_summary"><!-- --></A> 181<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 182<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 183<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 184<B>Constructor Summary</B></FONT></TH> 185</TR> 186<TR BGCOLOR="white" CLASS="TableRowColor"> 187<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.html#PropertyNamingStrategy()">PropertyNamingStrategy</A></B>()</CODE> 188 189<BR> 190 </TD> 191</TR> 192</TABLE> 193 194<!-- ========== METHOD SUMMARY =========== --> 195 196<A NAME="method_summary"><!-- --></A> 197<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 198<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 199<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 200<B>Method Summary</B></FONT></TH> 201</TR> 202<TR BGCOLOR="white" CLASS="TableRowColor"> 203<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 204<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> 205<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, 206 <A HREF="../../../../com/fasterxml/jackson/databind/introspect/AnnotatedParameter.html" title="class in com.fasterxml.jackson.databind.introspect">AnnotatedParameter</A> ctorParam, 207 <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> 208 209<BR> 210 Method called to find external name (name used in JSON) for given logical 211 POJO property, 212 as defined by given constructor parameter; typically called when building a deserializer 213 (but not necessarily only then).</TD> 214</TR> 215<TR BGCOLOR="white" CLASS="TableRowColor"> 216<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 217<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> 218<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, 219 <A HREF="../../../../com/fasterxml/jackson/databind/introspect/AnnotatedField.html" title="class in com.fasterxml.jackson.databind.introspect">AnnotatedField</A> field, 220 <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> 221 222<BR> 223 Method called to find external name (name used in JSON) for given logical 224 POJO property, 225 as defined by given field.</TD> 226</TR> 227<TR BGCOLOR="white" CLASS="TableRowColor"> 228<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 229<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> 230<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, 231 <A HREF="../../../../com/fasterxml/jackson/databind/introspect/AnnotatedMethod.html" title="class in com.fasterxml.jackson.databind.introspect">AnnotatedMethod</A> method, 232 <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> 233 234<BR> 235 Method called to find external name (name used in JSON) for given logical 236 POJO property, 237 as defined by given getter method; typically called when building a serializer.</TD> 238</TR> 239<TR BGCOLOR="white" CLASS="TableRowColor"> 240<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 241<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> 242<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, 243 <A HREF="../../../../com/fasterxml/jackson/databind/introspect/AnnotatedMethod.html" title="class in com.fasterxml.jackson.databind.introspect">AnnotatedMethod</A> method, 244 <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> defaultName)</CODE> 245 246<BR> 247 Method called to find external name (name used in JSON) for given logical 248 POJO property, 249 as defined by given setter method; typically called when building a deserializer 250 (but not necessarily only then).</TD> 251</TR> 252</TABLE> 253 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> 254<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 255<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 256<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> 257</TR> 258<TR BGCOLOR="white" CLASS="TableRowColor"> 259<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> 260</TR> 261</TABLE> 262 263<P> 264 265<!-- ============ FIELD DETAIL =========== --> 266 267<A NAME="field_detail"><!-- --></A> 268<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 269<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 270<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 271<B>Field Detail</B></FONT></TH> 272</TR> 273</TABLE> 274 275<A NAME="CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES"><!-- --></A><H3> 276CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES</H3> 277<PRE> 278public 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> 279<DL> 280<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. 281<P> 282<DL> 283</DL> 284</DL> 285 286<!-- ========= CONSTRUCTOR DETAIL ======== --> 287 288<A NAME="constructor_detail"><!-- --></A> 289<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 290<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 291<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 292<B>Constructor Detail</B></FONT></TH> 293</TR> 294</TABLE> 295 296<A NAME="PropertyNamingStrategy()"><!-- --></A><H3> 297PropertyNamingStrategy</H3> 298<PRE> 299public <B>PropertyNamingStrategy</B>()</PRE> 300<DL> 301</DL> 302 303<!-- ============ METHOD DETAIL ========== --> 304 305<A NAME="method_detail"><!-- --></A> 306<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 307<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 308<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 309<B>Method Detail</B></FONT></TH> 310</TR> 311</TABLE> 312 313<A NAME="nameForField(com.fasterxml.jackson.databind.cfg.MapperConfig, com.fasterxml.jackson.databind.introspect.AnnotatedField, java.lang.String)"><!-- --></A><H3> 314nameForField</H3> 315<PRE> 316public <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, 317 <A HREF="../../../../com/fasterxml/jackson/databind/introspect/AnnotatedField.html" title="class in com.fasterxml.jackson.databind.introspect">AnnotatedField</A> field, 318 <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> defaultName)</PRE> 319<DL> 320<DD>Method called to find external name (name used in JSON) for given logical 321 POJO property, 322 as defined by given field. 323<P> 324<DD><DL> 325<DT><B>Parameters:</B><DD><CODE>config</CODE> - Configuration in used: either <code>SerializationConfig</code> 326 or <code>DeserializationConfig</code>, depending on whether method is called 327 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 328<DT><B>Returns:</B><DD>Logical name to use for property that the field represents</DL> 329</DD> 330</DL> 331<HR> 332 333<A NAME="nameForGetterMethod(com.fasterxml.jackson.databind.cfg.MapperConfig, com.fasterxml.jackson.databind.introspect.AnnotatedMethod, java.lang.String)"><!-- --></A><H3> 334nameForGetterMethod</H3> 335<PRE> 336public <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, 337 <A HREF="../../../../com/fasterxml/jackson/databind/introspect/AnnotatedMethod.html" title="class in com.fasterxml.jackson.databind.introspect">AnnotatedMethod</A> method, 338 <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> 339<DL> 340<DD>Method called to find external name (name used in JSON) for given logical 341 POJO property, 342 as defined by given getter method; typically called when building a serializer. 343 (but not always -- when using "getter-as-setter", may be called during 344 deserialization) 345<P> 346<DD><DL> 347<DT><B>Parameters:</B><DD><CODE>config</CODE> - Configuration in used: either <code>SerializationConfig</code> 348 or <code>DeserializationConfig</code>, depending on whether method is called 349 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 350<DT><B>Returns:</B><DD>Logical name to use for property that the method represents</DL> 351</DD> 352</DL> 353<HR> 354 355<A NAME="nameForSetterMethod(com.fasterxml.jackson.databind.cfg.MapperConfig, com.fasterxml.jackson.databind.introspect.AnnotatedMethod, java.lang.String)"><!-- --></A><H3> 356nameForSetterMethod</H3> 357<PRE> 358public <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, 359 <A HREF="../../../../com/fasterxml/jackson/databind/introspect/AnnotatedMethod.html" title="class in com.fasterxml.jackson.databind.introspect">AnnotatedMethod</A> method, 360 <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> 361<DL> 362<DD>Method called to find external name (name used in JSON) for given logical 363 POJO property, 364 as defined by given setter method; typically called when building a deserializer 365 (but not necessarily only then). 366<P> 367<DD><DL> 368<DT><B>Parameters:</B><DD><CODE>config</CODE> - Configuration in used: either <code>SerializationConfig</code> 369 or <code>DeserializationConfig</code>, depending on whether method is called 370 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 371<DT><B>Returns:</B><DD>Logical name to use for property that the method represents</DL> 372</DD> 373</DL> 374<HR> 375 376<A NAME="nameForConstructorParameter(com.fasterxml.jackson.databind.cfg.MapperConfig, com.fasterxml.jackson.databind.introspect.AnnotatedParameter, java.lang.String)"><!-- --></A><H3> 377nameForConstructorParameter</H3> 378<PRE> 379public <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, 380 <A HREF="../../../../com/fasterxml/jackson/databind/introspect/AnnotatedParameter.html" title="class in com.fasterxml.jackson.databind.introspect">AnnotatedParameter</A> ctorParam, 381 <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> 382<DL> 383<DD>Method called to find external name (name used in JSON) for given logical 384 POJO property, 385 as defined by given constructor parameter; typically called when building a deserializer 386 (but not necessarily only then). 387<P> 388<DD><DL> 389<DT><B>Parameters:</B><DD><CODE>config</CODE> - Configuration in used: either <code>SerializationConfig</code> 390 or <code>DeserializationConfig</code>, depending on whether method is called 391 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> 392</DD> 393</DL> 394<!-- ========= END OF CLASS DATA ========= --> 395<HR> 396 397 398<!-- ======= START OF BOTTOM NAVBAR ====== --> 399<A NAME="navbar_bottom"><!-- --></A> 400<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> 401<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 402<TR> 403<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 404<A NAME="navbar_bottom_firstrow"><!-- --></A> 405<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 406 <TR ALIGN="center" VALIGN="top"> 407 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 408 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 409 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 410 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/PropertyNamingStrategy.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> 411 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 412 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 413 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 414 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 415 </TR> 416</TABLE> 417</TD> 418<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 419</EM> 420</TD> 421</TR> 422 423<TR> 424<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 425 <A HREF="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind"><B>PREV CLASS</B></A> 426 <A HREF="../../../../com/fasterxml/jackson/databind/PropertyNamingStrategy.LowerCaseWithUnderscoresStrategy.html" title="class in com.fasterxml.jackson.databind"><B>NEXT CLASS</B></A></FONT></TD> 427<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 428 <A HREF="../../../../index.html?com/fasterxml/jackson/databind/PropertyNamingStrategy.html" target="_top"><B>FRAMES</B></A> 429 <A HREF="PropertyNamingStrategy.html" target="_top"><B>NO FRAMES</B></A> 430 <SCRIPT type="text/javascript"> 431 <!-- 432 if(window==top) { 433 document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); 434 } 435 //--> 436</SCRIPT> 437<NOSCRIPT> 438 <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> 439</NOSCRIPT> 440 441 442</FONT></TD> 443</TR> 444<TR> 445<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 446 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> 447<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 448DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> 449</TR> 450</TABLE> 451<A NAME="skip-navbar_bottom"></A> 452<!-- ======== END OF BOTTOM NAVBAR ======= --> 453 454<HR> 455Copyright © 2012 <a href="http://fasterxml.com">fasterxml.com</a>. All Rights Reserved. 456</BODY> 457</HTML> 458