• 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 (version 1.7.0_25) on Mon Jun 02 17:48:58 PDT 2014 -->
6<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
7<title>EnumResolver (jackson-databind 2.4.0 API)</title>
8<meta name="date" content="2014-06-02">
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.4.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/EmptyIterator.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:&nbsp;</li>
65<li>Nested&nbsp;|&nbsp;</li>
66<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
67<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
68<li><a href="#method_summary">Method</a></li>
69</ul>
70<ul class="subNavList">
71<li>Detail:&nbsp;</li>
72<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
73<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</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&lt;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>&lt;T&gt;&gt;</h2>
85</div>
86<div class="contentContainer">
87<ul class="inheritance">
88<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>
89<li>
90<ul class="inheritance">
91<li>com.fasterxml.jackson.databind.util.EnumResolver&lt;T&gt;</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/6/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a></dd>
101</dl>
102<hr>
103<br>
104<pre>public class <span class="strong">EnumResolver&lt;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>&lt;T&gt;&gt;</span>
105extends <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>
106implements <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>
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">&nbsp;</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/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;<a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="type parameter in EnumResolver">T</a>&gt;</code></td>
130<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#_enumClass">_enumClass</a></strong></code>&nbsp;</td>
131</tr>
132<tr class="rowColor">
133<td class="colFirst"><code>protected <a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="type parameter in EnumResolver">T</a>[]</code></td>
134<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#_enums">_enums</a></strong></code>&nbsp;</td>
135</tr>
136<tr class="altColor">
137<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="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="type parameter in EnumResolver">T</a>&gt;</code></td>
138<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#_enumsById">_enumsById</a></strong></code>&nbsp;</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">&nbsp;</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, T[], java.util.HashMap)">EnumResolver</a></strong>(<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="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="type parameter in EnumResolver">T</a>&gt;&nbsp;enumClass,
158            <a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="type parameter in EnumResolver">T</a>[]&nbsp;enums,
159            <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="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="type parameter in EnumResolver">T</a>&gt;&nbsp;map)</code>&nbsp;</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">&nbsp;</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 &lt;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>&lt;ET&gt;&gt;&nbsp;<br><a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="class in com.fasterxml.jackson.databind.util">EnumResolver</a>&lt;ET&gt;</code></td>
178<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#constructFor(java.lang.Class, com.fasterxml.jackson.databind.AnnotationIntrospector)">constructFor</a></strong>(<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;ET&gt;&nbsp;enumCls,
179            <a href="../../../../../com/fasterxml/jackson/databind/AnnotationIntrospector.html" title="class in com.fasterxml.jackson.databind">AnnotationIntrospector</a>&nbsp;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>static <a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="class in com.fasterxml.jackson.databind.util">EnumResolver</a>&lt;?&gt;</code></td>
186<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#constructUnsafe(java.lang.Class, com.fasterxml.jackson.databind.AnnotationIntrospector)">constructUnsafe</a></strong>(<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,
187               <a href="../../../../../com/fasterxml/jackson/databind/AnnotationIntrospector.html" title="class in com.fasterxml.jackson.databind">AnnotationIntrospector</a>&nbsp;ai)</code>
188<div class="block">This method is needed because of the dynamic nature of constructing Enum
189 resolvers.</div>
190</td>
191</tr>
192<tr 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>&lt;?&gt;</code></td>
194<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#constructUnsafeUsingMethod(java.lang.Class, java.lang.reflect.Method)">constructUnsafeUsingMethod</a></strong>(<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,
195                          <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>
196<div class="block">Method used when actual String serialization is indicated using @JsonValue
197 on a method.</div>
198</td>
199</tr>
200<tr class="rowColor">
201<td class="colFirst"><code>static <a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="class in com.fasterxml.jackson.databind.util">EnumResolver</a>&lt;?&gt;</code></td>
202<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/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;?&gt;&nbsp;rawEnumCls)</code>
203<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;ET&gt;)</code></a>
204 if static type of enum is not known.</div>
205</td>
206</tr>
207<tr class="altColor">
208<td class="colFirst"><code>static &lt;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>&lt;ET&gt;&gt;&nbsp;<br><a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="class in com.fasterxml.jackson.databind.util">EnumResolver</a>&lt;ET&gt;</code></td>
209<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#constructUsingMethod(java.lang.Class, java.lang.reflect.Method)">constructUsingMethod</a></strong>(<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;ET&gt;&nbsp;enumCls,
210                    <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>
211</tr>
212<tr class="rowColor">
213<td class="colFirst"><code>static &lt;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>&lt;ET&gt;&gt;&nbsp;<br><a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="class in com.fasterxml.jackson.databind.util">EnumResolver</a>&lt;ET&gt;</code></td>
214<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/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a>&lt;ET&gt;&nbsp;enumCls)</code>
215<div class="block">Factory method for constructing resolver that maps from Enum.toString() into
216 Enum value</div>
217</td>
218</tr>
219<tr class="altColor">
220<td class="colFirst"><code><a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="type parameter in EnumResolver">T</a></code></td>
221<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/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>&nbsp;key)</code>&nbsp;</td>
222</tr>
223<tr class="rowColor">
224<td class="colFirst"><code><a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="type parameter in EnumResolver">T</a></code></td>
225<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#getEnum(int)">getEnum</a></strong>(int&nbsp;index)</code>&nbsp;</td>
226</tr>
227<tr class="altColor">
228<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="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="type parameter in EnumResolver">T</a>&gt;</code></td>
229<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#getEnumClass()">getEnumClass</a></strong>()</code>&nbsp;</td>
230</tr>
231<tr class="rowColor">
232<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="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="type parameter in EnumResolver">T</a>&gt;</code></td>
233<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#getEnums()">getEnums</a></strong>()</code>&nbsp;</td>
234</tr>
235<tr class="altColor">
236<td class="colFirst"><code>int</code></td>
237<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html#lastValidIndex()">lastValidIndex</a></strong>()</code>&nbsp;</td>
238</tr>
239</table>
240<ul class="blockList">
241<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
242<!--   -->
243</a>
244<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>
245<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>
246</ul>
247</li>
248</ul>
249</li>
250</ul>
251</div>
252<div class="details">
253<ul class="blockList">
254<li class="blockList">
255<!-- ============ FIELD DETAIL =========== -->
256<ul class="blockList">
257<li class="blockList"><a name="field_detail">
258<!--   -->
259</a>
260<h3>Field Detail</h3>
261<a name="_enumClass">
262<!--   -->
263</a>
264<ul class="blockList">
265<li class="blockList">
266<h4>_enumClass</h4>
267<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="../../../../../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>&lt;<a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="type parameter in EnumResolver">T</a>&gt;&gt; _enumClass</pre>
268</li>
269</ul>
270<a name="_enums">
271<!--   -->
272</a>
273<ul class="blockList">
274<li class="blockList">
275<h4>_enums</h4>
276<pre>protected final&nbsp;<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>&lt;<a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="type parameter in EnumResolver">T</a>&gt;[] _enums</pre>
277</li>
278</ul>
279<a name="_enumsById">
280<!--   -->
281</a>
282<ul class="blockListLast">
283<li class="blockList">
284<h4>_enumsById</h4>
285<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="../../../../../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>&lt;<a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="type parameter in EnumResolver">T</a>&gt;&gt; _enumsById</pre>
286</li>
287</ul>
288</li>
289</ul>
290<!-- ========= CONSTRUCTOR DETAIL ======== -->
291<ul class="blockList">
292<li class="blockList"><a name="constructor_detail">
293<!--   -->
294</a>
295<h3>Constructor Detail</h3>
296<a name="EnumResolver(java.lang.Class,java.lang.Enum[],java.util.HashMap)">
297<!--   -->
298</a><a name="EnumResolver(java.lang.Class, T[], java.util.HashMap)">
299<!--   -->
300</a>
301<ul class="blockListLast">
302<li class="blockList">
303<h4>EnumResolver</h4>
304<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="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="type parameter in EnumResolver">T</a>&gt;&nbsp;enumClass,
305            <a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="type parameter in EnumResolver">T</a>[]&nbsp;enums,
306            <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="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="type parameter in EnumResolver">T</a>&gt;&nbsp;map)</pre>
307</li>
308</ul>
309</li>
310</ul>
311<!-- ============ METHOD DETAIL ========== -->
312<ul class="blockList">
313<li class="blockList"><a name="method_detail">
314<!--   -->
315</a>
316<h3>Method Detail</h3>
317<a name="constructFor(java.lang.Class, com.fasterxml.jackson.databind.AnnotationIntrospector)">
318<!--   -->
319</a>
320<ul class="blockList">
321<li class="blockList">
322<h4>constructFor</h4>
323<pre>public static&nbsp;&lt;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>&lt;ET&gt;&gt;&nbsp;<a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="class in com.fasterxml.jackson.databind.util">EnumResolver</a>&lt;ET&gt;&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;ET&gt;&nbsp;enumCls,
324                                                  <a href="../../../../../com/fasterxml/jackson/databind/AnnotationIntrospector.html" title="class in com.fasterxml.jackson.databind">AnnotationIntrospector</a>&nbsp;ai)</pre>
325<div class="block">Factory method for constructing resolver that maps from Enum.name() into
326 Enum value</div>
327</li>
328</ul>
329<a name="constructUsingToString(java.lang.Class)">
330<!--   -->
331</a>
332<ul class="blockList">
333<li class="blockList">
334<h4>constructUsingToString</h4>
335<pre>public static&nbsp;&lt;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>&lt;ET&gt;&gt;&nbsp;<a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="class in com.fasterxml.jackson.databind.util">EnumResolver</a>&lt;ET&gt;&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;ET&gt;&nbsp;enumCls)</pre>
336<div class="block">Factory method for constructing resolver that maps from Enum.toString() into
337 Enum value</div>
338</li>
339</ul>
340<a name="constructUsingMethod(java.lang.Class, java.lang.reflect.Method)">
341<!--   -->
342</a>
343<ul class="blockList">
344<li class="blockList">
345<h4>constructUsingMethod</h4>
346<pre>public static&nbsp;&lt;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>&lt;ET&gt;&gt;&nbsp;<a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="class in com.fasterxml.jackson.databind.util">EnumResolver</a>&lt;ET&gt;&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;ET&gt;&nbsp;enumCls,
347                                                          <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>
348</li>
349</ul>
350<a name="constructUnsafe(java.lang.Class, com.fasterxml.jackson.databind.AnnotationIntrospector)">
351<!--   -->
352</a>
353<ul class="blockList">
354<li class="blockList">
355<h4>constructUnsafe</h4>
356<pre>public static&nbsp;<a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="class in com.fasterxml.jackson.databind.util">EnumResolver</a>&lt;?&gt;&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,
357                              <a href="../../../../../com/fasterxml/jackson/databind/AnnotationIntrospector.html" title="class in com.fasterxml.jackson.databind">AnnotationIntrospector</a>&nbsp;ai)</pre>
358<div class="block">This method is needed because of the dynamic nature of constructing Enum
359 resolvers.</div>
360</li>
361</ul>
362<a name="constructUnsafeUsingToString(java.lang.Class)">
363<!--   -->
364</a>
365<ul class="blockList">
366<li class="blockList">
367<h4>constructUnsafeUsingToString</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>&lt;?&gt;&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>
369<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;ET&gt;)</code></a>
370 if static type of enum is not known.</div>
371</li>
372</ul>
373<a name="constructUnsafeUsingMethod(java.lang.Class, java.lang.reflect.Method)">
374<!--   -->
375</a>
376<ul class="blockList">
377<li class="blockList">
378<h4>constructUnsafeUsingMethod</h4>
379<pre>public static&nbsp;<a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="class in com.fasterxml.jackson.databind.util">EnumResolver</a>&lt;?&gt;&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,
380                                         <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>
381<div class="block">Method used when actual String serialization is indicated using @JsonValue
382 on a method.</div>
383</li>
384</ul>
385<a name="findEnum(java.lang.String)">
386<!--   -->
387</a>
388<ul class="blockList">
389<li class="blockList">
390<h4>findEnum</h4>
391<pre>public&nbsp;<a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="type parameter in EnumResolver">T</a>&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>
392</li>
393</ul>
394<a name="getEnum(int)">
395<!--   -->
396</a>
397<ul class="blockList">
398<li class="blockList">
399<h4>getEnum</h4>
400<pre>public&nbsp;<a href="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="type parameter in EnumResolver">T</a>&nbsp;getEnum(int&nbsp;index)</pre>
401</li>
402</ul>
403<a name="getEnums()">
404<!--   -->
405</a>
406<ul class="blockList">
407<li class="blockList">
408<h4>getEnums</h4>
409<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="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="type parameter in EnumResolver">T</a>&gt;&nbsp;getEnums()</pre>
410</li>
411</ul>
412<a name="getEnumClass()">
413<!--   -->
414</a>
415<ul class="blockList">
416<li class="blockList">
417<h4>getEnumClass</h4>
418<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="../../../../../com/fasterxml/jackson/databind/util/EnumResolver.html" title="type parameter in EnumResolver">T</a>&gt;&nbsp;getEnumClass()</pre>
419</li>
420</ul>
421<a name="lastValidIndex()">
422<!--   -->
423</a>
424<ul class="blockListLast">
425<li class="blockList">
426<h4>lastValidIndex</h4>
427<pre>public&nbsp;int&nbsp;lastValidIndex()</pre>
428</li>
429</ul>
430</li>
431</ul>
432</li>
433</ul>
434</div>
435</div>
436<!-- ========= END OF CLASS DATA ========= -->
437<!-- ======= START OF BOTTOM NAVBAR ====== -->
438<div class="bottomNav"><a name="navbar_bottom">
439<!--   -->
440</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
441<!--   -->
442</a>
443<ul class="navList" title="Navigation">
444<li><a href="../../../../../overview-summary.html">Overview</a></li>
445<li><a href="package-summary.html">Package</a></li>
446<li class="navBarCell1Rev">Class</li>
447<li><a href="class-use/EnumResolver.html">Use</a></li>
448<li><a href="package-tree.html">Tree</a></li>
449<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
450<li><a href="../../../../../index-all.html">Index</a></li>
451<li><a href="../../../../../help-doc.html">Help</a></li>
452</ul>
453</div>
454<div class="subNav">
455<ul class="navList">
456<li><a href="../../../../../com/fasterxml/jackson/databind/util/EmptyIterator.html" title="class in com.fasterxml.jackson.databind.util"><span class="strong">Prev Class</span></a></li>
457<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>
458</ul>
459<ul class="navList">
460<li><a href="../../../../../index.html?com/fasterxml/jackson/databind/util/EnumResolver.html" target="_top">Frames</a></li>
461<li><a href="EnumResolver.html" target="_top">No Frames</a></li>
462</ul>
463<ul class="navList" id="allclasses_navbar_bottom">
464<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
465</ul>
466<div>
467<script type="text/javascript"><!--
468  allClassesLink = document.getElementById("allclasses_navbar_bottom");
469  if(window==top) {
470    allClassesLink.style.display = "block";
471  }
472  else {
473    allClassesLink.style.display = "none";
474  }
475  //-->
476</script>
477</div>
478<div>
479<ul class="subNavList">
480<li>Summary:&nbsp;</li>
481<li>Nested&nbsp;|&nbsp;</li>
482<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
483<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
484<li><a href="#method_summary">Method</a></li>
485</ul>
486<ul class="subNavList">
487<li>Detail:&nbsp;</li>
488<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
489<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
490<li><a href="#method_detail">Method</a></li>
491</ul>
492</div>
493<a name="skip-navbar_bottom">
494<!--   -->
495</a></div>
496<!-- ======== END OF BOTTOM NAVBAR ======= -->
497<p class="legalCopy"><small>Copyright &#169; 2014 <a href="http://fasterxml.com/">FasterXML</a>. All Rights Reserved.</small></p>
498</body>
499</html>
500