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:57 PDT 2014 --> 6<meta http-equiv="Content-Type" content="text/html" charset="UTF-8"> 7<title>SimpleKeyDeserializers (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="SimpleKeyDeserializers (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/SimpleKeyDeserializers.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/module/SimpleDeserializers.html" title="class in com.fasterxml.jackson.databind.module"><span class="strong">Prev Class</span></a></li> 41<li><a href="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html" title="class in com.fasterxml.jackson.databind.module"><span class="strong">Next Class</span></a></li> 42</ul> 43<ul class="navList"> 44<li><a href="../../../../../index.html?com/fasterxml/jackson/databind/module/SimpleKeyDeserializers.html" target="_top">Frames</a></li> 45<li><a href="SimpleKeyDeserializers.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.module</div> 84<h2 title="Class SimpleKeyDeserializers" class="title">Class SimpleKeyDeserializers</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.module.SimpleKeyDeserializers</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="../../../../../com/fasterxml/jackson/databind/deser/KeyDeserializers.html" title="interface in com.fasterxml.jackson.databind.deser">KeyDeserializers</a>, <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">SimpleKeyDeserializers</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="../../../../../com/fasterxml/jackson/databind/deser/KeyDeserializers.html" title="interface in com.fasterxml.jackson.databind.deser">KeyDeserializers</a>, <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">Simple implementation <a href="../../../../../com/fasterxml/jackson/databind/deser/KeyDeserializers.html" title="interface in com.fasterxml.jackson.databind.deser"><code>KeyDeserializers</code></a> which allows registration of 108 deserializers based on raw (type erased class). 109 It can work well for basic bean and scalar type deserializers, but is not 110 a good fit for handling generic types (like <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util"><code>Map</code></a>s and <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util"><code>Collection</code></a>s 111 or array types). 112<p> 113 Unlike <a href="../../../../../com/fasterxml/jackson/databind/module/SimpleSerializers.html" title="class in com.fasterxml.jackson.databind.module"><code>SimpleSerializers</code></a>, this class does not currently support generic mappings; 114 all mappings must be to exact declared deserialization type.</div> 115<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../serialized-form.html#com.fasterxml.jackson.databind.module.SimpleKeyDeserializers">Serialized Form</a></dd></dl> 116</li> 117</ul> 118</div> 119<div class="summary"> 120<ul class="blockList"> 121<li class="blockList"> 122<!-- =========== FIELD SUMMARY =========== --> 123<ul class="blockList"> 124<li class="blockList"><a name="field_summary"> 125<!-- --> 126</a> 127<h3>Field Summary</h3> 128<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> 129<caption><span>Fields</span><span class="tabEnd"> </span></caption> 130<tr> 131<th class="colFirst" scope="col">Modifier and Type</th> 132<th class="colLast" scope="col">Field and Description</th> 133</tr> 134<tr class="altColor"> 135<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><<a href="../../../../../com/fasterxml/jackson/databind/type/ClassKey.html" title="class in com.fasterxml.jackson.databind.type">ClassKey</a>,<a href="../../../../../com/fasterxml/jackson/databind/KeyDeserializer.html" title="class in com.fasterxml.jackson.databind">KeyDeserializer</a>></code></td> 136<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/module/SimpleKeyDeserializers.html#_classMappings">_classMappings</a></strong></code> </td> 137</tr> 138</table> 139</li> 140</ul> 141<!-- ======== CONSTRUCTOR SUMMARY ======== --> 142<ul class="blockList"> 143<li class="blockList"><a name="constructor_summary"> 144<!-- --> 145</a> 146<h3>Constructor Summary</h3> 147<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> 148<caption><span>Constructors</span><span class="tabEnd"> </span></caption> 149<tr> 150<th class="colOne" scope="col">Constructor and Description</th> 151</tr> 152<tr class="altColor"> 153<td class="colOne"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/module/SimpleKeyDeserializers.html#SimpleKeyDeserializers()">SimpleKeyDeserializers</a></strong>()</code> </td> 154</tr> 155</table> 156</li> 157</ul> 158<!-- ========== METHOD SUMMARY =========== --> 159<ul class="blockList"> 160<li class="blockList"><a name="method_summary"> 161<!-- --> 162</a> 163<h3>Method Summary</h3> 164<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> 165<caption><span>Methods</span><span class="tabEnd"> </span></caption> 166<tr> 167<th class="colFirst" scope="col">Modifier and Type</th> 168<th class="colLast" scope="col">Method and Description</th> 169</tr> 170<tr class="altColor"> 171<td class="colFirst"><code><a href="../../../../../com/fasterxml/jackson/databind/module/SimpleKeyDeserializers.html" title="class in com.fasterxml.jackson.databind.module">SimpleKeyDeserializers</a></code></td> 172<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/module/SimpleKeyDeserializers.html#addDeserializer(java.lang.Class, com.fasterxml.jackson.databind.KeyDeserializer)">addDeserializer</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><?> forClass, 173 <a href="../../../../../com/fasterxml/jackson/databind/KeyDeserializer.html" title="class in com.fasterxml.jackson.databind">KeyDeserializer</a> deser)</code> </td> 174</tr> 175<tr class="rowColor"> 176<td class="colFirst"><code><a href="../../../../../com/fasterxml/jackson/databind/KeyDeserializer.html" title="class in com.fasterxml.jackson.databind">KeyDeserializer</a></code></td> 177<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/module/SimpleKeyDeserializers.html#findKeyDeserializer(com.fasterxml.jackson.databind.JavaType, com.fasterxml.jackson.databind.DeserializationConfig, com.fasterxml.jackson.databind.BeanDescription)">findKeyDeserializer</a></strong>(<a href="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a> type, 178 <a href="../../../../../com/fasterxml/jackson/databind/DeserializationConfig.html" title="class in com.fasterxml.jackson.databind">DeserializationConfig</a> config, 179 <a href="../../../../../com/fasterxml/jackson/databind/BeanDescription.html" title="class in com.fasterxml.jackson.databind">BeanDescription</a> beanDesc)</code> </td> 180</tr> 181</table> 182<ul class="blockList"> 183<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> 184<!-- --> 185</a> 186<h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> 187<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> 188</ul> 189</li> 190</ul> 191</li> 192</ul> 193</div> 194<div class="details"> 195<ul class="blockList"> 196<li class="blockList"> 197<!-- ============ FIELD DETAIL =========== --> 198<ul class="blockList"> 199<li class="blockList"><a name="field_detail"> 200<!-- --> 201</a> 202<h3>Field Detail</h3> 203<a name="_classMappings"> 204<!-- --> 205</a> 206<ul class="blockListLast"> 207<li class="blockList"> 208<h4>_classMappings</h4> 209<pre>protected <a href="http://docs.oracle.com/javase/6/docs/api/java/util/HashMap.html?is-external=true" title="class or interface in java.util">HashMap</a><<a href="../../../../../com/fasterxml/jackson/databind/type/ClassKey.html" title="class in com.fasterxml.jackson.databind.type">ClassKey</a>,<a href="../../../../../com/fasterxml/jackson/databind/KeyDeserializer.html" title="class in com.fasterxml.jackson.databind">KeyDeserializer</a>> _classMappings</pre> 210</li> 211</ul> 212</li> 213</ul> 214<!-- ========= CONSTRUCTOR DETAIL ======== --> 215<ul class="blockList"> 216<li class="blockList"><a name="constructor_detail"> 217<!-- --> 218</a> 219<h3>Constructor Detail</h3> 220<a name="SimpleKeyDeserializers()"> 221<!-- --> 222</a> 223<ul class="blockListLast"> 224<li class="blockList"> 225<h4>SimpleKeyDeserializers</h4> 226<pre>public SimpleKeyDeserializers()</pre> 227</li> 228</ul> 229</li> 230</ul> 231<!-- ============ METHOD DETAIL ========== --> 232<ul class="blockList"> 233<li class="blockList"><a name="method_detail"> 234<!-- --> 235</a> 236<h3>Method Detail</h3> 237<a name="addDeserializer(java.lang.Class, com.fasterxml.jackson.databind.KeyDeserializer)"> 238<!-- --> 239</a> 240<ul class="blockList"> 241<li class="blockList"> 242<h4>addDeserializer</h4> 243<pre>public <a href="../../../../../com/fasterxml/jackson/databind/module/SimpleKeyDeserializers.html" title="class in com.fasterxml.jackson.databind.module">SimpleKeyDeserializers</a> addDeserializer(<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><?> forClass, 244 <a href="../../../../../com/fasterxml/jackson/databind/KeyDeserializer.html" title="class in com.fasterxml.jackson.databind">KeyDeserializer</a> deser)</pre> 245</li> 246</ul> 247<a name="findKeyDeserializer(com.fasterxml.jackson.databind.JavaType, com.fasterxml.jackson.databind.DeserializationConfig, com.fasterxml.jackson.databind.BeanDescription)"> 248<!-- --> 249</a> 250<ul class="blockListLast"> 251<li class="blockList"> 252<h4>findKeyDeserializer</h4> 253<pre>public <a href="../../../../../com/fasterxml/jackson/databind/KeyDeserializer.html" title="class in com.fasterxml.jackson.databind">KeyDeserializer</a> findKeyDeserializer(<a href="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</a> type, 254 <a href="../../../../../com/fasterxml/jackson/databind/DeserializationConfig.html" title="class in com.fasterxml.jackson.databind">DeserializationConfig</a> config, 255 <a href="../../../../../com/fasterxml/jackson/databind/BeanDescription.html" title="class in com.fasterxml.jackson.databind">BeanDescription</a> beanDesc)</pre> 256<dl> 257<dt><strong>Specified by:</strong></dt> 258<dd><code><a href="../../../../../com/fasterxml/jackson/databind/deser/KeyDeserializers.html#findKeyDeserializer(com.fasterxml.jackson.databind.JavaType, com.fasterxml.jackson.databind.DeserializationConfig, com.fasterxml.jackson.databind.BeanDescription)">findKeyDeserializer</a></code> in interface <code><a href="../../../../../com/fasterxml/jackson/databind/deser/KeyDeserializers.html" title="interface in com.fasterxml.jackson.databind.deser">KeyDeserializers</a></code></dd> 259</dl> 260</li> 261</ul> 262</li> 263</ul> 264</li> 265</ul> 266</div> 267</div> 268<!-- ========= END OF CLASS DATA ========= --> 269<!-- ======= START OF BOTTOM NAVBAR ====== --> 270<div class="bottomNav"><a name="navbar_bottom"> 271<!-- --> 272</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> 273<!-- --> 274</a> 275<ul class="navList" title="Navigation"> 276<li><a href="../../../../../overview-summary.html">Overview</a></li> 277<li><a href="package-summary.html">Package</a></li> 278<li class="navBarCell1Rev">Class</li> 279<li><a href="class-use/SimpleKeyDeserializers.html">Use</a></li> 280<li><a href="package-tree.html">Tree</a></li> 281<li><a href="../../../../../deprecated-list.html">Deprecated</a></li> 282<li><a href="../../../../../index-all.html">Index</a></li> 283<li><a href="../../../../../help-doc.html">Help</a></li> 284</ul> 285</div> 286<div class="subNav"> 287<ul class="navList"> 288<li><a href="../../../../../com/fasterxml/jackson/databind/module/SimpleDeserializers.html" title="class in com.fasterxml.jackson.databind.module"><span class="strong">Prev Class</span></a></li> 289<li><a href="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html" title="class in com.fasterxml.jackson.databind.module"><span class="strong">Next Class</span></a></li> 290</ul> 291<ul class="navList"> 292<li><a href="../../../../../index.html?com/fasterxml/jackson/databind/module/SimpleKeyDeserializers.html" target="_top">Frames</a></li> 293<li><a href="SimpleKeyDeserializers.html" target="_top">No Frames</a></li> 294</ul> 295<ul class="navList" id="allclasses_navbar_bottom"> 296<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> 297</ul> 298<div> 299<script type="text/javascript"><!-- 300 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 301 if(window==top) { 302 allClassesLink.style.display = "block"; 303 } 304 else { 305 allClassesLink.style.display = "none"; 306 } 307 //--> 308</script> 309</div> 310<div> 311<ul class="subNavList"> 312<li>Summary: </li> 313<li>Nested | </li> 314<li><a href="#field_summary">Field</a> | </li> 315<li><a href="#constructor_summary">Constr</a> | </li> 316<li><a href="#method_summary">Method</a></li> 317</ul> 318<ul class="subNavList"> 319<li>Detail: </li> 320<li><a href="#field_detail">Field</a> | </li> 321<li><a href="#constructor_detail">Constr</a> | </li> 322<li><a href="#method_detail">Method</a></li> 323</ul> 324</div> 325<a name="skip-navbar_bottom"> 326<!-- --> 327</a></div> 328<!-- ======== END OF BOTTOM NAVBAR ======= --> 329<p class="legalCopy"><small>Copyright © 2014 <a href="http://fasterxml.com/">FasterXML</a>. All Rights Reserved.</small></p> 330</body> 331</html> 332