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