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:19 PDT 2012 --> 6<META http-equiv="Content-Type" content="text/html; charset=UTF-8"> 7<TITLE> 8RootNameLookup (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="RootNameLookup (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/RootNameLookup.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/util/Provider.html" title="interface in com.fasterxml.jackson.databind.util"><B>PREV CLASS</B></A> 60 <A HREF="../../../../../com/fasterxml/jackson/databind/util/Setter.html" title="interface in com.fasterxml.jackson.databind.util"><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/util/RootNameLookup.html" target="_top"><B>FRAMES</B></A> 63 <A HREF="RootNameLookup.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: NESTED | <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.util</FONT> 93<BR> 94Class RootNameLookup</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.util.RootNameLookup</B> 98</PRE> 99<HR> 100<DL> 101<DT><PRE>public class <B>RootNameLookup</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> 102</PRE> 103 104<P> 105Helper class for caching resolved root names. 106<P> 107 108<P> 109<HR> 110 111<P> 112<!-- =========== FIELD SUMMARY =========== --> 113 114<A NAME="field_summary"><!-- --></A> 115<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 116<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 117<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 118<B>Field Summary</B></FONT></TH> 119</TR> 120<TR BGCOLOR="white" CLASS="TableRowColor"> 121<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 122<CODE>protected <A HREF="../../../../../com/fasterxml/jackson/databind/util/LRUMap.html" title="class in com.fasterxml.jackson.databind.util">LRUMap</A><<A HREF="../../../../../com/fasterxml/jackson/databind/type/ClassKey.html" title="class in com.fasterxml.jackson.databind.type">ClassKey</A>,com.fasterxml.jackson.core.io.SerializedString></CODE></FONT></TD> 123<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/RootNameLookup.html#_rootNames">_rootNames</A></B></CODE> 124 125<BR> 126 For efficient operation, let's try to minimize number of times we 127 need to introspect root element name to use.</TD> 128</TR> 129</TABLE> 130 131<!-- ======== CONSTRUCTOR SUMMARY ======== --> 132 133<A NAME="constructor_summary"><!-- --></A> 134<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 135<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 136<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 137<B>Constructor Summary</B></FONT></TH> 138</TR> 139<TR BGCOLOR="white" CLASS="TableRowColor"> 140<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/RootNameLookup.html#RootNameLookup()">RootNameLookup</A></B>()</CODE> 141 142<BR> 143 </TD> 144</TR> 145</TABLE> 146 147<!-- ========== METHOD SUMMARY =========== --> 148 149<A NAME="method_summary"><!-- --></A> 150<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 151<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 152<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 153<B>Method Summary</B></FONT></TH> 154</TR> 155<TR BGCOLOR="white" CLASS="TableRowColor"> 156<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 157<CODE> com.fasterxml.jackson.core.io.SerializedString</CODE></FONT></TD> 158<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/RootNameLookup.html#findRootName(java.lang.Class, com.fasterxml.jackson.databind.cfg.MapperConfig)">findRootName</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> rootType, 159 <A HREF="../../../../../com/fasterxml/jackson/databind/cfg/MapperConfig.html" title="class in com.fasterxml.jackson.databind.cfg">MapperConfig</A><?> config)</CODE> 160 161<BR> 162 </TD> 163</TR> 164<TR BGCOLOR="white" CLASS="TableRowColor"> 165<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 166<CODE> com.fasterxml.jackson.core.io.SerializedString</CODE></FONT></TD> 167<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/RootNameLookup.html#findRootName(com.fasterxml.jackson.databind.JavaType, com.fasterxml.jackson.databind.cfg.MapperConfig)">findRootName</A></B>(<A HREF="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</A> rootType, 168 <A HREF="../../../../../com/fasterxml/jackson/databind/cfg/MapperConfig.html" title="class in com.fasterxml.jackson.databind.cfg">MapperConfig</A><?> config)</CODE> 169 170<BR> 171 </TD> 172</TR> 173</TABLE> 174 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> 175<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 176<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 177<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> 178</TR> 179<TR BGCOLOR="white" CLASS="TableRowColor"> 180<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> 181</TR> 182</TABLE> 183 184<P> 185 186<!-- ============ FIELD DETAIL =========== --> 187 188<A NAME="field_detail"><!-- --></A> 189<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 190<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 191<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 192<B>Field Detail</B></FONT></TH> 193</TR> 194</TABLE> 195 196<A NAME="_rootNames"><!-- --></A><H3> 197_rootNames</H3> 198<PRE> 199protected <A HREF="../../../../../com/fasterxml/jackson/databind/util/LRUMap.html" title="class in com.fasterxml.jackson.databind.util">LRUMap</A><<A HREF="../../../../../com/fasterxml/jackson/databind/type/ClassKey.html" title="class in com.fasterxml.jackson.databind.type">ClassKey</A>,com.fasterxml.jackson.core.io.SerializedString> <B>_rootNames</B></PRE> 200<DL> 201<DD>For efficient operation, let's try to minimize number of times we 202 need to introspect root element name to use. 203<P> 204<DL> 205</DL> 206</DL> 207 208<!-- ========= CONSTRUCTOR DETAIL ======== --> 209 210<A NAME="constructor_detail"><!-- --></A> 211<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 212<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 213<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 214<B>Constructor Detail</B></FONT></TH> 215</TR> 216</TABLE> 217 218<A NAME="RootNameLookup()"><!-- --></A><H3> 219RootNameLookup</H3> 220<PRE> 221public <B>RootNameLookup</B>()</PRE> 222<DL> 223</DL> 224 225<!-- ============ METHOD DETAIL ========== --> 226 227<A NAME="method_detail"><!-- --></A> 228<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 229<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 230<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 231<B>Method Detail</B></FONT></TH> 232</TR> 233</TABLE> 234 235<A NAME="findRootName(com.fasterxml.jackson.databind.JavaType, com.fasterxml.jackson.databind.cfg.MapperConfig)"><!-- --></A><H3> 236findRootName</H3> 237<PRE> 238public com.fasterxml.jackson.core.io.SerializedString <B>findRootName</B>(<A HREF="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</A> rootType, 239 <A HREF="../../../../../com/fasterxml/jackson/databind/cfg/MapperConfig.html" title="class in com.fasterxml.jackson.databind.cfg">MapperConfig</A><?> config)</PRE> 240<DL> 241<DD><DL> 242</DL> 243</DD> 244</DL> 245<HR> 246 247<A NAME="findRootName(java.lang.Class, com.fasterxml.jackson.databind.cfg.MapperConfig)"><!-- --></A><H3> 248findRootName</H3> 249<PRE> 250public com.fasterxml.jackson.core.io.SerializedString <B>findRootName</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> rootType, 251 <A HREF="../../../../../com/fasterxml/jackson/databind/cfg/MapperConfig.html" title="class in com.fasterxml.jackson.databind.cfg">MapperConfig</A><?> config)</PRE> 252<DL> 253<DD><DL> 254</DL> 255</DD> 256</DL> 257<!-- ========= END OF CLASS DATA ========= --> 258<HR> 259 260 261<!-- ======= START OF BOTTOM NAVBAR ====== --> 262<A NAME="navbar_bottom"><!-- --></A> 263<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> 264<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 265<TR> 266<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 267<A NAME="navbar_bottom_firstrow"><!-- --></A> 268<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 269 <TR ALIGN="center" VALIGN="top"> 270 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 271 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 272 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 273 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/RootNameLookup.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> 274 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 275 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 276 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 277 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 278 </TR> 279</TABLE> 280</TD> 281<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 282</EM> 283</TD> 284</TR> 285 286<TR> 287<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 288 <A HREF="../../../../../com/fasterxml/jackson/databind/util/Provider.html" title="interface in com.fasterxml.jackson.databind.util"><B>PREV CLASS</B></A> 289 <A HREF="../../../../../com/fasterxml/jackson/databind/util/Setter.html" title="interface in com.fasterxml.jackson.databind.util"><B>NEXT CLASS</B></A></FONT></TD> 290<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 291 <A HREF="../../../../../index.html?com/fasterxml/jackson/databind/util/RootNameLookup.html" target="_top"><B>FRAMES</B></A> 292 <A HREF="RootNameLookup.html" target="_top"><B>NO FRAMES</B></A> 293 <SCRIPT type="text/javascript"> 294 <!-- 295 if(window==top) { 296 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); 297 } 298 //--> 299</SCRIPT> 300<NOSCRIPT> 301 <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> 302</NOSCRIPT> 303 304 305</FONT></TD> 306</TR> 307<TR> 308<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 309 SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> 310<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 311DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> 312</TR> 313</TABLE> 314<A NAME="skip-navbar_bottom"></A> 315<!-- ======== END OF BOTTOM NAVBAR ======= --> 316 317<HR> 318Copyright © 2012 <a href="http://fasterxml.com">fasterxml.com</a>. All Rights Reserved. 319</BODY> 320</HTML> 321