1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2<!-- NewPage --> 3<html lang="en"> 4<head> 5<!-- Generated by javadoc (version 1.7.0_79) on Fri Jan 15 20:28:44 PST 2016 --> 6<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 7<title>EnumResolver (jackson-databind 2.7.0 API)</title> 8<meta name="date" content="2016-01-15"> 9<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> 10</head> 11<body> 12<script type="text/javascript"><!-- 13 if (location.href.indexOf('is-external=true') == -1) { 14 parent.document.title="EnumResolver (jackson-databind 2.7.0 API)"; 15 } 16//--> 17</script> 18<noscript> 19<div>JavaScript is disabled on your browser.</div> 20</noscript> 21<!-- ========= START OF TOP NAVBAR ======= --> 22<div class="topNav"><a name="navbar_top"> 23<!-- --> 24</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> 25<!-- --> 26</a> 27<ul class="navList" title="Navigation"> 28<li><a href="../../../../../overview-summary.html">Overview</a></li> 29<li><a href="package-summary.html">Package</a></li> 30<li class="navBarCell1Rev">Class</li> 31<li><a href="class-use/EnumResolver.html">Use</a></li> 32<li><a href="package-tree.html">Tree</a></li> 33<li><a href="../../../../../deprecated-list.html">Deprecated</a></li> 34<li><a href="../../../../../index-all.html">Index</a></li> 35<li><a href="../../../../../help-doc.html">Help</a></li> 36</ul> 37</div> 38<div class="subNav"> 39<ul class="navList"> 40<li><a href="../../../../../com/fasterxml/jackson/databind/util/Converter.None.html" title="class in com.fasterxml.jackson.databind.util"><span class="strong">Prev Class</span></a></li> 41<li><a href="../../../../../com/fasterxml/jackson/databind/util/EnumValues.html" title="class in com.fasterxml.jackson.databind.util"><span class="strong">Next Class</span></a></li> 42</ul> 43<ul class="navList"> 44<li><a href="../../../../../index.html?com/fasterxml/jackson/databind/util/EnumResolver.html" target="_top">Frames</a></li> 45<li><a href="EnumResolver.html" target="_top">No Frames</a></li> 46</ul> 47<ul class="navList" id="allclasses_navbar_top"> 48<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> 49</ul> 50<div> 51<script type="text/javascript"><!-- 52 allClassesLink = document.getElementById("allclasses_navbar_top"); 53 if(window==top) { 54 allClassesLink.style.display = "block"; 55 } 56 else { 57 allClassesLink.style.display = "none"; 58 } 59 //--> 60</script> 61</div> 62<div> 63<ul class="subNavList"> 64<li>Summary: </li> 65<li>Nested | </li> 66<li><a href="#field_summary">Field</a> | </li> 67<li><a href="#constructor_summary">Constr</a> | </li> 68<li><a href="#method_summary">Method</a></li> 69</ul> 70<ul class="subNavList"> 71<li>Detail: </li> 72<li><a href="#field_detail">Field</a> | </li> 73<li><a href="#constructor_detail">Constr</a> | </li> 74<li><a href="#method_detail">Method</a></li> 75</ul> 76</div> 77<a name="skip-navbar_top"> 78<!-- --> 79</a></div> 80<!-- ========= END OF TOP NAVBAR ========= --> 81<!-- ======== START OF CLASS DATA ======== --> 82<div class="header"> 83<div class="subTitle">com.fasterxml.jackson.databind.util</div> 84<h2 title="Class EnumResolver" class="title">Class EnumResolver</h2> 85</div> 86<div class="contentContainer"> 87<ul class="inheritance"> 88<li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> 89<li> 90<ul class="inheritance"> 91<li>com.fasterxml.jackson.databind.util.EnumResolver</li> 92</ul> 93</li> 94</ul> 95<div class="description"> 96<ul class="blockList"> 97<li class="blockList"> 98<dl> 99<dt>All Implemented Interfaces:</dt> 100<dd><a href="http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a></dd> 101</dl> 102<hr> 103<br> 104<pre>public class <span class="strong">EnumResolver</span> 105extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> 106implements <a href="http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a></pre> 107<div class="block">Helper class used to resolve String values (either JSON Object field 108 names or regular String values) into Java Enum instances.</div> 109<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../serialized-form.html#com.fasterxml.jackson.databind.util.EnumResolver">Serialized Form</a></dd></dl> 110</li> 111</ul> 112</div> 113<div class="summary"> 114<ul class="blockList"> 115<li class="blockList"> 116<!-- =========== FIELD SUMMARY =========== --> 117<ul class="blockList"> 118<li class="blockList"><a name="field_summary"> 119<!-- --> 120</a> 121<h3>Field Summary</h3> 122<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> 123<caption><span>Fields</span><span class="tabEnd"> </span></caption> 124<tr> 125<th class="colFirst" scope="col">Modifier and Type</th> 126<th class="colLast" scope="col">Field and Description</th> 127</tr> 128<tr class="altColor"> 129<td class="colFirst"><code>protected <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>></code></td> 130<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#_enumClass">_enumClass</a></strong></code> </td> 131</tr> 132<tr class="rowColor"> 133<td class="colFirst"><code>protected <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>[]</code></td> 134<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#_enums">_enums</a></strong></code> </td> 135</tr> 136<tr class="altColor"> 137<td class="colFirst"><code>protected <a href="http://docs.oracle.com/javase/7/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/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>></code></td> 138<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#_enumsById">_enumsById</a></strong></code> </td> 139</tr> 140</table> 141</li> 142</ul> 143<!-- ======== CONSTRUCTOR SUMMARY ======== --> 144<ul class="blockList"> 145<li class="blockList"><a name="constructor_summary"> 146<!-- --> 147</a> 148<h3>Constructor Summary</h3> 149<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> 150<caption><span>Constructors</span><span class="tabEnd"> </span></caption> 151<tr> 152<th class="colFirst" scope="col">Modifier</th> 153<th class="colLast" scope="col">Constructor and Description</th> 154</tr> 155<tr class="altColor"> 156<td class="colFirst"><code>protected </code></td> 157<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#EnumResolver(java.lang.Class,%20java.lang.Enum[],%20java.util.HashMap)">EnumResolver</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>> enumClass, 158 <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>[] enums, 159 <a href="http://docs.oracle.com/javase/7/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/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>> map)</code> </td> 160</tr> 161</table> 162</li> 163</ul> 164<!-- ========== METHOD SUMMARY =========== --> 165<ul class="blockList"> 166<li class="blockList"><a name="method_summary"> 167<!-- --> 168</a> 169<h3>Method Summary</h3> 170<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> 171<caption><span>Methods</span><span class="tabEnd"> </span></caption> 172<tr> 173<th class="colFirst" scope="col">Modifier and Type</th> 174<th class="colLast" scope="col">Method and Description</th> 175</tr> 176<tr class="altColor"> 177<td class="colFirst"><code>static <a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="class in com.fasterxml.jackson.databind.util">EnumResolver</a></code></td> 178<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#constructFor(java.lang.Class,%20com.fasterxml.jackson.databind.AnnotationIntrospector)">constructFor</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>> enumCls, 179 <a href="../../../../../com/fasterxml/jackson/databind/AnnotationIntrospector.html" title="class in com.fasterxml.jackson.databind">AnnotationIntrospector</a> ai)</code> 180<div class="block">Factory method for constructing resolver that maps from Enum.name() into 181 Enum value</div> 182</td> 183</tr> 184<tr class="rowColor"> 185<td class="colFirst"><code><a href="../../../../../com/fasterxml/jackson/databind/util/CompactStringObjectMap.html" title="class in com.fasterxml.jackson.databind.util">CompactStringObjectMap</a></code></td> 186<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#constructLookup()">constructLookup</a></strong>()</code> </td> 187</tr> 188<tr class="altColor"> 189<td class="colFirst"><code>static <a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="class in com.fasterxml.jackson.databind.util">EnumResolver</a></code></td> 190<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#constructUnsafe(java.lang.Class,%20com.fasterxml.jackson.databind.AnnotationIntrospector)">constructUnsafe</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> rawEnumCls, 191 <a href="../../../../../com/fasterxml/jackson/databind/AnnotationIntrospector.html" title="class in com.fasterxml.jackson.databind">AnnotationIntrospector</a> ai)</code> 192<div class="block">This method is needed because of the dynamic nature of constructing Enum 193 resolvers.</div> 194</td> 195</tr> 196<tr class="rowColor"> 197<td class="colFirst"><code>static <a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="class in com.fasterxml.jackson.databind.util">EnumResolver</a></code></td> 198<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#constructUnsafeUsingMethod(java.lang.Class,%20java.lang.reflect.Method)">constructUnsafeUsingMethod</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> rawEnumCls, 199 <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Method.html?is-external=true" title="class or interface in java.lang.reflect">Method</a> accessor)</code> 200<div class="block">Method used when actual String serialization is indicated using @JsonValue 201 on a method.</div> 202</td> 203</tr> 204<tr class="altColor"> 205<td class="colFirst"><code>static <a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="class in com.fasterxml.jackson.databind.util">EnumResolver</a></code></td> 206<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#constructUnsafeUsingToString(java.lang.Class)">constructUnsafeUsingToString</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> rawEnumCls)</code> 207<div class="block">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<java.lang.Enum<?>>)</code></a> 208 if static type of enum is not known.</div> 209</td> 210</tr> 211<tr class="rowColor"> 212<td class="colFirst"><code>static <a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="class in com.fasterxml.jackson.databind.util">EnumResolver</a></code></td> 213<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#constructUsingMethod(java.lang.Class,%20java.lang.reflect.Method)">constructUsingMethod</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>> enumCls, 214 <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Method.html?is-external=true" title="class or interface in java.lang.reflect">Method</a> accessor)</code> </td> 215</tr> 216<tr class="altColor"> 217<td class="colFirst"><code>static <a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="class in com.fasterxml.jackson.databind.util">EnumResolver</a></code></td> 218<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#constructUsingToString(java.lang.Class)">constructUsingToString</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>> enumCls)</code> 219<div class="block">Factory method for constructing resolver that maps from Enum.toString() into 220 Enum value</div> 221</td> 222</tr> 223<tr class="rowColor"> 224<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?></code></td> 225<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#findEnum(java.lang.String)">findEnum</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key)</code> </td> 226</tr> 227<tr class="altColor"> 228<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?></code></td> 229<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#getEnum(int)">getEnum</a></strong>(int index)</code> </td> 230</tr> 231<tr class="rowColor"> 232<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>></code></td> 233<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#getEnumClass()">getEnumClass</a></strong>()</code> </td> 234</tr> 235<tr class="altColor"> 236<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>></code></td> 237<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#getEnums()">getEnums</a></strong>()</code> </td> 238</tr> 239<tr class="rowColor"> 240<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>[]</code></td> 241<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#getRawEnums()">getRawEnums</a></strong>()</code> </td> 242</tr> 243<tr class="altColor"> 244<td class="colFirst"><code>int</code></td> 245<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#lastValidIndex()">lastValidIndex</a></strong>()</code> </td> 246</tr> 247</table> 248<ul class="blockList"> 249<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> 250<!-- --> 251</a> 252<h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> 253<code><a href="http://docs.oracle.com/javase/7/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/7/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/7/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/7/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/7/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/7/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/7/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/7/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/7/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/7/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/7/docs/api/java/lang/Object.html?is-external=true#wait(long,%20int)" title="class or interface in java.lang">wait</a></code></li> 254</ul> 255</li> 256</ul> 257</li> 258</ul> 259</div> 260<div class="details"> 261<ul class="blockList"> 262<li class="blockList"> 263<!-- ============ FIELD DETAIL =========== --> 264<ul class="blockList"> 265<li class="blockList"><a name="field_detail"> 266<!-- --> 267</a> 268<h3>Field Detail</h3> 269<a name="_enumClass"> 270<!-- --> 271</a> 272<ul class="blockList"> 273<li class="blockList"> 274<h4>_enumClass</h4> 275<pre>protected final <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>> _enumClass</pre> 276</li> 277</ul> 278<a name="_enums"> 279<!-- --> 280</a> 281<ul class="blockList"> 282<li class="blockList"> 283<h4>_enums</h4> 284<pre>protected final <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>[] _enums</pre> 285</li> 286</ul> 287<a name="_enumsById"> 288<!-- --> 289</a> 290<ul class="blockListLast"> 291<li class="blockList"> 292<h4>_enumsById</h4> 293<pre>protected final <a href="http://docs.oracle.com/javase/7/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/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>> _enumsById</pre> 294</li> 295</ul> 296</li> 297</ul> 298<!-- ========= CONSTRUCTOR DETAIL ======== --> 299<ul class="blockList"> 300<li class="blockList"><a name="constructor_detail"> 301<!-- --> 302</a> 303<h3>Constructor Detail</h3> 304<a name="EnumResolver(java.lang.Class, java.lang.Enum[], java.util.HashMap)"> 305<!-- --> 306</a> 307<ul class="blockListLast"> 308<li class="blockList"> 309<h4>EnumResolver</h4> 310<pre>protected EnumResolver(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>> enumClass, 311 <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>[] enums, 312 <a href="http://docs.oracle.com/javase/7/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/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>,<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>> map)</pre> 313</li> 314</ul> 315</li> 316</ul> 317<!-- ============ METHOD DETAIL ========== --> 318<ul class="blockList"> 319<li class="blockList"><a name="method_detail"> 320<!-- --> 321</a> 322<h3>Method Detail</h3> 323<a name="constructFor(java.lang.Class, com.fasterxml.jackson.databind.AnnotationIntrospector)"> 324<!-- --> 325</a> 326<ul class="blockList"> 327<li class="blockList"> 328<h4>constructFor</h4> 329<pre>public static <a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="class in com.fasterxml.jackson.databind.util">EnumResolver</a> constructFor(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>> enumCls, 330 <a href="../../../../../com/fasterxml/jackson/databind/AnnotationIntrospector.html" title="class in com.fasterxml.jackson.databind">AnnotationIntrospector</a> ai)</pre> 331<div class="block">Factory method for constructing resolver that maps from Enum.name() into 332 Enum value</div> 333</li> 334</ul> 335<a name="constructUsingToString(java.lang.Class)"> 336<!-- --> 337</a> 338<ul class="blockList"> 339<li class="blockList"> 340<h4>constructUsingToString</h4> 341<pre>public static <a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="class in com.fasterxml.jackson.databind.util">EnumResolver</a> constructUsingToString(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>> enumCls)</pre> 342<div class="block">Factory method for constructing resolver that maps from Enum.toString() into 343 Enum value</div> 344</li> 345</ul> 346<a name="constructUsingMethod(java.lang.Class, java.lang.reflect.Method)"> 347<!-- --> 348</a> 349<ul class="blockList"> 350<li class="blockList"> 351<h4>constructUsingMethod</h4> 352<pre>public static <a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="class in com.fasterxml.jackson.databind.util">EnumResolver</a> constructUsingMethod(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>> enumCls, 353 <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Method.html?is-external=true" title="class or interface in java.lang.reflect">Method</a> accessor)</pre> 354</li> 355</ul> 356<a name="constructUnsafe(java.lang.Class, com.fasterxml.jackson.databind.AnnotationIntrospector)"> 357<!-- --> 358</a> 359<ul class="blockList"> 360<li class="blockList"> 361<h4>constructUnsafe</h4> 362<pre>public static <a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="class in com.fasterxml.jackson.databind.util">EnumResolver</a> constructUnsafe(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> rawEnumCls, 363 <a href="../../../../../com/fasterxml/jackson/databind/AnnotationIntrospector.html" title="class in com.fasterxml.jackson.databind">AnnotationIntrospector</a> ai)</pre> 364<div class="block">This method is needed because of the dynamic nature of constructing Enum 365 resolvers.</div> 366</li> 367</ul> 368<a name="constructUnsafeUsingToString(java.lang.Class)"> 369<!-- --> 370</a> 371<ul class="blockList"> 372<li class="blockList"> 373<h4>constructUnsafeUsingToString</h4> 374<pre>public static <a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="class in com.fasterxml.jackson.databind.util">EnumResolver</a> constructUnsafeUsingToString(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> rawEnumCls)</pre> 375<div class="block">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<java.lang.Enum<?>>)</code></a> 376 if static type of enum is not known.</div> 377</li> 378</ul> 379<a name="constructUnsafeUsingMethod(java.lang.Class, java.lang.reflect.Method)"> 380<!-- --> 381</a> 382<ul class="blockList"> 383<li class="blockList"> 384<h4>constructUnsafeUsingMethod</h4> 385<pre>public static <a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="class in com.fasterxml.jackson.databind.util">EnumResolver</a> constructUnsafeUsingMethod(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> rawEnumCls, 386 <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Method.html?is-external=true" title="class or interface in java.lang.reflect">Method</a> accessor)</pre> 387<div class="block">Method used when actual String serialization is indicated using @JsonValue 388 on a method.</div> 389</li> 390</ul> 391<a name="constructLookup()"> 392<!-- --> 393</a> 394<ul class="blockList"> 395<li class="blockList"> 396<h4>constructLookup</h4> 397<pre>public <a href="../../../../../com/fasterxml/jackson/databind/util/CompactStringObjectMap.html" title="class in com.fasterxml.jackson.databind.util">CompactStringObjectMap</a> constructLookup()</pre> 398</li> 399</ul> 400<a name="findEnum(java.lang.String)"> 401<!-- --> 402</a> 403<ul class="blockList"> 404<li class="blockList"> 405<h4>findEnum</h4> 406<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?> findEnum(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key)</pre> 407</li> 408</ul> 409<a name="getEnum(int)"> 410<!-- --> 411</a> 412<ul class="blockList"> 413<li class="blockList"> 414<h4>getEnum</h4> 415<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?> getEnum(int index)</pre> 416</li> 417</ul> 418<a name="getRawEnums()"> 419<!-- --> 420</a> 421<ul class="blockList"> 422<li class="blockList"> 423<h4>getRawEnums</h4> 424<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>[] getRawEnums()</pre> 425</li> 426</ul> 427<a name="getEnums()"> 428<!-- --> 429</a> 430<ul class="blockList"> 431<li class="blockList"> 432<h4>getEnums</h4> 433<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>> getEnums()</pre> 434</li> 435</ul> 436<a name="getEnumClass()"> 437<!-- --> 438</a> 439<ul class="blockList"> 440<li class="blockList"> 441<h4>getEnumClass</h4> 442<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><?>> getEnumClass()</pre> 443</li> 444</ul> 445<a name="lastValidIndex()"> 446<!-- --> 447</a> 448<ul class="blockListLast"> 449<li class="blockList"> 450<h4>lastValidIndex</h4> 451<pre>public int lastValidIndex()</pre> 452</li> 453</ul> 454</li> 455</ul> 456</li> 457</ul> 458</div> 459</div> 460<!-- ========= END OF CLASS DATA ========= --> 461<!-- ======= START OF BOTTOM NAVBAR ====== --> 462<div class="bottomNav"><a name="navbar_bottom"> 463<!-- --> 464</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> 465<!-- --> 466</a> 467<ul class="navList" title="Navigation"> 468<li><a href="../../../../../overview-summary.html">Overview</a></li> 469<li><a href="package-summary.html">Package</a></li> 470<li class="navBarCell1Rev">Class</li> 471<li><a href="class-use/EnumResolver.html">Use</a></li> 472<li><a href="package-tree.html">Tree</a></li> 473<li><a href="../../../../../deprecated-list.html">Deprecated</a></li> 474<li><a href="../../../../../index-all.html">Index</a></li> 475<li><a href="../../../../../help-doc.html">Help</a></li> 476</ul> 477</div> 478<div class="subNav"> 479<ul class="navList"> 480<li><a href="../../../../../com/fasterxml/jackson/databind/util/Converter.None.html" title="class in com.fasterxml.jackson.databind.util"><span class="strong">Prev Class</span></a></li> 481<li><a href="../../../../../com/fasterxml/jackson/databind/util/EnumValues.html" title="class in com.fasterxml.jackson.databind.util"><span class="strong">Next Class</span></a></li> 482</ul> 483<ul class="navList"> 484<li><a href="../../../../../index.html?com/fasterxml/jackson/databind/util/EnumResolver.html" target="_top">Frames</a></li> 485<li><a href="EnumResolver.html" target="_top">No Frames</a></li> 486</ul> 487<ul class="navList" id="allclasses_navbar_bottom"> 488<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> 489</ul> 490<div> 491<script type="text/javascript"><!-- 492 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 493 if(window==top) { 494 allClassesLink.style.display = "block"; 495 } 496 else { 497 allClassesLink.style.display = "none"; 498 } 499 //--> 500</script> 501</div> 502<div> 503<ul class="subNavList"> 504<li>Summary: </li> 505<li>Nested | </li> 506<li><a href="#field_summary">Field</a> | </li> 507<li><a href="#constructor_summary">Constr</a> | </li> 508<li><a href="#method_summary">Method</a></li> 509</ul> 510<ul class="subNavList"> 511<li>Detail: </li> 512<li><a href="#field_detail">Field</a> | </li> 513<li><a href="#constructor_detail">Constr</a> | </li> 514<li><a href="#method_detail">Method</a></li> 515</ul> 516</div> 517<a name="skip-navbar_bottom"> 518<!-- --> 519</a></div> 520<!-- ======== END OF BOTTOM NAVBAR ======= --> 521<p class="legalCopy"><small>Copyright © 2008–2016 <a href="http://fasterxml.com/">FasterXML</a>. All rights reserved.</small></p> 522</body> 523</html> 524