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> 8EnumResolver (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="EnumResolver (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/EnumResolver.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/Converter.html" title="interface in com.fasterxml.jackson.databind.util"><B>PREV CLASS</B></A> 60 <A HREF="../../../../../com/fasterxml/jackson/databind/util/EnumValues.html" title="class 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/EnumResolver.html" target="_top"><B>FRAMES</B></A> 63 <A HREF="EnumResolver.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 EnumResolver<T extends <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</A><T>></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.EnumResolver<T></B> 98</PRE> 99<HR> 100<DL> 101<DT><PRE>public class <B>EnumResolver<T extends <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</A><T>></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 used to resolve String values (either JSON Object field 106 names or regular String values) into Java Enum instances. 107<P> 108 109<P> 110<HR> 111 112<P> 113<!-- =========== FIELD SUMMARY =========== --> 114 115<A NAME="field_summary"><!-- --></A> 116<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 117<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 118<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 119<B>Field Summary</B></FONT></TH> 120</TR> 121<TR BGCOLOR="white" CLASS="TableRowColor"> 122<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 123<CODE>protected <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><<A HREF="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="type parameter in EnumResolver">T</A>></CODE></FONT></TD> 124<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#_enumClass">_enumClass</A></B></CODE> 125 126<BR> 127 </TD> 128</TR> 129<TR BGCOLOR="white" CLASS="TableRowColor"> 130<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 131<CODE>protected <A HREF="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="type parameter in EnumResolver">T</A>[]</CODE></FONT></TD> 132<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#_enums">_enums</A></B></CODE> 133 134<BR> 135 </TD> 136</TR> 137<TR BGCOLOR="white" CLASS="TableRowColor"> 138<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 139<CODE>protected <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/HashMap.html?is-external=true" title="class or interface in java.util">HashMap</A><<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>,<A HREF="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="type parameter in EnumResolver">T</A>></CODE></FONT></TD> 140<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#_enumsById">_enumsById</A></B></CODE> 141 142<BR> 143 </TD> 144</TR> 145</TABLE> 146 147<!-- ======== CONSTRUCTOR SUMMARY ======== --> 148 149<A NAME="constructor_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>Constructor 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>protected </CODE></FONT></TD> 158<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#EnumResolver(java.lang.Class, T[], java.util.HashMap)">EnumResolver</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><<A HREF="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="type parameter in EnumResolver">T</A>> enumClass, 159 <A HREF="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="type parameter in EnumResolver">T</A>[] enums, 160 <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/HashMap.html?is-external=true" title="class or interface in java.util">HashMap</A><<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>,<A HREF="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="type parameter in EnumResolver">T</A>> map)</CODE> 161 162<BR> 163 </TD> 164</TR> 165</TABLE> 166 167<!-- ========== METHOD SUMMARY =========== --> 168 169<A NAME="method_summary"><!-- --></A> 170<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 171<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 172<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 173<B>Method Summary</B></FONT></TH> 174</TR> 175<TR BGCOLOR="white" CLASS="TableRowColor"> 176<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 177<CODE>static 178<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 179<TR ALIGN="right" VALIGN=""> 180<TD NOWRAP><FONT SIZE="-1"> 181<CODE><ET extends <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</A><ET>> 182<BR> 183<A HREF="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="class in com.fasterxml.jackson.databind.util">EnumResolver</A><ET></CODE></FONT></TD> 184</TR> 185</TABLE> 186</CODE></FONT></TD> 187<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#constructFor(java.lang.Class, com.fasterxml.jackson.databind.AnnotationIntrospector)">constructFor</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><ET> enumCls, 188 <A HREF="../../../../../com/fasterxml/jackson/databind/AnnotationIntrospector.html" title="class in com.fasterxml.jackson.databind">AnnotationIntrospector</A> ai)</CODE> 189 190<BR> 191 Factory method for constructing resolver that maps from Enum.name() into 192 Enum value</TD> 193</TR> 194<TR BGCOLOR="white" CLASS="TableRowColor"> 195<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 196<CODE>static <A HREF="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="class in com.fasterxml.jackson.databind.util">EnumResolver</A><?></CODE></FONT></TD> 197<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#constructUnsafe(java.lang.Class, com.fasterxml.jackson.databind.AnnotationIntrospector)">constructUnsafe</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><?> rawEnumCls, 198 <A HREF="../../../../../com/fasterxml/jackson/databind/AnnotationIntrospector.html" title="class in com.fasterxml.jackson.databind">AnnotationIntrospector</A> ai)</CODE> 199 200<BR> 201 This method is needed because of the dynamic nature of constructing Enum 202 resolvers.</TD> 203</TR> 204<TR BGCOLOR="white" CLASS="TableRowColor"> 205<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 206<CODE>static <A HREF="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="class in com.fasterxml.jackson.databind.util">EnumResolver</A><?></CODE></FONT></TD> 207<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#constructUnsafeUsingMethod(java.lang.Class, java.lang.reflect.Method)">constructUnsafeUsingMethod</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><?> rawEnumCls, 208 <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Method.html?is-external=true" title="class or interface in java.lang.reflect">Method</A> accessor)</CODE> 209 210<BR> 211 Method used when actual String serialization is indicated using @JsonValue 212 on a method.</TD> 213</TR> 214<TR BGCOLOR="white" CLASS="TableRowColor"> 215<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 216<CODE>static <A HREF="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="class in com.fasterxml.jackson.databind.util">EnumResolver</A><?></CODE></FONT></TD> 217<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#constructUnsafeUsingToString(java.lang.Class)">constructUnsafeUsingToString</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><?> rawEnumCls)</CODE> 218 219<BR> 220 Method that needs to be used instead of <A HREF="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#constructUsingToString(java.lang.Class)"><CODE>constructUsingToString(java.lang.Class<ET>)</CODE></A> 221 if static type of enum is not known.</TD> 222</TR> 223<TR BGCOLOR="white" CLASS="TableRowColor"> 224<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 225<CODE>static 226<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 227<TR ALIGN="right" VALIGN=""> 228<TD NOWRAP><FONT SIZE="-1"> 229<CODE><ET extends <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</A><ET>> 230<BR> 231<A HREF="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="class in com.fasterxml.jackson.databind.util">EnumResolver</A><ET></CODE></FONT></TD> 232</TR> 233</TABLE> 234</CODE></FONT></TD> 235<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#constructUsingMethod(java.lang.Class, java.lang.reflect.Method)">constructUsingMethod</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><ET> enumCls, 236 <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Method.html?is-external=true" title="class or interface in java.lang.reflect">Method</A> accessor)</CODE> 237 238<BR> 239 </TD> 240</TR> 241<TR BGCOLOR="white" CLASS="TableRowColor"> 242<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 243<CODE>static 244<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 245<TR ALIGN="right" VALIGN=""> 246<TD NOWRAP><FONT SIZE="-1"> 247<CODE><ET extends <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</A><ET>> 248<BR> 249<A HREF="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="class in com.fasterxml.jackson.databind.util">EnumResolver</A><ET></CODE></FONT></TD> 250</TR> 251</TABLE> 252</CODE></FONT></TD> 253<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#constructUsingToString(java.lang.Class)">constructUsingToString</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><ET> enumCls)</CODE> 254 255<BR> 256 Factory method for constructing resolver that maps from Enum.toString() into 257 Enum value</TD> 258</TR> 259<TR BGCOLOR="white" CLASS="TableRowColor"> 260<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 261<CODE> <A HREF="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="type parameter in EnumResolver">T</A></CODE></FONT></TD> 262<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#findEnum(java.lang.String)">findEnum</A></B>(<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> key)</CODE> 263 264<BR> 265 </TD> 266</TR> 267<TR BGCOLOR="white" CLASS="TableRowColor"> 268<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 269<CODE> <A HREF="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="type parameter in EnumResolver">T</A></CODE></FONT></TD> 270<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#getEnum(int)">getEnum</A></B>(int index)</CODE> 271 272<BR> 273 </TD> 274</TR> 275<TR BGCOLOR="white" CLASS="TableRowColor"> 276<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 277<CODE> <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><<A HREF="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="type parameter in EnumResolver">T</A>></CODE></FONT></TD> 278<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#getEnumClass()">getEnumClass</A></B>()</CODE> 279 280<BR> 281 </TD> 282</TR> 283<TR BGCOLOR="white" CLASS="TableRowColor"> 284<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 285<CODE> int</CODE></FONT></TD> 286<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#lastValidIndex()">lastValidIndex</A></B>()</CODE> 287 288<BR> 289 </TD> 290</TR> 291</TABLE> 292 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> 293<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 294<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 295<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> 296</TR> 297<TR BGCOLOR="white" CLASS="TableRowColor"> 298<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> 299</TR> 300</TABLE> 301 302<P> 303 304<!-- ============ FIELD DETAIL =========== --> 305 306<A NAME="field_detail"><!-- --></A> 307<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 308<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 309<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 310<B>Field Detail</B></FONT></TH> 311</TR> 312</TABLE> 313 314<A NAME="_enumClass"><!-- --></A><H3> 315_enumClass</H3> 316<PRE> 317protected final <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><<A HREF="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="type parameter in EnumResolver">T</A> extends <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</A><<A HREF="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="type parameter in EnumResolver">T</A>>> <B>_enumClass</B></PRE> 318<DL> 319<DL> 320</DL> 321</DL> 322<HR> 323 324<A NAME="_enums"><!-- --></A><H3> 325_enums</H3> 326<PRE> 327protected final <A HREF="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="type parameter in EnumResolver">T</A> extends <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</A><<A HREF="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="type parameter in EnumResolver">T</A>>[] <B>_enums</B></PRE> 328<DL> 329<DL> 330</DL> 331</DL> 332<HR> 333 334<A NAME="_enumsById"><!-- --></A><H3> 335_enumsById</H3> 336<PRE> 337protected final <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/HashMap.html?is-external=true" title="class or interface in java.util">HashMap</A><<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>,<A HREF="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="type parameter in EnumResolver">T</A> extends <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</A><<A HREF="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="type parameter in EnumResolver">T</A>>> <B>_enumsById</B></PRE> 338<DL> 339<DL> 340</DL> 341</DL> 342 343<!-- ========= CONSTRUCTOR DETAIL ======== --> 344 345<A NAME="constructor_detail"><!-- --></A> 346<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 347<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 348<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 349<B>Constructor Detail</B></FONT></TH> 350</TR> 351</TABLE> 352 353<A NAME="EnumResolver(java.lang.Class,java.lang.Enum[],java.util.HashMap)"><!-- --></A><A NAME="EnumResolver(java.lang.Class, T[], java.util.HashMap)"><!-- --></A><H3> 354EnumResolver</H3> 355<PRE> 356protected <B>EnumResolver</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><<A HREF="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="type parameter in EnumResolver">T</A>> enumClass, 357 <A HREF="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="type parameter in EnumResolver">T</A>[] enums, 358 <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/HashMap.html?is-external=true" title="class or interface in java.util">HashMap</A><<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>,<A HREF="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="type parameter in EnumResolver">T</A>> map)</PRE> 359<DL> 360</DL> 361 362<!-- ============ METHOD DETAIL ========== --> 363 364<A NAME="method_detail"><!-- --></A> 365<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 366<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 367<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 368<B>Method Detail</B></FONT></TH> 369</TR> 370</TABLE> 371 372<A NAME="constructFor(java.lang.Class, com.fasterxml.jackson.databind.AnnotationIntrospector)"><!-- --></A><H3> 373constructFor</H3> 374<PRE> 375public static <ET extends <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</A><ET>> <A HREF="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="class in com.fasterxml.jackson.databind.util">EnumResolver</A><ET> <B>constructFor</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><ET> enumCls, 376 <A HREF="../../../../../com/fasterxml/jackson/databind/AnnotationIntrospector.html" title="class in com.fasterxml.jackson.databind">AnnotationIntrospector</A> ai)</PRE> 377<DL> 378<DD>Factory method for constructing resolver that maps from Enum.name() into 379 Enum value 380<P> 381<DD><DL> 382</DL> 383</DD> 384</DL> 385<HR> 386 387<A NAME="constructUsingToString(java.lang.Class)"><!-- --></A><H3> 388constructUsingToString</H3> 389<PRE> 390public static <ET extends <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</A><ET>> <A HREF="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="class in com.fasterxml.jackson.databind.util">EnumResolver</A><ET> <B>constructUsingToString</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><ET> enumCls)</PRE> 391<DL> 392<DD>Factory method for constructing resolver that maps from Enum.toString() into 393 Enum value 394<P> 395<DD><DL> 396</DL> 397</DD> 398</DL> 399<HR> 400 401<A NAME="constructUsingMethod(java.lang.Class, java.lang.reflect.Method)"><!-- --></A><H3> 402constructUsingMethod</H3> 403<PRE> 404public static <ET extends <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</A><ET>> <A HREF="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="class in com.fasterxml.jackson.databind.util">EnumResolver</A><ET> <B>constructUsingMethod</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><ET> enumCls, 405 <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Method.html?is-external=true" title="class or interface in java.lang.reflect">Method</A> accessor)</PRE> 406<DL> 407<DD><DL> 408</DL> 409</DD> 410</DL> 411<HR> 412 413<A NAME="constructUnsafe(java.lang.Class, com.fasterxml.jackson.databind.AnnotationIntrospector)"><!-- --></A><H3> 414constructUnsafe</H3> 415<PRE> 416public static <A HREF="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="class in com.fasterxml.jackson.databind.util">EnumResolver</A><?> <B>constructUnsafe</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><?> rawEnumCls, 417 <A HREF="../../../../../com/fasterxml/jackson/databind/AnnotationIntrospector.html" title="class in com.fasterxml.jackson.databind">AnnotationIntrospector</A> ai)</PRE> 418<DL> 419<DD>This method is needed because of the dynamic nature of constructing Enum 420 resolvers. 421<P> 422<DD><DL> 423</DL> 424</DD> 425</DL> 426<HR> 427 428<A NAME="constructUnsafeUsingToString(java.lang.Class)"><!-- --></A><H3> 429constructUnsafeUsingToString</H3> 430<PRE> 431public static <A HREF="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="class in com.fasterxml.jackson.databind.util">EnumResolver</A><?> <B>constructUnsafeUsingToString</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><?> rawEnumCls)</PRE> 432<DL> 433<DD>Method that needs to be used instead of <A HREF="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#constructUsingToString(java.lang.Class)"><CODE>constructUsingToString(java.lang.Class<ET>)</CODE></A> 434 if static type of enum is not known. 435<P> 436<DD><DL> 437</DL> 438</DD> 439</DL> 440<HR> 441 442<A NAME="constructUnsafeUsingMethod(java.lang.Class, java.lang.reflect.Method)"><!-- --></A><H3> 443constructUnsafeUsingMethod</H3> 444<PRE> 445public static <A HREF="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="class in com.fasterxml.jackson.databind.util">EnumResolver</A><?> <B>constructUnsafeUsingMethod</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><?> rawEnumCls, 446 <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Method.html?is-external=true" title="class or interface in java.lang.reflect">Method</A> accessor)</PRE> 447<DL> 448<DD>Method used when actual String serialization is indicated using @JsonValue 449 on a method. 450<P> 451<DD><DL> 452</DL> 453</DD> 454</DL> 455<HR> 456 457<A NAME="findEnum(java.lang.String)"><!-- --></A><H3> 458findEnum</H3> 459<PRE> 460public <A HREF="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="type parameter in EnumResolver">T</A> <B>findEnum</B>(<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> key)</PRE> 461<DL> 462<DD><DL> 463</DL> 464</DD> 465</DL> 466<HR> 467 468<A NAME="getEnum(int)"><!-- --></A><H3> 469getEnum</H3> 470<PRE> 471public <A HREF="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="type parameter in EnumResolver">T</A> <B>getEnum</B>(int index)</PRE> 472<DL> 473<DD><DL> 474</DL> 475</DD> 476</DL> 477<HR> 478 479<A NAME="getEnumClass()"><!-- --></A><H3> 480getEnumClass</H3> 481<PRE> 482public <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><<A HREF="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="type parameter in EnumResolver">T</A>> <B>getEnumClass</B>()</PRE> 483<DL> 484<DD><DL> 485</DL> 486</DD> 487</DL> 488<HR> 489 490<A NAME="lastValidIndex()"><!-- --></A><H3> 491lastValidIndex</H3> 492<PRE> 493public int <B>lastValidIndex</B>()</PRE> 494<DL> 495<DD><DL> 496</DL> 497</DD> 498</DL> 499<!-- ========= END OF CLASS DATA ========= --> 500<HR> 501 502 503<!-- ======= START OF BOTTOM NAVBAR ====== --> 504<A NAME="navbar_bottom"><!-- --></A> 505<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> 506<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 507<TR> 508<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 509<A NAME="navbar_bottom_firstrow"><!-- --></A> 510<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 511 <TR ALIGN="center" VALIGN="top"> 512 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 513 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 514 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 515 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/EnumResolver.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> 516 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 517 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 518 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 519 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 520 </TR> 521</TABLE> 522</TD> 523<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 524</EM> 525</TD> 526</TR> 527 528<TR> 529<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 530 <A HREF="../../../../../com/fasterxml/jackson/databind/util/Converter.html" title="interface in com.fasterxml.jackson.databind.util"><B>PREV CLASS</B></A> 531 <A HREF="../../../../../com/fasterxml/jackson/databind/util/EnumValues.html" title="class in com.fasterxml.jackson.databind.util"><B>NEXT CLASS</B></A></FONT></TD> 532<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 533 <A HREF="../../../../../index.html?com/fasterxml/jackson/databind/util/EnumResolver.html" target="_top"><B>FRAMES</B></A> 534 <A HREF="EnumResolver.html" target="_top"><B>NO FRAMES</B></A> 535 <SCRIPT type="text/javascript"> 536 <!-- 537 if(window==top) { 538 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); 539 } 540 //--> 541</SCRIPT> 542<NOSCRIPT> 543 <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> 544</NOSCRIPT> 545 546 547</FONT></TD> 548</TR> 549<TR> 550<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 551 SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> 552<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 553DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> 554</TR> 555</TABLE> 556<A NAME="skip-navbar_bottom"></A> 557<!-- ======== END OF BOTTOM NAVBAR ======= --> 558 559<HR> 560Copyright © 2012 <a href="http://fasterxml.com/">FasterXML</a>. All Rights Reserved. 561</BODY> 562</HTML> 563