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