1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2<!--NewPage--> 3<HTML> 4<HEAD> 5<!-- Generated by javadoc (build 1.6.0_29) on Mon Mar 26 19:07:16 PDT 2012 --> 6<META http-equiv="Content-Type" content="text/html; charset=UTF-8"> 7<TITLE> 8SimpleModule (jackson-databind 2.0.0 API) 9</TITLE> 10 11<META NAME="date" CONTENT="2012-03-26"> 12 13<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style"> 14 15<SCRIPT type="text/javascript"> 16function windowTitle() 17{ 18 if (location.href.indexOf('is-external=true') == -1) { 19 parent.document.title="SimpleModule (jackson-databind 2.0.0 API)"; 20 } 21} 22</SCRIPT> 23<NOSCRIPT> 24</NOSCRIPT> 25 26</HEAD> 27 28<BODY BGCOLOR="white" onload="windowTitle();"> 29<HR> 30 31 32<!-- ========= START OF TOP NAVBAR ======= --> 33<A NAME="navbar_top"><!-- --></A> 34<A HREF="#skip-navbar_top" title="Skip navigation links"></A> 35<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 36<TR> 37<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 38<A NAME="navbar_top_firstrow"><!-- --></A> 39<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 40 <TR ALIGN="center" VALIGN="top"> 41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 43 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/SimpleModule.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> 45 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 46 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 47 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 48 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 49 </TR> 50</TABLE> 51</TD> 52<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 53</EM> 54</TD> 55</TR> 56 57<TR> 58<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 59 <A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleKeyDeserializers.html" title="class in com.fasterxml.jackson.databind.module"><B>PREV CLASS</B></A> 60 <A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleSerializers.html" title="class in com.fasterxml.jackson.databind.module"><B>NEXT CLASS</B></A></FONT></TD> 61<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 62 <A HREF="../../../../../index.html?com/fasterxml/jackson/databind/module/SimpleModule.html" target="_top"><B>FRAMES</B></A> 63 <A HREF="SimpleModule.html" target="_top"><B>NO FRAMES</B></A> 64 <SCRIPT type="text/javascript"> 65 <!-- 66 if(window==top) { 67 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); 68 } 69 //--> 70</SCRIPT> 71<NOSCRIPT> 72 <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> 73</NOSCRIPT> 74 75 76</FONT></TD> 77</TR> 78<TR> 79<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 80 SUMMARY: <A HREF="#nested_classes_inherited_from_class_com.fasterxml.jackson.databind.Module">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> 81<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 82DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> 83</TR> 84</TABLE> 85<A NAME="skip-navbar_top"></A> 86<!-- ========= END OF TOP NAVBAR ========= --> 87 88<HR> 89<!-- ======== START OF CLASS DATA ======== --> 90<H2> 91<FONT SIZE="-1"> 92com.fasterxml.jackson.databind.module</FONT> 93<BR> 94Class SimpleModule</H2> 95<PRE> 96<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A> 97 <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../../com/fasterxml/jackson/databind/Module.html" title="class in com.fasterxml.jackson.databind">com.fasterxml.jackson.databind.Module</A> 98 <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>com.fasterxml.jackson.databind.module.SimpleModule</B> 99</PRE> 100<DL> 101<DT><B>All Implemented Interfaces:</B> <DD>com.fasterxml.jackson.core.Versioned</DD> 102</DL> 103<HR> 104<DL> 105<DT><PRE>public class <B>SimpleModule</B><DT>extends <A HREF="../../../../../com/fasterxml/jackson/databind/Module.html" title="class in com.fasterxml.jackson.databind">Module</A></DL> 106</PRE> 107 108<P> 109Simple <A HREF="../../../../../com/fasterxml/jackson/databind/Module.html" title="class in com.fasterxml.jackson.databind"><CODE>Module</CODE></A> implementation that allows registration 110 of serializers and deserializers, and bean serializer 111 and deserializer modifiers. 112<P> 113 114<P> 115<HR> 116 117<P> 118<!-- ======== NESTED CLASS SUMMARY ======== --> 119 120<A NAME="nested_class_summary"><!-- --></A> 121<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 122<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 123<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 124<B>Nested Class Summary</B></FONT></TH> 125</TR> 126</TABLE> 127 <A NAME="nested_classes_inherited_from_class_com.fasterxml.jackson.databind.Module"><!-- --></A> 128<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 129<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 130<TH ALIGN="left"><B>Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.<A HREF="../../../../../com/fasterxml/jackson/databind/Module.html" title="class in com.fasterxml.jackson.databind">Module</A></B></TH> 131</TR> 132<TR BGCOLOR="white" CLASS="TableRowColor"> 133<TD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/Module.SetupContext.html" title="interface in com.fasterxml.jackson.databind">Module.SetupContext</A></CODE></TD> 134</TR> 135</TABLE> 136 137<!-- =========== FIELD SUMMARY =========== --> 138 139<A NAME="field_summary"><!-- --></A> 140<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 141<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 142<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 143<B>Field Summary</B></FONT></TH> 144</TR> 145<TR BGCOLOR="white" CLASS="TableRowColor"> 146<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 147<CODE>protected <A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleAbstractTypeResolver.html" title="class in com.fasterxml.jackson.databind.module">SimpleAbstractTypeResolver</A></CODE></FONT></TD> 148<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html#_abstractTypes">_abstractTypes</A></B></CODE> 149 150<BR> 151 Lazily-constructed resolver used for storing mappings from 152 abstract classes to more specific implementing classes 153 (which may be abstract or concrete)</TD> 154</TR> 155<TR BGCOLOR="white" CLASS="TableRowColor"> 156<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 157<CODE>protected <A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleDeserializers.html" title="class in com.fasterxml.jackson.databind.module">SimpleDeserializers</A></CODE></FONT></TD> 158<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html#_deserializers">_deserializers</A></B></CODE> 159 160<BR> 161 </TD> 162</TR> 163<TR BGCOLOR="white" CLASS="TableRowColor"> 164<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 165<CODE>protected <A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleKeyDeserializers.html" title="class in com.fasterxml.jackson.databind.module">SimpleKeyDeserializers</A></CODE></FONT></TD> 166<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html#_keyDeserializers">_keyDeserializers</A></B></CODE> 167 168<BR> 169 </TD> 170</TR> 171<TR BGCOLOR="white" CLASS="TableRowColor"> 172<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 173<CODE>protected <A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleSerializers.html" title="class in com.fasterxml.jackson.databind.module">SimpleSerializers</A></CODE></FONT></TD> 174<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html#_keySerializers">_keySerializers</A></B></CODE> 175 176<BR> 177 </TD> 178</TR> 179<TR BGCOLOR="white" CLASS="TableRowColor"> 180<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 181<CODE>protected <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/HashMap.html?is-external=true" title="class or interface in java.util">HashMap</A><<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?>,<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><?>></CODE></FONT></TD> 182<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html#_mixins">_mixins</A></B></CODE> 183 184<BR> 185 Lazily-constructed map that contains mix-in definitions, indexed 186 by target class, value being mix-in to apply.</TD> 187</TR> 188<TR BGCOLOR="white" CLASS="TableRowColor"> 189<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 190<CODE>protected <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></CODE></FONT></TD> 191<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html#_name">_name</A></B></CODE> 192 193<BR> 194 </TD> 195</TR> 196<TR BGCOLOR="white" CLASS="TableRowColor"> 197<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 198<CODE>protected <A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleSerializers.html" title="class in com.fasterxml.jackson.databind.module">SimpleSerializers</A></CODE></FONT></TD> 199<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html#_serializers">_serializers</A></B></CODE> 200 201<BR> 202 </TD> 203</TR> 204<TR BGCOLOR="white" CLASS="TableRowColor"> 205<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 206<CODE>protected <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/LinkedHashSet.html?is-external=true" title="class or interface in java.util">LinkedHashSet</A><<A HREF="../../../../../com/fasterxml/jackson/databind/jsontype/NamedType.html" title="class in com.fasterxml.jackson.databind.jsontype">NamedType</A>></CODE></FONT></TD> 207<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html#_subtypes">_subtypes</A></B></CODE> 208 209<BR> 210 Set of subtypes to register, if any.</TD> 211</TR> 212<TR BGCOLOR="white" CLASS="TableRowColor"> 213<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 214<CODE>protected <A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleValueInstantiators.html" title="class in com.fasterxml.jackson.databind.module">SimpleValueInstantiators</A></CODE></FONT></TD> 215<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html#_valueInstantiators">_valueInstantiators</A></B></CODE> 216 217<BR> 218 Lazily-constructed resolver used for storing mappings from 219 abstract classes to more specific implementing classes 220 (which may be abstract or concrete)</TD> 221</TR> 222<TR BGCOLOR="white" CLASS="TableRowColor"> 223<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 224<CODE>protected com.fasterxml.jackson.core.Version</CODE></FONT></TD> 225<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html#_version">_version</A></B></CODE> 226 227<BR> 228 </TD> 229</TR> 230</TABLE> 231 232<!-- ======== CONSTRUCTOR SUMMARY ======== --> 233 234<A NAME="constructor_summary"><!-- --></A> 235<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 236<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 237<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 238<B>Constructor Summary</B></FONT></TH> 239</TR> 240<TR BGCOLOR="white" CLASS="TableRowColor"> 241<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html#SimpleModule()">SimpleModule</A></B>()</CODE> 242 243<BR> 244 Constructors that should only be used for non-reusable 245 convenience modules used by app code: "real" modules should 246 use actual name and version number information.</TD> 247</TR> 248<TR BGCOLOR="white" CLASS="TableRowColor"> 249<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html#SimpleModule(java.lang.String)">SimpleModule</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> name)</CODE> 250 251<BR> 252 Convenience constructor that will default version to 253 <CODE>Version.unknownVersion()</CODE>.</TD> 254</TR> 255<TR BGCOLOR="white" CLASS="TableRowColor"> 256<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html#SimpleModule(java.lang.String, com.fasterxml.jackson.core.Version)">SimpleModule</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> name, 257 com.fasterxml.jackson.core.Version version)</CODE> 258 259<BR> 260 Constructor to use for actual reusable modules.</TD> 261</TR> 262<TR BGCOLOR="white" CLASS="TableRowColor"> 263<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html#SimpleModule(com.fasterxml.jackson.core.Version)">SimpleModule</A></B>(com.fasterxml.jackson.core.Version version)</CODE> 264 265<BR> 266 Convenience constructor that will use specified Version, 267 including name from <CODE>Version.getArtifactId()</CODE></TD> 268</TR> 269</TABLE> 270 271<!-- ========== METHOD SUMMARY =========== --> 272 273<A NAME="method_summary"><!-- --></A> 274<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 275<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 276<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 277<B>Method Summary</B></FONT></TH> 278</TR> 279<TR BGCOLOR="white" CLASS="TableRowColor"> 280<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 281<CODE> 282<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 283<TR ALIGN="right" VALIGN=""> 284<TD NOWRAP><FONT SIZE="-1"> 285<CODE><T> <A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html" title="class in com.fasterxml.jackson.databind.module">SimpleModule</A></CODE></FONT></TD> 286</TR> 287</TABLE> 288</CODE></FONT></TD> 289<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html#addAbstractTypeMapping(java.lang.Class, java.lang.Class)">addAbstractTypeMapping</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><T> superType, 290 <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><? extends T> subType)</CODE> 291 292<BR> 293 Lazily-constructed resolver used for storing mappings from 294 abstract classes to more specific implementing classes 295 (which may be abstract or concrete)</TD> 296</TR> 297<TR BGCOLOR="white" CLASS="TableRowColor"> 298<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 299<CODE> 300<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 301<TR ALIGN="right" VALIGN=""> 302<TD NOWRAP><FONT SIZE="-1"> 303<CODE><T> <A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html" title="class in com.fasterxml.jackson.databind.module">SimpleModule</A></CODE></FONT></TD> 304</TR> 305</TABLE> 306</CODE></FONT></TD> 307<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html#addDeserializer(java.lang.Class, com.fasterxml.jackson.databind.JsonDeserializer)">addDeserializer</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><T> type, 308 <A HREF="../../../../../com/fasterxml/jackson/databind/JsonDeserializer.html" title="class in com.fasterxml.jackson.databind">JsonDeserializer</A><? extends T> deser)</CODE> 309 310<BR> 311 </TD> 312</TR> 313<TR BGCOLOR="white" CLASS="TableRowColor"> 314<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 315<CODE> <A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html" title="class in com.fasterxml.jackson.databind.module">SimpleModule</A></CODE></FONT></TD> 316<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html#addKeyDeserializer(java.lang.Class, com.fasterxml.jackson.databind.KeyDeserializer)">addKeyDeserializer</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> type, 317 <A HREF="../../../../../com/fasterxml/jackson/databind/KeyDeserializer.html" title="class in com.fasterxml.jackson.databind">KeyDeserializer</A> deser)</CODE> 318 319<BR> 320 </TD> 321</TR> 322<TR BGCOLOR="white" CLASS="TableRowColor"> 323<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 324<CODE> 325<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 326<TR ALIGN="right" VALIGN=""> 327<TD NOWRAP><FONT SIZE="-1"> 328<CODE><T> <A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html" title="class in com.fasterxml.jackson.databind.module">SimpleModule</A></CODE></FONT></TD> 329</TR> 330</TABLE> 331</CODE></FONT></TD> 332<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html#addKeySerializer(java.lang.Class, com.fasterxml.jackson.databind.JsonSerializer)">addKeySerializer</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><? extends T> type, 333 <A HREF="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind">JsonSerializer</A><T> ser)</CODE> 334 335<BR> 336 </TD> 337</TR> 338<TR BGCOLOR="white" CLASS="TableRowColor"> 339<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 340<CODE> 341<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 342<TR ALIGN="right" VALIGN=""> 343<TD NOWRAP><FONT SIZE="-1"> 344<CODE><T> <A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html" title="class in com.fasterxml.jackson.databind.module">SimpleModule</A></CODE></FONT></TD> 345</TR> 346</TABLE> 347</CODE></FONT></TD> 348<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html#addSerializer(java.lang.Class, com.fasterxml.jackson.databind.JsonSerializer)">addSerializer</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><? extends T> type, 349 <A HREF="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind">JsonSerializer</A><T> ser)</CODE> 350 351<BR> 352 </TD> 353</TR> 354<TR BGCOLOR="white" CLASS="TableRowColor"> 355<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 356<CODE> <A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html" title="class in com.fasterxml.jackson.databind.module">SimpleModule</A></CODE></FONT></TD> 357<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html#addSerializer(com.fasterxml.jackson.databind.JsonSerializer)">addSerializer</A></B>(<A HREF="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind">JsonSerializer</A><?> ser)</CODE> 358 359<BR> 360 </TD> 361</TR> 362<TR BGCOLOR="white" CLASS="TableRowColor"> 363<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 364<CODE> <A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html" title="class in com.fasterxml.jackson.databind.module">SimpleModule</A></CODE></FONT></TD> 365<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html#addValueInstantiator(java.lang.Class, com.fasterxml.jackson.databind.deser.ValueInstantiator)">addValueInstantiator</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> beanType, 366 <A HREF="../../../../../com/fasterxml/jackson/databind/deser/ValueInstantiator.html" title="class in com.fasterxml.jackson.databind.deser">ValueInstantiator</A> inst)</CODE> 367 368<BR> 369 Method for registering <A HREF="../../../../../com/fasterxml/jackson/databind/deser/ValueInstantiator.html" title="class in com.fasterxml.jackson.databind.deser"><CODE>ValueInstantiator</CODE></A> to use when deserializing 370 instances of type <code>beanType</code>.</TD> 371</TR> 372<TR BGCOLOR="white" CLASS="TableRowColor"> 373<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 374<CODE> <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></CODE></FONT></TD> 375<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html#getModuleName()">getModuleName</A></B>()</CODE> 376 377<BR> 378 Method that returns identifier for module; this can be used by Jackson 379 for informational purposes, as well as in associating extensions with 380 module that provides them.</TD> 381</TR> 382<TR BGCOLOR="white" CLASS="TableRowColor"> 383<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 384<CODE> <A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html" title="class in com.fasterxml.jackson.databind.module">SimpleModule</A></CODE></FONT></TD> 385<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html#registerSubtypes(java.lang.Class...)">registerSubtypes</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?>... subtypes)</CODE> 386 387<BR> 388 Method for adding set of subtypes to be registered with 389 <A HREF="../../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind"><CODE>ObjectMapper</CODE></A> 390 this is an alternative to using annotations in super type to indicate subtypes.</TD> 391</TR> 392<TR BGCOLOR="white" CLASS="TableRowColor"> 393<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 394<CODE> <A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html" title="class in com.fasterxml.jackson.databind.module">SimpleModule</A></CODE></FONT></TD> 395<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html#registerSubtypes(com.fasterxml.jackson.databind.jsontype.NamedType...)">registerSubtypes</A></B>(<A HREF="../../../../../com/fasterxml/jackson/databind/jsontype/NamedType.html" title="class in com.fasterxml.jackson.databind.jsontype">NamedType</A>... subtypes)</CODE> 396 397<BR> 398 Method for adding set of subtypes (along with type name to use) to be registered with 399 <A HREF="../../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind"><CODE>ObjectMapper</CODE></A> 400 this is an alternative to using annotations in super type to indicate subtypes.</TD> 401</TR> 402<TR BGCOLOR="white" CLASS="TableRowColor"> 403<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 404<CODE> void</CODE></FONT></TD> 405<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html#setAbstractTypes(com.fasterxml.jackson.databind.module.SimpleAbstractTypeResolver)">setAbstractTypes</A></B>(<A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleAbstractTypeResolver.html" title="class in com.fasterxml.jackson.databind.module">SimpleAbstractTypeResolver</A> atr)</CODE> 406 407<BR> 408 Resets currently configured abstract type mappings</TD> 409</TR> 410<TR BGCOLOR="white" CLASS="TableRowColor"> 411<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 412<CODE> void</CODE></FONT></TD> 413<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html#setDeserializers(com.fasterxml.jackson.databind.module.SimpleDeserializers)">setDeserializers</A></B>(<A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleDeserializers.html" title="class in com.fasterxml.jackson.databind.module">SimpleDeserializers</A> d)</CODE> 414 415<BR> 416 Resets all currently configured deserializers.</TD> 417</TR> 418<TR BGCOLOR="white" CLASS="TableRowColor"> 419<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 420<CODE> void</CODE></FONT></TD> 421<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html#setKeyDeserializers(com.fasterxml.jackson.databind.module.SimpleKeyDeserializers)">setKeyDeserializers</A></B>(<A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleKeyDeserializers.html" title="class in com.fasterxml.jackson.databind.module">SimpleKeyDeserializers</A> kd)</CODE> 422 423<BR> 424 Resets all currently configured key deserializers.</TD> 425</TR> 426<TR BGCOLOR="white" CLASS="TableRowColor"> 427<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 428<CODE> void</CODE></FONT></TD> 429<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html#setKeySerializers(com.fasterxml.jackson.databind.module.SimpleSerializers)">setKeySerializers</A></B>(<A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleSerializers.html" title="class in com.fasterxml.jackson.databind.module">SimpleSerializers</A> ks)</CODE> 430 431<BR> 432 Resets all currently configured key serializers.</TD> 433</TR> 434<TR BGCOLOR="white" CLASS="TableRowColor"> 435<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 436<CODE> <A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html" title="class in com.fasterxml.jackson.databind.module">SimpleModule</A></CODE></FONT></TD> 437<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html#setMixInAnnotation(java.lang.Class, java.lang.Class)">setMixInAnnotation</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> targetType, 438 <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><?> mixinClass)</CODE> 439 440<BR> 441 Method for specifying that annotations define by <code>mixinClass</code> 442 should be "mixed in" with annotations that <code>targetType</code> 443 has (as if they were directly included on it!).</TD> 444</TR> 445<TR BGCOLOR="white" CLASS="TableRowColor"> 446<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 447<CODE> void</CODE></FONT></TD> 448<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html#setSerializers(com.fasterxml.jackson.databind.module.SimpleSerializers)">setSerializers</A></B>(<A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleSerializers.html" title="class in com.fasterxml.jackson.databind.module">SimpleSerializers</A> s)</CODE> 449 450<BR> 451 Resets all currently configured serializers.</TD> 452</TR> 453<TR BGCOLOR="white" CLASS="TableRowColor"> 454<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 455<CODE> void</CODE></FONT></TD> 456<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html#setupModule(com.fasterxml.jackson.databind.Module.SetupContext)">setupModule</A></B>(<A HREF="../../../../../com/fasterxml/jackson/databind/Module.SetupContext.html" title="interface in com.fasterxml.jackson.databind">Module.SetupContext</A> context)</CODE> 457 458<BR> 459 Method called by <A HREF="../../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind"><CODE>ObjectMapper</CODE></A> when module is registered.</TD> 460</TR> 461<TR BGCOLOR="white" CLASS="TableRowColor"> 462<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 463<CODE> void</CODE></FONT></TD> 464<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html#setValueInstantiators(com.fasterxml.jackson.databind.module.SimpleValueInstantiators)">setValueInstantiators</A></B>(<A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleValueInstantiators.html" title="class in com.fasterxml.jackson.databind.module">SimpleValueInstantiators</A> svi)</CODE> 465 466<BR> 467 Resets all currently configured value instantiators</TD> 468</TR> 469<TR BGCOLOR="white" CLASS="TableRowColor"> 470<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 471<CODE> com.fasterxml.jackson.core.Version</CODE></FONT></TD> 472<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html#version()">version</A></B>()</CODE> 473 474<BR> 475 Method that returns version of this module.</TD> 476</TR> 477</TABLE> 478 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> 479<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 480<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 481<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH> 482</TR> 483<TR BGCOLOR="white" CLASS="TableRowColor"> 484<TD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD> 485</TR> 486</TABLE> 487 488<P> 489 490<!-- ============ FIELD DETAIL =========== --> 491 492<A NAME="field_detail"><!-- --></A> 493<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 494<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 495<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 496<B>Field Detail</B></FONT></TH> 497</TR> 498</TABLE> 499 500<A NAME="_name"><!-- --></A><H3> 501_name</H3> 502<PRE> 503protected final <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> <B>_name</B></PRE> 504<DL> 505<DL> 506</DL> 507</DL> 508<HR> 509 510<A NAME="_version"><!-- --></A><H3> 511_version</H3> 512<PRE> 513protected final com.fasterxml.jackson.core.Version <B>_version</B></PRE> 514<DL> 515<DL> 516</DL> 517</DL> 518<HR> 519 520<A NAME="_serializers"><!-- --></A><H3> 521_serializers</H3> 522<PRE> 523protected <A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleSerializers.html" title="class in com.fasterxml.jackson.databind.module">SimpleSerializers</A> <B>_serializers</B></PRE> 524<DL> 525<DL> 526</DL> 527</DL> 528<HR> 529 530<A NAME="_deserializers"><!-- --></A><H3> 531_deserializers</H3> 532<PRE> 533protected <A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleDeserializers.html" title="class in com.fasterxml.jackson.databind.module">SimpleDeserializers</A> <B>_deserializers</B></PRE> 534<DL> 535<DL> 536</DL> 537</DL> 538<HR> 539 540<A NAME="_keySerializers"><!-- --></A><H3> 541_keySerializers</H3> 542<PRE> 543protected <A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleSerializers.html" title="class in com.fasterxml.jackson.databind.module">SimpleSerializers</A> <B>_keySerializers</B></PRE> 544<DL> 545<DL> 546</DL> 547</DL> 548<HR> 549 550<A NAME="_keyDeserializers"><!-- --></A><H3> 551_keyDeserializers</H3> 552<PRE> 553protected <A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleKeyDeserializers.html" title="class in com.fasterxml.jackson.databind.module">SimpleKeyDeserializers</A> <B>_keyDeserializers</B></PRE> 554<DL> 555<DL> 556</DL> 557</DL> 558<HR> 559 560<A NAME="_abstractTypes"><!-- --></A><H3> 561_abstractTypes</H3> 562<PRE> 563protected <A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleAbstractTypeResolver.html" title="class in com.fasterxml.jackson.databind.module">SimpleAbstractTypeResolver</A> <B>_abstractTypes</B></PRE> 564<DL> 565<DD>Lazily-constructed resolver used for storing mappings from 566 abstract classes to more specific implementing classes 567 (which may be abstract or concrete) 568<P> 569<DL> 570</DL> 571</DL> 572<HR> 573 574<A NAME="_valueInstantiators"><!-- --></A><H3> 575_valueInstantiators</H3> 576<PRE> 577protected <A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleValueInstantiators.html" title="class in com.fasterxml.jackson.databind.module">SimpleValueInstantiators</A> <B>_valueInstantiators</B></PRE> 578<DL> 579<DD>Lazily-constructed resolver used for storing mappings from 580 abstract classes to more specific implementing classes 581 (which may be abstract or concrete) 582<P> 583<DL> 584</DL> 585</DL> 586<HR> 587 588<A NAME="_mixins"><!-- --></A><H3> 589_mixins</H3> 590<PRE> 591protected <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/HashMap.html?is-external=true" title="class or interface in java.util">HashMap</A><<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?>,<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><?>> <B>_mixins</B></PRE> 592<DL> 593<DD>Lazily-constructed map that contains mix-in definitions, indexed 594 by target class, value being mix-in to apply. 595<P> 596<DL> 597</DL> 598</DL> 599<HR> 600 601<A NAME="_subtypes"><!-- --></A><H3> 602_subtypes</H3> 603<PRE> 604protected <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/LinkedHashSet.html?is-external=true" title="class or interface in java.util">LinkedHashSet</A><<A HREF="../../../../../com/fasterxml/jackson/databind/jsontype/NamedType.html" title="class in com.fasterxml.jackson.databind.jsontype">NamedType</A>> <B>_subtypes</B></PRE> 605<DL> 606<DD>Set of subtypes to register, if any. 607<P> 608<DL> 609</DL> 610</DL> 611 612<!-- ========= CONSTRUCTOR DETAIL ======== --> 613 614<A NAME="constructor_detail"><!-- --></A> 615<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 616<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 617<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 618<B>Constructor Detail</B></FONT></TH> 619</TR> 620</TABLE> 621 622<A NAME="SimpleModule()"><!-- --></A><H3> 623SimpleModule</H3> 624<PRE> 625public <B>SimpleModule</B>()</PRE> 626<DL> 627<DD>Constructors that should only be used for non-reusable 628 convenience modules used by app code: "real" modules should 629 use actual name and version number information. 630<P> 631</DL> 632<HR> 633 634<A NAME="SimpleModule(java.lang.String)"><!-- --></A><H3> 635SimpleModule</H3> 636<PRE> 637public <B>SimpleModule</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> name)</PRE> 638<DL> 639<DD>Convenience constructor that will default version to 640 <CODE>Version.unknownVersion()</CODE>. 641<P> 642</DL> 643<HR> 644 645<A NAME="SimpleModule(com.fasterxml.jackson.core.Version)"><!-- --></A><H3> 646SimpleModule</H3> 647<PRE> 648public <B>SimpleModule</B>(com.fasterxml.jackson.core.Version version)</PRE> 649<DL> 650<DD>Convenience constructor that will use specified Version, 651 including name from <CODE>Version.getArtifactId()</CODE> 652<P> 653</DL> 654<HR> 655 656<A NAME="SimpleModule(java.lang.String, com.fasterxml.jackson.core.Version)"><!-- --></A><H3> 657SimpleModule</H3> 658<PRE> 659public <B>SimpleModule</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> name, 660 com.fasterxml.jackson.core.Version version)</PRE> 661<DL> 662<DD>Constructor to use for actual reusable modules. 663 ObjectMapper may use name as identifier to notice attempts 664 for multiple registrations of the same module (although it 665 does not have to). 666<P> 667<DL> 668<DT><B>Parameters:</B><DD><CODE>name</CODE> - Unique name of the module<DD><CODE>version</CODE> - Version of the module</DL> 669</DL> 670 671<!-- ============ METHOD DETAIL ========== --> 672 673<A NAME="method_detail"><!-- --></A> 674<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 675<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 676<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 677<B>Method Detail</B></FONT></TH> 678</TR> 679</TABLE> 680 681<A NAME="setSerializers(com.fasterxml.jackson.databind.module.SimpleSerializers)"><!-- --></A><H3> 682setSerializers</H3> 683<PRE> 684public void <B>setSerializers</B>(<A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleSerializers.html" title="class in com.fasterxml.jackson.databind.module">SimpleSerializers</A> s)</PRE> 685<DL> 686<DD>Resets all currently configured serializers. 687<P> 688<DD><DL> 689</DL> 690</DD> 691</DL> 692<HR> 693 694<A NAME="setDeserializers(com.fasterxml.jackson.databind.module.SimpleDeserializers)"><!-- --></A><H3> 695setDeserializers</H3> 696<PRE> 697public void <B>setDeserializers</B>(<A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleDeserializers.html" title="class in com.fasterxml.jackson.databind.module">SimpleDeserializers</A> d)</PRE> 698<DL> 699<DD>Resets all currently configured deserializers. 700<P> 701<DD><DL> 702</DL> 703</DD> 704</DL> 705<HR> 706 707<A NAME="setKeySerializers(com.fasterxml.jackson.databind.module.SimpleSerializers)"><!-- --></A><H3> 708setKeySerializers</H3> 709<PRE> 710public void <B>setKeySerializers</B>(<A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleSerializers.html" title="class in com.fasterxml.jackson.databind.module">SimpleSerializers</A> ks)</PRE> 711<DL> 712<DD>Resets all currently configured key serializers. 713<P> 714<DD><DL> 715</DL> 716</DD> 717</DL> 718<HR> 719 720<A NAME="setKeyDeserializers(com.fasterxml.jackson.databind.module.SimpleKeyDeserializers)"><!-- --></A><H3> 721setKeyDeserializers</H3> 722<PRE> 723public void <B>setKeyDeserializers</B>(<A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleKeyDeserializers.html" title="class in com.fasterxml.jackson.databind.module">SimpleKeyDeserializers</A> kd)</PRE> 724<DL> 725<DD>Resets all currently configured key deserializers. 726<P> 727<DD><DL> 728</DL> 729</DD> 730</DL> 731<HR> 732 733<A NAME="setAbstractTypes(com.fasterxml.jackson.databind.module.SimpleAbstractTypeResolver)"><!-- --></A><H3> 734setAbstractTypes</H3> 735<PRE> 736public void <B>setAbstractTypes</B>(<A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleAbstractTypeResolver.html" title="class in com.fasterxml.jackson.databind.module">SimpleAbstractTypeResolver</A> atr)</PRE> 737<DL> 738<DD>Resets currently configured abstract type mappings 739<P> 740<DD><DL> 741</DL> 742</DD> 743</DL> 744<HR> 745 746<A NAME="setValueInstantiators(com.fasterxml.jackson.databind.module.SimpleValueInstantiators)"><!-- --></A><H3> 747setValueInstantiators</H3> 748<PRE> 749public void <B>setValueInstantiators</B>(<A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleValueInstantiators.html" title="class in com.fasterxml.jackson.databind.module">SimpleValueInstantiators</A> svi)</PRE> 750<DL> 751<DD>Resets all currently configured value instantiators 752<P> 753<DD><DL> 754</DL> 755</DD> 756</DL> 757<HR> 758 759<A NAME="addSerializer(com.fasterxml.jackson.databind.JsonSerializer)"><!-- --></A><H3> 760addSerializer</H3> 761<PRE> 762public <A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html" title="class in com.fasterxml.jackson.databind.module">SimpleModule</A> <B>addSerializer</B>(<A HREF="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind">JsonSerializer</A><?> ser)</PRE> 763<DL> 764<DD><DL> 765</DL> 766</DD> 767</DL> 768<HR> 769 770<A NAME="addSerializer(java.lang.Class, com.fasterxml.jackson.databind.JsonSerializer)"><!-- --></A><H3> 771addSerializer</H3> 772<PRE> 773public <T> <A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html" title="class in com.fasterxml.jackson.databind.module">SimpleModule</A> <B>addSerializer</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><? extends T> type, 774 <A HREF="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind">JsonSerializer</A><T> ser)</PRE> 775<DL> 776<DD><DL> 777</DL> 778</DD> 779</DL> 780<HR> 781 782<A NAME="addKeySerializer(java.lang.Class, com.fasterxml.jackson.databind.JsonSerializer)"><!-- --></A><H3> 783addKeySerializer</H3> 784<PRE> 785public <T> <A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html" title="class in com.fasterxml.jackson.databind.module">SimpleModule</A> <B>addKeySerializer</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><? extends T> type, 786 <A HREF="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind">JsonSerializer</A><T> ser)</PRE> 787<DL> 788<DD><DL> 789</DL> 790</DD> 791</DL> 792<HR> 793 794<A NAME="addDeserializer(java.lang.Class, com.fasterxml.jackson.databind.JsonDeserializer)"><!-- --></A><H3> 795addDeserializer</H3> 796<PRE> 797public <T> <A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html" title="class in com.fasterxml.jackson.databind.module">SimpleModule</A> <B>addDeserializer</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><T> type, 798 <A HREF="../../../../../com/fasterxml/jackson/databind/JsonDeserializer.html" title="class in com.fasterxml.jackson.databind">JsonDeserializer</A><? extends T> deser)</PRE> 799<DL> 800<DD><DL> 801</DL> 802</DD> 803</DL> 804<HR> 805 806<A NAME="addKeyDeserializer(java.lang.Class, com.fasterxml.jackson.databind.KeyDeserializer)"><!-- --></A><H3> 807addKeyDeserializer</H3> 808<PRE> 809public <A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html" title="class in com.fasterxml.jackson.databind.module">SimpleModule</A> <B>addKeyDeserializer</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> type, 810 <A HREF="../../../../../com/fasterxml/jackson/databind/KeyDeserializer.html" title="class in com.fasterxml.jackson.databind">KeyDeserializer</A> deser)</PRE> 811<DL> 812<DD><DL> 813</DL> 814</DD> 815</DL> 816<HR> 817 818<A NAME="addAbstractTypeMapping(java.lang.Class, java.lang.Class)"><!-- --></A><H3> 819addAbstractTypeMapping</H3> 820<PRE> 821public <T> <A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html" title="class in com.fasterxml.jackson.databind.module">SimpleModule</A> <B>addAbstractTypeMapping</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><T> superType, 822 <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><? extends T> subType)</PRE> 823<DL> 824<DD>Lazily-constructed resolver used for storing mappings from 825 abstract classes to more specific implementing classes 826 (which may be abstract or concrete) 827<P> 828<DD><DL> 829</DL> 830</DD> 831</DL> 832<HR> 833 834<A NAME="addValueInstantiator(java.lang.Class, com.fasterxml.jackson.databind.deser.ValueInstantiator)"><!-- --></A><H3> 835addValueInstantiator</H3> 836<PRE> 837public <A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html" title="class in com.fasterxml.jackson.databind.module">SimpleModule</A> <B>addValueInstantiator</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> beanType, 838 <A HREF="../../../../../com/fasterxml/jackson/databind/deser/ValueInstantiator.html" title="class in com.fasterxml.jackson.databind.deser">ValueInstantiator</A> inst)</PRE> 839<DL> 840<DD>Method for registering <A HREF="../../../../../com/fasterxml/jackson/databind/deser/ValueInstantiator.html" title="class in com.fasterxml.jackson.databind.deser"><CODE>ValueInstantiator</CODE></A> to use when deserializing 841 instances of type <code>beanType</code>. 842<p> 843 Instantiator is 844 registered when module is registered for <code>ObjectMapper</code>. 845<P> 846<DD><DL> 847</DL> 848</DD> 849</DL> 850<HR> 851 852<A NAME="registerSubtypes(java.lang.Class...)"><!-- --></A><H3> 853registerSubtypes</H3> 854<PRE> 855public <A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html" title="class in com.fasterxml.jackson.databind.module">SimpleModule</A> <B>registerSubtypes</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?>... subtypes)</PRE> 856<DL> 857<DD>Method for adding set of subtypes to be registered with 858 <A HREF="../../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind"><CODE>ObjectMapper</CODE></A> 859 this is an alternative to using annotations in super type to indicate subtypes. 860<P> 861<DD><DL> 862</DL> 863</DD> 864</DL> 865<HR> 866 867<A NAME="registerSubtypes(com.fasterxml.jackson.databind.jsontype.NamedType...)"><!-- --></A><H3> 868registerSubtypes</H3> 869<PRE> 870public <A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html" title="class in com.fasterxml.jackson.databind.module">SimpleModule</A> <B>registerSubtypes</B>(<A HREF="../../../../../com/fasterxml/jackson/databind/jsontype/NamedType.html" title="class in com.fasterxml.jackson.databind.jsontype">NamedType</A>... subtypes)</PRE> 871<DL> 872<DD>Method for adding set of subtypes (along with type name to use) to be registered with 873 <A HREF="../../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind"><CODE>ObjectMapper</CODE></A> 874 this is an alternative to using annotations in super type to indicate subtypes. 875<P> 876<DD><DL> 877</DL> 878</DD> 879</DL> 880<HR> 881 882<A NAME="setMixInAnnotation(java.lang.Class, java.lang.Class)"><!-- --></A><H3> 883setMixInAnnotation</H3> 884<PRE> 885public <A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleModule.html" title="class in com.fasterxml.jackson.databind.module">SimpleModule</A> <B>setMixInAnnotation</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</A><?> targetType, 886 <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><?> mixinClass)</PRE> 887<DL> 888<DD>Method for specifying that annotations define by <code>mixinClass</code> 889 should be "mixed in" with annotations that <code>targetType</code> 890 has (as if they were directly included on it!). 891<p> 892 Mix-in annotations are 893 registered when module is registered for <code>ObjectMapper</code>. 894<P> 895<DD><DL> 896</DL> 897</DD> 898</DL> 899<HR> 900 901<A NAME="getModuleName()"><!-- --></A><H3> 902getModuleName</H3> 903<PRE> 904public <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> <B>getModuleName</B>()</PRE> 905<DL> 906<DD><B>Description copied from class: <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/Module.html#getModuleName()">Module</A></CODE></B></DD> 907<DD>Method that returns identifier for module; this can be used by Jackson 908 for informational purposes, as well as in associating extensions with 909 module that provides them. 910<P> 911<DD><DL> 912<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/Module.html#getModuleName()">getModuleName</A></CODE> in class <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/Module.html" title="class in com.fasterxml.jackson.databind">Module</A></CODE></DL> 913</DD> 914<DD><DL> 915</DL> 916</DD> 917</DL> 918<HR> 919 920<A NAME="setupModule(com.fasterxml.jackson.databind.Module.SetupContext)"><!-- --></A><H3> 921setupModule</H3> 922<PRE> 923public void <B>setupModule</B>(<A HREF="../../../../../com/fasterxml/jackson/databind/Module.SetupContext.html" title="interface in com.fasterxml.jackson.databind">Module.SetupContext</A> context)</PRE> 924<DL> 925<DD><B>Description copied from class: <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/Module.html#setupModule(com.fasterxml.jackson.databind.Module.SetupContext)">Module</A></CODE></B></DD> 926<DD>Method called by <A HREF="../../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind"><CODE>ObjectMapper</CODE></A> when module is registered. 927 It is called to let module register functionality it provides, 928 using callback methods passed-in context object exposes. 929<P> 930<DD><DL> 931<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/Module.html#setupModule(com.fasterxml.jackson.databind.Module.SetupContext)">setupModule</A></CODE> in class <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/Module.html" title="class in com.fasterxml.jackson.databind">Module</A></CODE></DL> 932</DD> 933<DD><DL> 934</DL> 935</DD> 936</DL> 937<HR> 938 939<A NAME="version()"><!-- --></A><H3> 940version</H3> 941<PRE> 942public com.fasterxml.jackson.core.Version <B>version</B>()</PRE> 943<DL> 944<DD><B>Description copied from class: <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/Module.html#version()">Module</A></CODE></B></DD> 945<DD>Method that returns version of this module. Can be used by Jackson for 946 informational purposes. 947<P> 948<DD><DL> 949<DT><B>Specified by:</B><DD><CODE>version</CODE> in interface <CODE>com.fasterxml.jackson.core.Versioned</CODE><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/Module.html#version()">version</A></CODE> in class <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/Module.html" title="class in com.fasterxml.jackson.databind">Module</A></CODE></DL> 950</DD> 951<DD><DL> 952</DL> 953</DD> 954</DL> 955<!-- ========= END OF CLASS DATA ========= --> 956<HR> 957 958 959<!-- ======= START OF BOTTOM NAVBAR ====== --> 960<A NAME="navbar_bottom"><!-- --></A> 961<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> 962<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 963<TR> 964<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 965<A NAME="navbar_bottom_firstrow"><!-- --></A> 966<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 967 <TR ALIGN="center" VALIGN="top"> 968 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 969 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 970 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 971 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/SimpleModule.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> 972 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 973 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 974 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 975 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 976 </TR> 977</TABLE> 978</TD> 979<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 980</EM> 981</TD> 982</TR> 983 984<TR> 985<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 986 <A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleKeyDeserializers.html" title="class in com.fasterxml.jackson.databind.module"><B>PREV CLASS</B></A> 987 <A HREF="../../../../../com/fasterxml/jackson/databind/module/SimpleSerializers.html" title="class in com.fasterxml.jackson.databind.module"><B>NEXT CLASS</B></A></FONT></TD> 988<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 989 <A HREF="../../../../../index.html?com/fasterxml/jackson/databind/module/SimpleModule.html" target="_top"><B>FRAMES</B></A> 990 <A HREF="SimpleModule.html" target="_top"><B>NO FRAMES</B></A> 991 <SCRIPT type="text/javascript"> 992 <!-- 993 if(window==top) { 994 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); 995 } 996 //--> 997</SCRIPT> 998<NOSCRIPT> 999 <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> 1000</NOSCRIPT> 1001 1002 1003</FONT></TD> 1004</TR> 1005<TR> 1006<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 1007 SUMMARY: <A HREF="#nested_classes_inherited_from_class_com.fasterxml.jackson.databind.Module">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> 1008<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 1009DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> 1010</TR> 1011</TABLE> 1012<A NAME="skip-navbar_bottom"></A> 1013<!-- ======== END OF BOTTOM NAVBAR ======= --> 1014 1015<HR> 1016Copyright © 2012 <a href="http://fasterxml.com">fasterxml.com</a>. All Rights Reserved. 1017</BODY> 1018</HTML> 1019