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_35) on Tue Oct 09 17:08:19 PDT 2012 --> 6<META http-equiv="Content-Type" content="text/html; charset=UTF-8"> 7<TITLE> 8BeanSerializer (jackson-databind 2.1.0 API) 9</TITLE> 10 11<META NAME="date" CONTENT="2012-10-09"> 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="BeanSerializer (jackson-databind 2.1.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/BeanSerializer.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/ser/BeanPropertyWriter.html" title="class in com.fasterxml.jackson.databind.ser"><B>PREV CLASS</B></A> 60 <A HREF="../../../../../com/fasterxml/jackson/databind/ser/BeanSerializerBuilder.html" title="class in com.fasterxml.jackson.databind.ser"><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/ser/BeanSerializer.html" target="_top"><B>FRAMES</B></A> 63 <A HREF="BeanSerializer.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.JsonSerializer">NESTED</A> | <A HREF="#fields_inherited_from_class_com.fasterxml.jackson.databind.ser.std.BeanSerializerBase">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: FIELD | <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.ser</FONT> 93<BR> 94Class BeanSerializer</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/JsonSerializer.html" title="class in com.fasterxml.jackson.databind">com.fasterxml.jackson.databind.JsonSerializer</A><T> 98 <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html" title="class in com.fasterxml.jackson.databind.ser.std">com.fasterxml.jackson.databind.ser.std.StdSerializer</A><<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>> 99 <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/BeanSerializerBase.html" title="class in com.fasterxml.jackson.databind.ser.std">com.fasterxml.jackson.databind.ser.std.BeanSerializerBase</A> 100 <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>com.fasterxml.jackson.databind.ser.BeanSerializer</B> 101</PRE> 102<DL> 103<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../../com/fasterxml/jackson/databind/jsonFormatVisitors/JsonFormatVisitable.html" title="interface in com.fasterxml.jackson.databind.jsonFormatVisitors">JsonFormatVisitable</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/jsonschema/SchemaAware.html" title="interface in com.fasterxml.jackson.databind.jsonschema">SchemaAware</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/ser/ContextualSerializer.html" title="interface in com.fasterxml.jackson.databind.ser">ContextualSerializer</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/ser/ResolvableSerializer.html" title="interface in com.fasterxml.jackson.databind.ser">ResolvableSerializer</A></DD> 104</DL> 105<HR> 106<DL> 107<DT><PRE>public class <B>BeanSerializer</B><DT>extends <A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/BeanSerializerBase.html" title="class in com.fasterxml.jackson.databind.ser.std">BeanSerializerBase</A></DL> 108</PRE> 109 110<P> 111Serializer class that can serialize Java objects that map 112 to JSON Object output. Internally handling is mostly dealt with 113 by a sequence of <A HREF="../../../../../com/fasterxml/jackson/databind/ser/BeanPropertyWriter.html" title="class in com.fasterxml.jackson.databind.ser"><CODE>BeanPropertyWriter</CODE></A>s that will handle 114 access value to serialize and call appropriate serializers to 115 write out JSON. 116<p> 117 Implementation note: we will post-process resulting serializer, 118 to figure out actual serializers for final types. This must be 119 done from <A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/BeanSerializerBase.html#resolve(com.fasterxml.jackson.databind.SerializerProvider)"><CODE>BeanSerializerBase.resolve(com.fasterxml.jackson.databind.SerializerProvider)</CODE></A> method, and NOT from constructor; 120 otherwise we could end up with an infinite loop. 121<P> 122 123<P> 124<HR> 125 126<P> 127<!-- ======== NESTED CLASS SUMMARY ======== --> 128 129<A NAME="nested_class_summary"><!-- --></A> 130<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 131<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 132<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 133<B>Nested Class Summary</B></FONT></TH> 134</TR> 135</TABLE> 136 <A NAME="nested_classes_inherited_from_class_com.fasterxml.jackson.databind.JsonSerializer"><!-- --></A> 137<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 138<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 139<TH ALIGN="left"><B>Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.<A HREF="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind">JsonSerializer</A></B></TH> 140</TR> 141<TR BGCOLOR="white" CLASS="TableRowColor"> 142<TD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonSerializer.None.html" title="class in com.fasterxml.jackson.databind">JsonSerializer.None</A></CODE></TD> 143</TR> 144</TABLE> 145 146<!-- =========== FIELD SUMMARY =========== --> 147 148<A NAME="field_summary"><!-- --></A> 149<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 150<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 151<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 152<B>Field Summary</B></FONT></TH> 153</TR> 154</TABLE> 155 <A NAME="fields_inherited_from_class_com.fasterxml.jackson.databind.ser.std.BeanSerializerBase"><!-- --></A> 156<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 157<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 158<TH ALIGN="left"><B>Fields inherited from class com.fasterxml.jackson.databind.ser.std.<A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/BeanSerializerBase.html" title="class in com.fasterxml.jackson.databind.ser.std">BeanSerializerBase</A></B></TH> 159</TR> 160<TR BGCOLOR="white" CLASS="TableRowColor"> 161<TD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/BeanSerializerBase.html#_anyGetterWriter">_anyGetterWriter</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/BeanSerializerBase.html#_filteredProps">_filteredProps</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/BeanSerializerBase.html#_objectIdWriter">_objectIdWriter</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/BeanSerializerBase.html#_propertyFilterId">_propertyFilterId</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/BeanSerializerBase.html#_props">_props</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/BeanSerializerBase.html#_serializationShape">_serializationShape</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/BeanSerializerBase.html#_typeId">_typeId</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/BeanSerializerBase.html#NO_PROPS">NO_PROPS</A></CODE></TD> 162</TR> 163</TABLE> 164 <A NAME="fields_inherited_from_class_com.fasterxml.jackson.databind.ser.std.StdSerializer"><!-- --></A> 165<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 166<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 167<TH ALIGN="left"><B>Fields inherited from class com.fasterxml.jackson.databind.ser.std.<A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html" title="class in com.fasterxml.jackson.databind.ser.std">StdSerializer</A></B></TH> 168</TR> 169<TR BGCOLOR="white" CLASS="TableRowColor"> 170<TD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html#_handledType">_handledType</A></CODE></TD> 171</TR> 172</TABLE> 173 174<!-- ======== CONSTRUCTOR SUMMARY ======== --> 175 176<A NAME="constructor_summary"><!-- --></A> 177<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 178<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 179<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 180<B>Constructor Summary</B></FONT></TH> 181</TR> 182<TR BGCOLOR="white" CLASS="TableRowColor"> 183<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 184<CODE>protected </CODE></FONT></TD> 185<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/ser/BeanSerializer.html#BeanSerializer(com.fasterxml.jackson.databind.ser.std.BeanSerializerBase)">BeanSerializer</A></B>(<A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/BeanSerializerBase.html" title="class in com.fasterxml.jackson.databind.ser.std">BeanSerializerBase</A> src)</CODE> 186 187<BR> 188 Alternate copy constructor that can be used to construct 189 standard <A HREF="../../../../../com/fasterxml/jackson/databind/ser/BeanSerializer.html" title="class in com.fasterxml.jackson.databind.ser"><CODE>BeanSerializer</CODE></A> passing an instance of 190 "compatible enough" source serializer.</TD> 191</TR> 192<TR BGCOLOR="white" CLASS="TableRowColor"> 193<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 194<CODE>protected </CODE></FONT></TD> 195<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/ser/BeanSerializer.html#BeanSerializer(com.fasterxml.jackson.databind.ser.std.BeanSerializerBase, com.fasterxml.jackson.databind.ser.impl.ObjectIdWriter)">BeanSerializer</A></B>(<A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/BeanSerializerBase.html" title="class in com.fasterxml.jackson.databind.ser.std">BeanSerializerBase</A> src, 196 <A HREF="../../../../../com/fasterxml/jackson/databind/ser/impl/ObjectIdWriter.html" title="class in com.fasterxml.jackson.databind.ser.impl">ObjectIdWriter</A> objectIdWriter)</CODE> 197 198<BR> 199 </TD> 200</TR> 201<TR BGCOLOR="white" CLASS="TableRowColor"> 202<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 203<CODE>protected </CODE></FONT></TD> 204<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/ser/BeanSerializer.html#BeanSerializer(com.fasterxml.jackson.databind.ser.std.BeanSerializerBase, java.lang.String[])">BeanSerializer</A></B>(<A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/BeanSerializerBase.html" title="class in com.fasterxml.jackson.databind.ser.std">BeanSerializerBase</A> src, 205 <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>[] toIgnore)</CODE> 206 207<BR> 208 </TD> 209</TR> 210<TR BGCOLOR="white" CLASS="TableRowColor"> 211<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 212<CODE> </CODE></FONT></TD> 213<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/ser/BeanSerializer.html#BeanSerializer(com.fasterxml.jackson.databind.JavaType, com.fasterxml.jackson.databind.ser.BeanSerializerBuilder, com.fasterxml.jackson.databind.ser.BeanPropertyWriter[], com.fasterxml.jackson.databind.ser.BeanPropertyWriter[])">BeanSerializer</A></B>(<A HREF="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</A> type, 214 <A HREF="../../../../../com/fasterxml/jackson/databind/ser/BeanSerializerBuilder.html" title="class in com.fasterxml.jackson.databind.ser">BeanSerializerBuilder</A> builder, 215 <A HREF="../../../../../com/fasterxml/jackson/databind/ser/BeanPropertyWriter.html" title="class in com.fasterxml.jackson.databind.ser">BeanPropertyWriter</A>[] properties, 216 <A HREF="../../../../../com/fasterxml/jackson/databind/ser/BeanPropertyWriter.html" title="class in com.fasterxml.jackson.databind.ser">BeanPropertyWriter</A>[] filteredProperties)</CODE> 217 218<BR> 219 </TD> 220</TR> 221</TABLE> 222 223<!-- ========== METHOD SUMMARY =========== --> 224 225<A NAME="method_summary"><!-- --></A> 226<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 227<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 228<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 229<B>Method Summary</B></FONT></TH> 230</TR> 231<TR BGCOLOR="white" CLASS="TableRowColor"> 232<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 233<CODE>protected <A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/BeanSerializerBase.html" title="class in com.fasterxml.jackson.databind.ser.std">BeanSerializerBase</A></CODE></FONT></TD> 234<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/ser/BeanSerializer.html#asArraySerializer()">asArraySerializer</A></B>()</CODE> 235 236<BR> 237 Implementation has to check whether as-array serialization 238 is possible reliably; if (and only if) so, will construct 239 a <A HREF="../../../../../com/fasterxml/jackson/databind/ser/impl/BeanAsArraySerializer.html" title="class in com.fasterxml.jackson.databind.ser.impl"><CODE>BeanAsArraySerializer</CODE></A>, otherwise will return this 240 serializer as is.</TD> 241</TR> 242<TR BGCOLOR="white" CLASS="TableRowColor"> 243<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 244<CODE>static <A HREF="../../../../../com/fasterxml/jackson/databind/ser/BeanSerializer.html" title="class in com.fasterxml.jackson.databind.ser">BeanSerializer</A></CODE></FONT></TD> 245<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/ser/BeanSerializer.html#createDummy(com.fasterxml.jackson.databind.JavaType)">createDummy</A></B>(<A HREF="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</A> forType)</CODE> 246 247<BR> 248 Method for constructing dummy bean serializer; one that 249 never outputs any properties</TD> 250</TR> 251<TR BGCOLOR="white" CLASS="TableRowColor"> 252<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 253<CODE> void</CODE></FONT></TD> 254<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/ser/BeanSerializer.html#serialize(java.lang.Object, com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.SerializerProvider)">serialize</A></B>(<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> bean, 255 <A HREF="http://fasterxml.github.com/jackson-core/javadoc/2.1.0/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator</A> jgen, 256 <A HREF="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html" title="class in com.fasterxml.jackson.databind">SerializerProvider</A> provider)</CODE> 257 258<BR> 259 Main serialization method that will delegate actual output to 260 configured 261 <A HREF="../../../../../com/fasterxml/jackson/databind/ser/BeanPropertyWriter.html" title="class in com.fasterxml.jackson.databind.ser"><CODE>BeanPropertyWriter</CODE></A> instances.</TD> 262</TR> 263<TR BGCOLOR="white" CLASS="TableRowColor"> 264<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 265<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> 266<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/ser/BeanSerializer.html#toString()">toString</A></B>()</CODE> 267 268<BR> 269 </TD> 270</TR> 271<TR BGCOLOR="white" CLASS="TableRowColor"> 272<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 273<CODE> <A HREF="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind">JsonSerializer</A><<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>></CODE></FONT></TD> 274<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/ser/BeanSerializer.html#unwrappingSerializer(com.fasterxml.jackson.databind.util.NameTransformer)">unwrappingSerializer</A></B>(<A HREF="../../../../../com/fasterxml/jackson/databind/util/NameTransformer.html" title="class in com.fasterxml.jackson.databind.util">NameTransformer</A> unwrapper)</CODE> 275 276<BR> 277 Method that will return serializer instance that produces 278 "unwrapped" serialization, if applicable for type being 279 serialized (which is the case for some serializers 280 that produce JSON Objects as output).</TD> 281</TR> 282<TR BGCOLOR="white" CLASS="TableRowColor"> 283<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 284<CODE>protected <A HREF="../../../../../com/fasterxml/jackson/databind/ser/BeanSerializer.html" title="class in com.fasterxml.jackson.databind.ser">BeanSerializer</A></CODE></FONT></TD> 285<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/ser/BeanSerializer.html#withIgnorals(java.lang.String[])">withIgnorals</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>[] toIgnore)</CODE> 286 287<BR> 288 Fluent factory used for creating a new instance with additional 289 set of properties to ignore (from properties this instance otherwise has)</TD> 290</TR> 291<TR BGCOLOR="white" CLASS="TableRowColor"> 292<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 293<CODE> <A HREF="../../../../../com/fasterxml/jackson/databind/ser/BeanSerializer.html" title="class in com.fasterxml.jackson.databind.ser">BeanSerializer</A></CODE></FONT></TD> 294<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/ser/BeanSerializer.html#withObjectIdWriter(com.fasterxml.jackson.databind.ser.impl.ObjectIdWriter)">withObjectIdWriter</A></B>(<A HREF="../../../../../com/fasterxml/jackson/databind/ser/impl/ObjectIdWriter.html" title="class in com.fasterxml.jackson.databind.ser.impl">ObjectIdWriter</A> objectIdWriter)</CODE> 295 296<BR> 297 Fluent factory used for creating a new instance with different 298 <A HREF="../../../../../com/fasterxml/jackson/databind/ser/impl/ObjectIdWriter.html" title="class in com.fasterxml.jackson.databind.ser.impl"><CODE>ObjectIdWriter</CODE></A>.</TD> 299</TR> 300</TABLE> 301 <A NAME="methods_inherited_from_class_com.fasterxml.jackson.databind.ser.std.BeanSerializerBase"><!-- --></A> 302<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 303<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 304<TH ALIGN="left"><B>Methods inherited from class com.fasterxml.jackson.databind.ser.std.<A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/BeanSerializerBase.html" title="class in com.fasterxml.jackson.databind.ser.std">BeanSerializerBase</A></B></TH> 305</TR> 306<TR BGCOLOR="white" CLASS="TableRowColor"> 307<TD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/BeanSerializerBase.html#acceptJsonFormatVisitor(com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper, com.fasterxml.jackson.databind.JavaType)">acceptJsonFormatVisitor</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/BeanSerializerBase.html#createContextual(com.fasterxml.jackson.databind.SerializerProvider, com.fasterxml.jackson.databind.BeanProperty)">createContextual</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/BeanSerializerBase.html#findFilter(com.fasterxml.jackson.databind.SerializerProvider)">findFilter</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/BeanSerializerBase.html#getSchema(com.fasterxml.jackson.databind.SerializerProvider, java.lang.reflect.Type)">getSchema</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/BeanSerializerBase.html#resolve(com.fasterxml.jackson.databind.SerializerProvider)">resolve</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/BeanSerializerBase.html#serializeFields(java.lang.Object, com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.SerializerProvider)">serializeFields</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/BeanSerializerBase.html#serializeFieldsFiltered(java.lang.Object, com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.SerializerProvider)">serializeFieldsFiltered</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/BeanSerializerBase.html#serializeWithType(java.lang.Object, com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.SerializerProvider, com.fasterxml.jackson.databind.jsontype.TypeSerializer)">serializeWithType</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/BeanSerializerBase.html#usesObjectId()">usesObjectId</A></CODE></TD> 308</TR> 309</TABLE> 310 <A NAME="methods_inherited_from_class_com.fasterxml.jackson.databind.ser.std.StdSerializer"><!-- --></A> 311<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 312<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 313<TH ALIGN="left"><B>Methods inherited from class com.fasterxml.jackson.databind.ser.std.<A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html" title="class in com.fasterxml.jackson.databind.ser.std">StdSerializer</A></B></TH> 314</TR> 315<TR BGCOLOR="white" CLASS="TableRowColor"> 316<TD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html#createObjectNode()">createObjectNode</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html#createSchemaNode(java.lang.String)">createSchemaNode</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html#createSchemaNode(java.lang.String, boolean)">createSchemaNode</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html#getSchema(com.fasterxml.jackson.databind.SerializerProvider, java.lang.reflect.Type, boolean)">getSchema</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html#handledType()">handledType</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html#isDefaultSerializer(com.fasterxml.jackson.databind.JsonSerializer)">isDefaultSerializer</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html#wrapAndThrow(com.fasterxml.jackson.databind.SerializerProvider, java.lang.Throwable, java.lang.Object, int)">wrapAndThrow</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html#wrapAndThrow(com.fasterxml.jackson.databind.SerializerProvider, java.lang.Throwable, java.lang.Object, java.lang.String)">wrapAndThrow</A></CODE></TD> 317</TR> 318</TABLE> 319 <A NAME="methods_inherited_from_class_com.fasterxml.jackson.databind.JsonSerializer"><!-- --></A> 320<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 321<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 322<TH ALIGN="left"><B>Methods inherited from class com.fasterxml.jackson.databind.<A HREF="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind">JsonSerializer</A></B></TH> 323</TR> 324<TR BGCOLOR="white" CLASS="TableRowColor"> 325<TD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html#getDelegatee()">getDelegatee</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html#isEmpty(T)">isEmpty</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html#isUnwrappingSerializer()">isUnwrappingSerializer</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html#replaceDelegatee(com.fasterxml.jackson.databind.JsonSerializer)">replaceDelegatee</A></CODE></TD> 326</TR> 327</TABLE> 328 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> 329<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 330<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 331<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> 332</TR> 333<TR BGCOLOR="white" CLASS="TableRowColor"> 334<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#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> 335</TR> 336</TABLE> 337 <A NAME="methods_inherited_from_class_com.fasterxml.jackson.databind.jsonschema.SchemaAware"><!-- --></A> 338<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 339<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 340<TH ALIGN="left"><B>Methods inherited from interface com.fasterxml.jackson.databind.jsonschema.<A HREF="../../../../../com/fasterxml/jackson/databind/jsonschema/SchemaAware.html" title="interface in com.fasterxml.jackson.databind.jsonschema">SchemaAware</A></B></TH> 341</TR> 342<TR BGCOLOR="white" CLASS="TableRowColor"> 343<TD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/jsonschema/SchemaAware.html#getSchema(com.fasterxml.jackson.databind.SerializerProvider, java.lang.reflect.Type, boolean)">getSchema</A></CODE></TD> 344</TR> 345</TABLE> 346 347<P> 348 349<!-- ========= CONSTRUCTOR DETAIL ======== --> 350 351<A NAME="constructor_detail"><!-- --></A> 352<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 353<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 354<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 355<B>Constructor Detail</B></FONT></TH> 356</TR> 357</TABLE> 358 359<A NAME="BeanSerializer(com.fasterxml.jackson.databind.JavaType, com.fasterxml.jackson.databind.ser.BeanSerializerBuilder, com.fasterxml.jackson.databind.ser.BeanPropertyWriter[], com.fasterxml.jackson.databind.ser.BeanPropertyWriter[])"><!-- --></A><H3> 360BeanSerializer</H3> 361<PRE> 362public <B>BeanSerializer</B>(<A HREF="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</A> type, 363 <A HREF="../../../../../com/fasterxml/jackson/databind/ser/BeanSerializerBuilder.html" title="class in com.fasterxml.jackson.databind.ser">BeanSerializerBuilder</A> builder, 364 <A HREF="../../../../../com/fasterxml/jackson/databind/ser/BeanPropertyWriter.html" title="class in com.fasterxml.jackson.databind.ser">BeanPropertyWriter</A>[] properties, 365 <A HREF="../../../../../com/fasterxml/jackson/databind/ser/BeanPropertyWriter.html" title="class in com.fasterxml.jackson.databind.ser">BeanPropertyWriter</A>[] filteredProperties)</PRE> 366<DL> 367<DL> 368<DT><B>Parameters:</B><DD><CODE>builder</CODE> - Builder object that contains collected information 369 that may be needed for serializer<DD><CODE>properties</CODE> - Property writers used for actual serialization</DL> 370</DL> 371<HR> 372 373<A NAME="BeanSerializer(com.fasterxml.jackson.databind.ser.std.BeanSerializerBase)"><!-- --></A><H3> 374BeanSerializer</H3> 375<PRE> 376protected <B>BeanSerializer</B>(<A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/BeanSerializerBase.html" title="class in com.fasterxml.jackson.databind.ser.std">BeanSerializerBase</A> src)</PRE> 377<DL> 378<DD>Alternate copy constructor that can be used to construct 379 standard <A HREF="../../../../../com/fasterxml/jackson/databind/ser/BeanSerializer.html" title="class in com.fasterxml.jackson.databind.ser"><CODE>BeanSerializer</CODE></A> passing an instance of 380 "compatible enough" source serializer. 381<P> 382</DL> 383<HR> 384 385<A NAME="BeanSerializer(com.fasterxml.jackson.databind.ser.std.BeanSerializerBase, com.fasterxml.jackson.databind.ser.impl.ObjectIdWriter)"><!-- --></A><H3> 386BeanSerializer</H3> 387<PRE> 388protected <B>BeanSerializer</B>(<A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/BeanSerializerBase.html" title="class in com.fasterxml.jackson.databind.ser.std">BeanSerializerBase</A> src, 389 <A HREF="../../../../../com/fasterxml/jackson/databind/ser/impl/ObjectIdWriter.html" title="class in com.fasterxml.jackson.databind.ser.impl">ObjectIdWriter</A> objectIdWriter)</PRE> 390<DL> 391</DL> 392<HR> 393 394<A NAME="BeanSerializer(com.fasterxml.jackson.databind.ser.std.BeanSerializerBase, java.lang.String[])"><!-- --></A><H3> 395BeanSerializer</H3> 396<PRE> 397protected <B>BeanSerializer</B>(<A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/BeanSerializerBase.html" title="class in com.fasterxml.jackson.databind.ser.std">BeanSerializerBase</A> src, 398 <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>[] toIgnore)</PRE> 399<DL> 400</DL> 401 402<!-- ============ METHOD DETAIL ========== --> 403 404<A NAME="method_detail"><!-- --></A> 405<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 406<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 407<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 408<B>Method Detail</B></FONT></TH> 409</TR> 410</TABLE> 411 412<A NAME="createDummy(com.fasterxml.jackson.databind.JavaType)"><!-- --></A><H3> 413createDummy</H3> 414<PRE> 415public static <A HREF="../../../../../com/fasterxml/jackson/databind/ser/BeanSerializer.html" title="class in com.fasterxml.jackson.databind.ser">BeanSerializer</A> <B>createDummy</B>(<A HREF="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</A> forType)</PRE> 416<DL> 417<DD>Method for constructing dummy bean serializer; one that 418 never outputs any properties 419<P> 420<DD><DL> 421</DL> 422</DD> 423</DL> 424<HR> 425 426<A NAME="unwrappingSerializer(com.fasterxml.jackson.databind.util.NameTransformer)"><!-- --></A><H3> 427unwrappingSerializer</H3> 428<PRE> 429public <A HREF="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind">JsonSerializer</A><<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>unwrappingSerializer</B>(<A HREF="../../../../../com/fasterxml/jackson/databind/util/NameTransformer.html" title="class in com.fasterxml.jackson.databind.util">NameTransformer</A> unwrapper)</PRE> 430<DL> 431<DD><B>Description copied from class: <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html#unwrappingSerializer(com.fasterxml.jackson.databind.util.NameTransformer)">JsonSerializer</A></CODE></B></DD> 432<DD>Method that will return serializer instance that produces 433 "unwrapped" serialization, if applicable for type being 434 serialized (which is the case for some serializers 435 that produce JSON Objects as output). 436 If no unwrapped serializer can be constructed, will simply 437 return serializer as-is. 438<p> 439 Default implementation just returns serializer as-is, 440 indicating that no unwrapped variant exists 441<P> 442<DD><DL> 443<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html#unwrappingSerializer(com.fasterxml.jackson.databind.util.NameTransformer)">unwrappingSerializer</A></CODE> in class <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind">JsonSerializer</A><<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>></CODE></DL> 444</DD> 445<DD><DL> 446<DT><B>Parameters:</B><DD><CODE>unwrapper</CODE> - Name transformation to use to convert between names 447 of unwrapper properties</DL> 448</DD> 449</DL> 450<HR> 451 452<A NAME="withObjectIdWriter(com.fasterxml.jackson.databind.ser.impl.ObjectIdWriter)"><!-- --></A><H3> 453withObjectIdWriter</H3> 454<PRE> 455public <A HREF="../../../../../com/fasterxml/jackson/databind/ser/BeanSerializer.html" title="class in com.fasterxml.jackson.databind.ser">BeanSerializer</A> <B>withObjectIdWriter</B>(<A HREF="../../../../../com/fasterxml/jackson/databind/ser/impl/ObjectIdWriter.html" title="class in com.fasterxml.jackson.databind.ser.impl">ObjectIdWriter</A> objectIdWriter)</PRE> 456<DL> 457<DD><B>Description copied from class: <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/BeanSerializerBase.html#withObjectIdWriter(com.fasterxml.jackson.databind.ser.impl.ObjectIdWriter)">BeanSerializerBase</A></CODE></B></DD> 458<DD>Fluent factory used for creating a new instance with different 459 <A HREF="../../../../../com/fasterxml/jackson/databind/ser/impl/ObjectIdWriter.html" title="class in com.fasterxml.jackson.databind.ser.impl"><CODE>ObjectIdWriter</CODE></A>. 460<P> 461<DD><DL> 462<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/BeanSerializerBase.html#withObjectIdWriter(com.fasterxml.jackson.databind.ser.impl.ObjectIdWriter)">withObjectIdWriter</A></CODE> in class <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/BeanSerializerBase.html" title="class in com.fasterxml.jackson.databind.ser.std">BeanSerializerBase</A></CODE></DL> 463</DD> 464<DD><DL> 465</DL> 466</DD> 467</DL> 468<HR> 469 470<A NAME="withIgnorals(java.lang.String[])"><!-- --></A><H3> 471withIgnorals</H3> 472<PRE> 473protected <A HREF="../../../../../com/fasterxml/jackson/databind/ser/BeanSerializer.html" title="class in com.fasterxml.jackson.databind.ser">BeanSerializer</A> <B>withIgnorals</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>[] toIgnore)</PRE> 474<DL> 475<DD><B>Description copied from class: <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/BeanSerializerBase.html#withIgnorals(java.lang.String[])">BeanSerializerBase</A></CODE></B></DD> 476<DD>Fluent factory used for creating a new instance with additional 477 set of properties to ignore (from properties this instance otherwise has) 478<P> 479<DD><DL> 480<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/BeanSerializerBase.html#withIgnorals(java.lang.String[])">withIgnorals</A></CODE> in class <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/BeanSerializerBase.html" title="class in com.fasterxml.jackson.databind.ser.std">BeanSerializerBase</A></CODE></DL> 481</DD> 482<DD><DL> 483</DL> 484</DD> 485</DL> 486<HR> 487 488<A NAME="asArraySerializer()"><!-- --></A><H3> 489asArraySerializer</H3> 490<PRE> 491protected <A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/BeanSerializerBase.html" title="class in com.fasterxml.jackson.databind.ser.std">BeanSerializerBase</A> <B>asArraySerializer</B>()</PRE> 492<DL> 493<DD>Implementation has to check whether as-array serialization 494 is possible reliably; if (and only if) so, will construct 495 a <A HREF="../../../../../com/fasterxml/jackson/databind/ser/impl/BeanAsArraySerializer.html" title="class in com.fasterxml.jackson.databind.ser.impl"><CODE>BeanAsArraySerializer</CODE></A>, otherwise will return this 496 serializer as is. 497<P> 498<DD><DL> 499<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/BeanSerializerBase.html#asArraySerializer()">asArraySerializer</A></CODE> in class <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/BeanSerializerBase.html" title="class in com.fasterxml.jackson.databind.ser.std">BeanSerializerBase</A></CODE></DL> 500</DD> 501<DD><DL> 502</DL> 503</DD> 504</DL> 505<HR> 506 507<A NAME="serialize(java.lang.Object, com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.SerializerProvider)"><!-- --></A><H3> 508serialize</H3> 509<PRE> 510public final void <B>serialize</B>(<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> bean, 511 <A HREF="http://fasterxml.github.com/jackson-core/javadoc/2.1.0/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator</A> jgen, 512 <A HREF="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html" title="class in com.fasterxml.jackson.databind">SerializerProvider</A> provider) 513 throws <A HREF="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A>, 514 <A HREF="http://fasterxml.github.com/jackson-core/javadoc/2.1.0/com/fasterxml/jackson/core/JsonGenerationException.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerationException</A></PRE> 515<DL> 516<DD>Main serialization method that will delegate actual output to 517 configured 518 <A HREF="../../../../../com/fasterxml/jackson/databind/ser/BeanPropertyWriter.html" title="class in com.fasterxml.jackson.databind.ser"><CODE>BeanPropertyWriter</CODE></A> instances. 519<P> 520<DD><DL> 521<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/BeanSerializerBase.html#serialize(java.lang.Object, com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.SerializerProvider)">serialize</A></CODE> in class <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/BeanSerializerBase.html" title="class in com.fasterxml.jackson.databind.ser.std">BeanSerializerBase</A></CODE></DL> 522</DD> 523<DD><DL> 524<DT><B>Parameters:</B><DD><CODE>bean</CODE> - Value to serialize; can <b>not</b> be null.<DD><CODE>jgen</CODE> - Generator used to output resulting Json content<DD><CODE>provider</CODE> - Provider that can be used to get serializers for 525 serializing Objects value contains, if any. 526<DT><B>Throws:</B> 527<DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE> 528<DD><CODE><A HREF="http://fasterxml.github.com/jackson-core/javadoc/2.1.0/com/fasterxml/jackson/core/JsonGenerationException.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerationException</A></CODE></DL> 529</DD> 530</DL> 531<HR> 532 533<A NAME="toString()"><!-- --></A><H3> 534toString</H3> 535<PRE> 536public <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>toString</B>()</PRE> 537<DL> 538<DD><DL> 539<DT><B>Overrides:</B><DD><CODE><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></CODE> in class <CODE><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></CODE></DL> 540</DD> 541<DD><DL> 542</DL> 543</DD> 544</DL> 545<!-- ========= END OF CLASS DATA ========= --> 546<HR> 547 548 549<!-- ======= START OF BOTTOM NAVBAR ====== --> 550<A NAME="navbar_bottom"><!-- --></A> 551<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> 552<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 553<TR> 554<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 555<A NAME="navbar_bottom_firstrow"><!-- --></A> 556<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 557 <TR ALIGN="center" VALIGN="top"> 558 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 559 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 560 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 561 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/BeanSerializer.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> 562 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 563 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 564 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 565 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 566 </TR> 567</TABLE> 568</TD> 569<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 570</EM> 571</TD> 572</TR> 573 574<TR> 575<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 576 <A HREF="../../../../../com/fasterxml/jackson/databind/ser/BeanPropertyWriter.html" title="class in com.fasterxml.jackson.databind.ser"><B>PREV CLASS</B></A> 577 <A HREF="../../../../../com/fasterxml/jackson/databind/ser/BeanSerializerBuilder.html" title="class in com.fasterxml.jackson.databind.ser"><B>NEXT CLASS</B></A></FONT></TD> 578<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 579 <A HREF="../../../../../index.html?com/fasterxml/jackson/databind/ser/BeanSerializer.html" target="_top"><B>FRAMES</B></A> 580 <A HREF="BeanSerializer.html" target="_top"><B>NO FRAMES</B></A> 581 <SCRIPT type="text/javascript"> 582 <!-- 583 if(window==top) { 584 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); 585 } 586 //--> 587</SCRIPT> 588<NOSCRIPT> 589 <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> 590</NOSCRIPT> 591 592 593</FONT></TD> 594</TR> 595<TR> 596<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 597 SUMMARY: <A HREF="#nested_classes_inherited_from_class_com.fasterxml.jackson.databind.JsonSerializer">NESTED</A> | <A HREF="#fields_inherited_from_class_com.fasterxml.jackson.databind.ser.std.BeanSerializerBase">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> 598<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 599DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> 600</TR> 601</TABLE> 602<A NAME="skip-navbar_bottom"></A> 603<!-- ======== END OF BOTTOM NAVBAR ======= --> 604 605<HR> 606Copyright © 2012 <a href="http://fasterxml.com/">FasterXML</a>. All Rights Reserved. 607</BODY> 608</HTML> 609