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:17 PDT 2012 --> 6<META http-equiv="Content-Type" content="text/html; charset=UTF-8"> 7<TITLE> 8ContainerSerializer (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="ContainerSerializer (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/ContainerSerializer.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/BeanSerializerModifier.html" title="class in com.fasterxml.jackson.databind.ser"><B>PREV CLASS</B></A> 60 <A HREF="../../../../../com/fasterxml/jackson/databind/ser/ContextualSerializer.html" title="interface 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/ContainerSerializer.html" target="_top"><B>FRAMES</B></A> 63 <A HREF="ContainerSerializer.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.StdSerializer">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 ContainerSerializer<T></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><T> 99 <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>com.fasterxml.jackson.databind.ser.ContainerSerializer<T></B> 100</PRE> 101<DL> 102<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../../com/fasterxml/jackson/databind/jsonschema/SchemaAware.html" title="interface in com.fasterxml.jackson.databind.jsonschema">SchemaAware</A></DD> 103</DL> 104<DL> 105<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/ArraySerializerBase.html" title="class in com.fasterxml.jackson.databind.ser.std">ArraySerializerBase</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/AsArraySerializerBase.html" title="class in com.fasterxml.jackson.databind.ser.std">AsArraySerializerBase</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/EnumMapSerializer.html" title="class in com.fasterxml.jackson.databind.ser.std">EnumMapSerializer</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/MapSerializer.html" title="class in com.fasterxml.jackson.databind.ser.std">MapSerializer</A></DD> 106</DL> 107<HR> 108<DL> 109<DT><PRE>public abstract class <B>ContainerSerializer<T></B><DT>extends <A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html" title="class in com.fasterxml.jackson.databind.ser.std">StdSerializer</A><T></DL> 110</PRE> 111 112<P> 113Intermediate base class for serializers used for serializing 114 types that contain element(s) of other types, such as arrays, 115 <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/Collection.html?is-external=true" title="class or interface in java.util"><CODE>Collection</CODE></A>s (<code>Lists</code>, <code>Sets</code> 116 etc) and <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util"><CODE>Map</CODE></A>s and iterable things 117 (<A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util"><CODE>Iterator</CODE></A>s). 118<P> 119 120<P> 121<HR> 122 123<P> 124<!-- ======== NESTED CLASS SUMMARY ======== --> 125 126<A NAME="nested_class_summary"><!-- --></A> 127<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 128<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 129<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 130<B>Nested Class Summary</B></FONT></TH> 131</TR> 132</TABLE> 133 <A NAME="nested_classes_inherited_from_class_com.fasterxml.jackson.databind.JsonSerializer"><!-- --></A> 134<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 135<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 136<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> 137</TR> 138<TR BGCOLOR="white" CLASS="TableRowColor"> 139<TD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonSerializer.None.html" title="class in com.fasterxml.jackson.databind">JsonSerializer.None</A></CODE></TD> 140</TR> 141</TABLE> 142 143<!-- =========== FIELD SUMMARY =========== --> 144 145<A NAME="field_summary"><!-- --></A> 146<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 147<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 148<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 149<B>Field Summary</B></FONT></TH> 150</TR> 151</TABLE> 152 <A NAME="fields_inherited_from_class_com.fasterxml.jackson.databind.ser.std.StdSerializer"><!-- --></A> 153<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 154<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 155<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> 156</TR> 157<TR BGCOLOR="white" CLASS="TableRowColor"> 158<TD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html#_handledType">_handledType</A></CODE></TD> 159</TR> 160</TABLE> 161 162<!-- ======== CONSTRUCTOR SUMMARY ======== --> 163 164<A NAME="constructor_summary"><!-- --></A> 165<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 166<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 167<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 168<B>Constructor Summary</B></FONT></TH> 169</TR> 170<TR BGCOLOR="white" CLASS="TableRowColor"> 171<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 172<CODE>protected </CODE></FONT></TD> 173<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html#ContainerSerializer(java.lang.Class, boolean)">ContainerSerializer</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, 174 boolean dummy)</CODE> 175 176<BR> 177 Alternate constructor that is (alas!) needed to work 178 around kinks of generic type handling</TD> 179</TR> 180<TR BGCOLOR="white" CLASS="TableRowColor"> 181<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 182<CODE>protected </CODE></FONT></TD> 183<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html#ContainerSerializer(java.lang.Class)">ContainerSerializer</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><<A HREF="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html" title="type parameter in ContainerSerializer">T</A>> t)</CODE> 184 185<BR> 186 </TD> 187</TR> 188<TR BGCOLOR="white" CLASS="TableRowColor"> 189<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 190<CODE>protected </CODE></FONT></TD> 191<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html#ContainerSerializer(com.fasterxml.jackson.databind.ser.ContainerSerializer)">ContainerSerializer</A></B>(<A HREF="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html" title="class in com.fasterxml.jackson.databind.ser">ContainerSerializer</A><?> src)</CODE> 192 193<BR> 194 </TD> 195</TR> 196</TABLE> 197 198<!-- ========== METHOD SUMMARY =========== --> 199 200<A NAME="method_summary"><!-- --></A> 201<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 202<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 203<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 204<B>Method Summary</B></FONT></TH> 205</TR> 206<TR BGCOLOR="white" CLASS="TableRowColor"> 207<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 208<CODE>protected abstract <A HREF="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html" title="class in com.fasterxml.jackson.databind.ser">ContainerSerializer</A><?></CODE></FONT></TD> 209<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html#_withValueTypeSerializer(com.fasterxml.jackson.databind.jsontype.TypeSerializer)">_withValueTypeSerializer</A></B>(<A HREF="../../../../../com/fasterxml/jackson/databind/jsontype/TypeSerializer.html" title="class in com.fasterxml.jackson.databind.jsontype">TypeSerializer</A> vts)</CODE> 210 211<BR> 212 Method that needs to be implemented to allow construction of a new 213 serializer object with given <A HREF="../../../../../com/fasterxml/jackson/databind/jsontype/TypeSerializer.html" title="class in com.fasterxml.jackson.databind.jsontype"><CODE>TypeSerializer</CODE></A>, used when 214 addition type information is to be embedded.</TD> 215</TR> 216<TR BGCOLOR="white" CLASS="TableRowColor"> 217<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 218<CODE>abstract <A HREF="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind">JsonSerializer</A><?></CODE></FONT></TD> 219<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html#getContentSerializer()">getContentSerializer</A></B>()</CODE> 220 221<BR> 222 Accessor for serializer used for serializing contents 223 (List and array elements, Map values etc) of the 224 container for which this serializer is used, if it is 225 known statically.</TD> 226</TR> 227<TR BGCOLOR="white" CLASS="TableRowColor"> 228<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 229<CODE>abstract <A HREF="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</A></CODE></FONT></TD> 230<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html#getContentType()">getContentType</A></B>()</CODE> 231 232<BR> 233 Accessor for finding declared (static) element type for 234 type this serializer is used for.</TD> 235</TR> 236<TR BGCOLOR="white" CLASS="TableRowColor"> 237<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 238<CODE>abstract boolean</CODE></FONT></TD> 239<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html#hasSingleElement(T)">hasSingleElement</A></B>(<A HREF="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html" title="type parameter in ContainerSerializer">T</A> value)</CODE> 240 241<BR> 242 Method called to determine if the given value (of type handled by 243 this serializer) contains exactly one element.</TD> 244</TR> 245<TR BGCOLOR="white" CLASS="TableRowColor"> 246<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 247<CODE>abstract boolean</CODE></FONT></TD> 248<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html#isEmpty(T)">isEmpty</A></B>(<A HREF="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html" title="type parameter in ContainerSerializer">T</A> value)</CODE> 249 250<BR> 251 Method called to check whether given serializable value is 252 considered "empty" value (for purposes of suppressing serialization 253 of empty values).</TD> 254</TR> 255<TR BGCOLOR="white" CLASS="TableRowColor"> 256<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 257<CODE> <A HREF="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html" title="class in com.fasterxml.jackson.databind.ser">ContainerSerializer</A><?></CODE></FONT></TD> 258<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html#withValueTypeSerializer(com.fasterxml.jackson.databind.jsontype.TypeSerializer)">withValueTypeSerializer</A></B>(<A HREF="../../../../../com/fasterxml/jackson/databind/jsontype/TypeSerializer.html" title="class in com.fasterxml.jackson.databind.jsontype">TypeSerializer</A> vts)</CODE> 259 260<BR> 261 Factory(-like) method that can be used to construct a new container 262 serializer that uses specified <A HREF="../../../../../com/fasterxml/jackson/databind/jsontype/TypeSerializer.html" title="class in com.fasterxml.jackson.databind.jsontype"><CODE>TypeSerializer</CODE></A> for decorating 263 contained values with additional type information.</TD> 264</TR> 265</TABLE> 266 <A NAME="methods_inherited_from_class_com.fasterxml.jackson.databind.ser.std.StdSerializer"><!-- --></A> 267<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 268<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 269<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> 270</TR> 271<TR BGCOLOR="white" CLASS="TableRowColor"> 272<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)">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#serialize(T, com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.SerializerProvider)">serialize</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> 273</TR> 274</TABLE> 275 <A NAME="methods_inherited_from_class_com.fasterxml.jackson.databind.JsonSerializer"><!-- --></A> 276<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 277<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 278<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> 279</TR> 280<TR BGCOLOR="white" CLASS="TableRowColor"> 281<TD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html#isUnwrappingSerializer()">isUnwrappingSerializer</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html#serializeWithType(T, com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.SerializerProvider, com.fasterxml.jackson.databind.jsontype.TypeSerializer)">serializeWithType</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html#unwrappingSerializer(com.fasterxml.jackson.databind.util.NameTransformer)">unwrappingSerializer</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html#usesObjectId()">usesObjectId</A></CODE></TD> 282</TR> 283</TABLE> 284 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> 285<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 286<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 287<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> 288</TR> 289<TR BGCOLOR="white" CLASS="TableRowColor"> 290<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> 291</TR> 292</TABLE> 293 294<P> 295 296<!-- ========= CONSTRUCTOR DETAIL ======== --> 297 298<A NAME="constructor_detail"><!-- --></A> 299<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 300<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 301<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 302<B>Constructor Detail</B></FONT></TH> 303</TR> 304</TABLE> 305 306<A NAME="ContainerSerializer(java.lang.Class)"><!-- --></A><H3> 307ContainerSerializer</H3> 308<PRE> 309protected <B>ContainerSerializer</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><<A HREF="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html" title="type parameter in ContainerSerializer">T</A>> t)</PRE> 310<DL> 311</DL> 312<HR> 313 314<A NAME="ContainerSerializer(java.lang.Class, boolean)"><!-- --></A><H3> 315ContainerSerializer</H3> 316<PRE> 317protected <B>ContainerSerializer</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, 318 boolean dummy)</PRE> 319<DL> 320<DD>Alternate constructor that is (alas!) needed to work 321 around kinks of generic type handling 322<P> 323<DL> 324<DT><B>Parameters:</B><DD><CODE>t</CODE> - </DL> 325</DL> 326<HR> 327 328<A NAME="ContainerSerializer(com.fasterxml.jackson.databind.ser.ContainerSerializer)"><!-- --></A><H3> 329ContainerSerializer</H3> 330<PRE> 331protected <B>ContainerSerializer</B>(<A HREF="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html" title="class in com.fasterxml.jackson.databind.ser">ContainerSerializer</A><?> src)</PRE> 332<DL> 333</DL> 334 335<!-- ============ METHOD DETAIL ========== --> 336 337<A NAME="method_detail"><!-- --></A> 338<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 339<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 340<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 341<B>Method Detail</B></FONT></TH> 342</TR> 343</TABLE> 344 345<A NAME="withValueTypeSerializer(com.fasterxml.jackson.databind.jsontype.TypeSerializer)"><!-- --></A><H3> 346withValueTypeSerializer</H3> 347<PRE> 348public <A HREF="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html" title="class in com.fasterxml.jackson.databind.ser">ContainerSerializer</A><?> <B>withValueTypeSerializer</B>(<A HREF="../../../../../com/fasterxml/jackson/databind/jsontype/TypeSerializer.html" title="class in com.fasterxml.jackson.databind.jsontype">TypeSerializer</A> vts)</PRE> 349<DL> 350<DD>Factory(-like) method that can be used to construct a new container 351 serializer that uses specified <A HREF="../../../../../com/fasterxml/jackson/databind/jsontype/TypeSerializer.html" title="class in com.fasterxml.jackson.databind.jsontype"><CODE>TypeSerializer</CODE></A> for decorating 352 contained values with additional type information. 353<P> 354<DD><DL> 355<DT><B>Parameters:</B><DD><CODE>vts</CODE> - Type serializer to use for contained values; can be null, 356 in which case 'this' serializer is returned as is 357<DT><B>Returns:</B><DD>Serializer instance that uses given type serializer for values if 358 that is possible (or if not, just 'this' serializer)</DL> 359</DD> 360</DL> 361<HR> 362 363<A NAME="getContentType()"><!-- --></A><H3> 364getContentType</H3> 365<PRE> 366public abstract <A HREF="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</A> <B>getContentType</B>()</PRE> 367<DL> 368<DD>Accessor for finding declared (static) element type for 369 type this serializer is used for. 370<P> 371<DD><DL> 372</DL> 373</DD> 374</DL> 375<HR> 376 377<A NAME="getContentSerializer()"><!-- --></A><H3> 378getContentSerializer</H3> 379<PRE> 380public abstract <A HREF="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind">JsonSerializer</A><?> <B>getContentSerializer</B>()</PRE> 381<DL> 382<DD>Accessor for serializer used for serializing contents 383 (List and array elements, Map values etc) of the 384 container for which this serializer is used, if it is 385 known statically. 386 Note that for dynamic types this may return null; if so, 387 caller has to instead use <A HREF="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html#getContentType()"><CODE>getContentType()</CODE></A> and 388 <A HREF="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html#findValueSerializer(java.lang.Class, com.fasterxml.jackson.databind.BeanProperty)"><CODE>SerializerProvider.findValueSerializer(java.lang.Class<?>, com.fasterxml.jackson.databind.BeanProperty)</CODE></A>. 389<P> 390<DD><DL> 391</DL> 392</DD> 393</DL> 394<HR> 395 396<A NAME="isEmpty(java.lang.Object)"><!-- --></A><A NAME="isEmpty(T)"><!-- --></A><H3> 397isEmpty</H3> 398<PRE> 399public abstract boolean <B>isEmpty</B>(<A HREF="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html" title="type parameter in ContainerSerializer">T</A> value)</PRE> 400<DL> 401<DD><B>Description copied from class: <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html#isEmpty(T)">JsonSerializer</A></CODE></B></DD> 402<DD>Method called to check whether given serializable value is 403 considered "empty" value (for purposes of suppressing serialization 404 of empty values). 405<p> 406 Default implementation will consider only null values to be empty. 407<P> 408<DD><DL> 409<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html#isEmpty(T)">isEmpty</A></CODE> in class <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind">JsonSerializer</A><<A HREF="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html" title="type parameter in ContainerSerializer">T</A>></CODE></DL> 410</DD> 411<DD><DL> 412</DL> 413</DD> 414</DL> 415<HR> 416 417<A NAME="hasSingleElement(java.lang.Object)"><!-- --></A><A NAME="hasSingleElement(T)"><!-- --></A><H3> 418hasSingleElement</H3> 419<PRE> 420public abstract boolean <B>hasSingleElement</B>(<A HREF="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html" title="type parameter in ContainerSerializer">T</A> value)</PRE> 421<DL> 422<DD>Method called to determine if the given value (of type handled by 423 this serializer) contains exactly one element. 424<p> 425 Note: although it might seem sensible to instead define something 426 like "getElementCount()" method, this would not work well for 427 containers that do not keep track of size (like linked lists may 428 not). 429<P> 430<DD><DL> 431</DL> 432</DD> 433</DL> 434<HR> 435 436<A NAME="_withValueTypeSerializer(com.fasterxml.jackson.databind.jsontype.TypeSerializer)"><!-- --></A><H3> 437_withValueTypeSerializer</H3> 438<PRE> 439protected abstract <A HREF="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html" title="class in com.fasterxml.jackson.databind.ser">ContainerSerializer</A><?> <B>_withValueTypeSerializer</B>(<A HREF="../../../../../com/fasterxml/jackson/databind/jsontype/TypeSerializer.html" title="class in com.fasterxml.jackson.databind.jsontype">TypeSerializer</A> vts)</PRE> 440<DL> 441<DD>Method that needs to be implemented to allow construction of a new 442 serializer object with given <A HREF="../../../../../com/fasterxml/jackson/databind/jsontype/TypeSerializer.html" title="class in com.fasterxml.jackson.databind.jsontype"><CODE>TypeSerializer</CODE></A>, used when 443 addition type information is to be embedded. 444<P> 445<DD><DL> 446</DL> 447</DD> 448</DL> 449<!-- ========= END OF CLASS DATA ========= --> 450<HR> 451 452 453<!-- ======= START OF BOTTOM NAVBAR ====== --> 454<A NAME="navbar_bottom"><!-- --></A> 455<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> 456<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 457<TR> 458<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 459<A NAME="navbar_bottom_firstrow"><!-- --></A> 460<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 461 <TR ALIGN="center" VALIGN="top"> 462 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 463 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 464 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 465 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/ContainerSerializer.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> 466 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 467 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 468 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 469 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 470 </TR> 471</TABLE> 472</TD> 473<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 474</EM> 475</TD> 476</TR> 477 478<TR> 479<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 480 <A HREF="../../../../../com/fasterxml/jackson/databind/ser/BeanSerializerModifier.html" title="class in com.fasterxml.jackson.databind.ser"><B>PREV CLASS</B></A> 481 <A HREF="../../../../../com/fasterxml/jackson/databind/ser/ContextualSerializer.html" title="interface in com.fasterxml.jackson.databind.ser"><B>NEXT CLASS</B></A></FONT></TD> 482<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 483 <A HREF="../../../../../index.html?com/fasterxml/jackson/databind/ser/ContainerSerializer.html" target="_top"><B>FRAMES</B></A> 484 <A HREF="ContainerSerializer.html" target="_top"><B>NO FRAMES</B></A> 485 <SCRIPT type="text/javascript"> 486 <!-- 487 if(window==top) { 488 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); 489 } 490 //--> 491</SCRIPT> 492<NOSCRIPT> 493 <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> 494</NOSCRIPT> 495 496 497</FONT></TD> 498</TR> 499<TR> 500<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 501 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.StdSerializer">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> 502<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 503DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> 504</TR> 505</TABLE> 506<A NAME="skip-navbar_bottom"></A> 507<!-- ======== END OF BOTTOM NAVBAR ======= --> 508 509<HR> 510Copyright © 2012 <a href="http://fasterxml.com">fasterxml.com</a>. All Rights Reserved. 511</BODY> 512</HTML> 513