• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2<!--NewPage-->
3<HTML>
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>
8ContainerSerializer (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="ContainerSerializer (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>&nbsp;</TD>
42  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
43  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
44  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/ContainerSerializer.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
45  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
46  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
47  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
48  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</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&nbsp;<A HREF="../../../../../com/fasterxml/jackson/databind/ser/BeanSerializerModifier.html" title="class in com.fasterxml.jackson.databind.ser"><B>PREV CLASS</B></A>&nbsp;
60&nbsp;<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>  &nbsp;
63&nbsp;<A HREF="ContainerSerializer.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
64&nbsp;<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:&nbsp;<A HREF="#nested_classes_inherited_from_class_com.fasterxml.jackson.databind.JsonSerializer">NESTED</A>&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_com.fasterxml.jackson.databind.ser.std.StdSerializer">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
81<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
82DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<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&lt;T&gt;</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>&lt;T&gt;
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>&lt;T&gt;
99          <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>com.fasterxml.jackson.databind.ser.ContainerSerializer&lt;T&gt;</B>
100</PRE>
101<DL>
102<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></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&lt;T&gt;</B><DT>extends <A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html" title="class in com.fasterxml.jackson.databind.ser.std">StdSerializer</A>&lt;T&gt;</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&nbsp;<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&nbsp;
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&nbsp;<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&nbsp;
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>&lt;?&gt;&nbsp;t,
174                    boolean&nbsp;dummy)</CODE>
175
176<BR>
177&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&lt;<A HREF="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html" title="type parameter in ContainerSerializer">T</A>&gt;&nbsp;t)</CODE>
184
185<BR>
186&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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>&lt;?&gt;&nbsp;src)</CODE>
192
193<BR>
194&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
195</TR>
196</TABLE>
197&nbsp;
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 &nbsp;<A HREF="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html" title="class in com.fasterxml.jackson.databind.ser">ContainerSerializer</A>&lt;?&gt;</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>&nbsp;vts)</CODE>
210
211<BR>
212&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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 &nbsp;<A HREF="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind">JsonSerializer</A>&lt;?&gt;</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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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 &nbsp;<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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>protected &nbsp;boolean</CODE></FONT></TD>
239<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html#hasContentTypeAnnotation(com.fasterxml.jackson.databind.SerializerProvider, com.fasterxml.jackson.databind.BeanProperty)">hasContentTypeAnnotation</A></B>(<A HREF="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html" title="class in com.fasterxml.jackson.databind">SerializerProvider</A>&nbsp;provider,
240                         <A HREF="../../../../../com/fasterxml/jackson/databind/BeanProperty.html" title="interface in com.fasterxml.jackson.databind">BeanProperty</A>&nbsp;property)</CODE>
241
242<BR>
243&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Helper method used to encapsulate logic for determining whether there is
244 a property annotation that overrides element type; if so, we can
245 and need to statically find the serializer.</TD>
246</TR>
247<TR BGCOLOR="white" CLASS="TableRowColor">
248<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
249<CODE>abstract &nbsp;boolean</CODE></FONT></TD>
250<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>&nbsp;value)</CODE>
251
252<BR>
253&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Method called to determine if the given value (of type handled by
254 this serializer) contains exactly one element.</TD>
255</TR>
256<TR BGCOLOR="white" CLASS="TableRowColor">
257<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
258<CODE>abstract &nbsp;boolean</CODE></FONT></TD>
259<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>&nbsp;value)</CODE>
260
261<BR>
262&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Method called to check whether given serializable value is
263 considered "empty" value (for purposes of suppressing serialization
264 of empty values).</TD>
265</TR>
266<TR BGCOLOR="white" CLASS="TableRowColor">
267<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
268<CODE>&nbsp;<A HREF="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html" title="class in com.fasterxml.jackson.databind.ser">ContainerSerializer</A>&lt;?&gt;</CODE></FONT></TD>
269<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>&nbsp;vts)</CODE>
270
271<BR>
272&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Factory(-like) method that can be used to construct a new container
273 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
274 contained values with additional type information.</TD>
275</TR>
276</TABLE>
277&nbsp;<A NAME="methods_inherited_from_class_com.fasterxml.jackson.databind.ser.std.StdSerializer"><!-- --></A>
278<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
279<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
280<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>
281</TR>
282<TR BGCOLOR="white" CLASS="TableRowColor">
283<TD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/ser/std/StdSerializer.html#acceptJsonFormatVisitor(com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitorWrapper, com.fasterxml.jackson.databind.JavaType)">acceptJsonFormatVisitor</A>, <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#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#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>
284</TR>
285</TABLE>
286&nbsp;<A NAME="methods_inherited_from_class_com.fasterxml.jackson.databind.JsonSerializer"><!-- --></A>
287<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
288<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
289<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>
290</TR>
291<TR BGCOLOR="white" CLASS="TableRowColor">
292<TD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html#getDelegatee()">getDelegatee</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>, <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>
293</TR>
294</TABLE>
295&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
296<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
297<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
298<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>
299</TR>
300<TR BGCOLOR="white" CLASS="TableRowColor">
301<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>
302</TR>
303</TABLE>
304&nbsp;
305<P>
306
307<!-- ========= CONSTRUCTOR DETAIL ======== -->
308
309<A NAME="constructor_detail"><!-- --></A>
310<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
311<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
312<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
313<B>Constructor Detail</B></FONT></TH>
314</TR>
315</TABLE>
316
317<A NAME="ContainerSerializer(java.lang.Class)"><!-- --></A><H3>
318ContainerSerializer</H3>
319<PRE>
320protected <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>&lt;<A HREF="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html" title="type parameter in ContainerSerializer">T</A>&gt;&nbsp;t)</PRE>
321<DL>
322</DL>
323<HR>
324
325<A NAME="ContainerSerializer(java.lang.Class, boolean)"><!-- --></A><H3>
326ContainerSerializer</H3>
327<PRE>
328protected <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>&lt;?&gt;&nbsp;t,
329                              boolean&nbsp;dummy)</PRE>
330<DL>
331<DD>Alternate constructor that is (alas!) needed to work
332 around kinks of generic type handling
333<P>
334<DL>
335<DT><B>Parameters:</B><DD><CODE>t</CODE> - </DL>
336</DL>
337<HR>
338
339<A NAME="ContainerSerializer(com.fasterxml.jackson.databind.ser.ContainerSerializer)"><!-- --></A><H3>
340ContainerSerializer</H3>
341<PRE>
342protected <B>ContainerSerializer</B>(<A HREF="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html" title="class in com.fasterxml.jackson.databind.ser">ContainerSerializer</A>&lt;?&gt;&nbsp;src)</PRE>
343<DL>
344</DL>
345
346<!-- ============ METHOD DETAIL ========== -->
347
348<A NAME="method_detail"><!-- --></A>
349<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
350<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
351<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
352<B>Method Detail</B></FONT></TH>
353</TR>
354</TABLE>
355
356<A NAME="withValueTypeSerializer(com.fasterxml.jackson.databind.jsontype.TypeSerializer)"><!-- --></A><H3>
357withValueTypeSerializer</H3>
358<PRE>
359public <A HREF="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html" title="class in com.fasterxml.jackson.databind.ser">ContainerSerializer</A>&lt;?&gt; <B>withValueTypeSerializer</B>(<A HREF="../../../../../com/fasterxml/jackson/databind/jsontype/TypeSerializer.html" title="class in com.fasterxml.jackson.databind.jsontype">TypeSerializer</A>&nbsp;vts)</PRE>
360<DL>
361<DD>Factory(-like) method that can be used to construct a new container
362 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
363 contained values with additional type information.
364<P>
365<DD><DL>
366<DT><B>Parameters:</B><DD><CODE>vts</CODE> - Type serializer to use for contained values; can be null,
367    in which case 'this' serializer is returned as is
368<DT><B>Returns:</B><DD>Serializer instance that uses given type serializer for values if
369    that is possible (or if not, just 'this' serializer)</DL>
370</DD>
371</DL>
372<HR>
373
374<A NAME="getContentType()"><!-- --></A><H3>
375getContentType</H3>
376<PRE>
377public abstract <A HREF="../../../../../com/fasterxml/jackson/databind/JavaType.html" title="class in com.fasterxml.jackson.databind">JavaType</A> <B>getContentType</B>()</PRE>
378<DL>
379<DD>Accessor for finding declared (static) element type for
380 type this serializer is used for.
381<P>
382<DD><DL>
383</DL>
384</DD>
385</DL>
386<HR>
387
388<A NAME="getContentSerializer()"><!-- --></A><H3>
389getContentSerializer</H3>
390<PRE>
391public abstract <A HREF="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html" title="class in com.fasterxml.jackson.databind">JsonSerializer</A>&lt;?&gt; <B>getContentSerializer</B>()</PRE>
392<DL>
393<DD>Accessor for serializer used for serializing contents
394 (List and array elements, Map values etc) of the
395 container for which this serializer is used, if it is
396 known statically.
397 Note that for dynamic types this may return null; if so,
398 caller has to instead use <A HREF="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html#getContentType()"><CODE>getContentType()</CODE></A> and
399 <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>.
400<P>
401<DD><DL>
402</DL>
403</DD>
404</DL>
405<HR>
406
407<A NAME="isEmpty(java.lang.Object)"><!-- --></A><A NAME="isEmpty(T)"><!-- --></A><H3>
408isEmpty</H3>
409<PRE>
410public abstract boolean <B>isEmpty</B>(<A HREF="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html" title="type parameter in ContainerSerializer">T</A>&nbsp;value)</PRE>
411<DL>
412<DD><B>Description copied from class: <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonSerializer.html#isEmpty(T)">JsonSerializer</A></CODE></B></DD>
413<DD>Method called to check whether given serializable value is
414 considered "empty" value (for purposes of suppressing serialization
415 of empty values).
416<p>
417 Default implementation will consider only null values to be empty.
418<P>
419<DD><DL>
420<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>&lt;<A HREF="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html" title="type parameter in ContainerSerializer">T</A>&gt;</CODE></DL>
421</DD>
422<DD><DL>
423</DL>
424</DD>
425</DL>
426<HR>
427
428<A NAME="hasSingleElement(java.lang.Object)"><!-- --></A><A NAME="hasSingleElement(T)"><!-- --></A><H3>
429hasSingleElement</H3>
430<PRE>
431public abstract boolean <B>hasSingleElement</B>(<A HREF="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html" title="type parameter in ContainerSerializer">T</A>&nbsp;value)</PRE>
432<DL>
433<DD>Method called to determine if the given value (of type handled by
434 this serializer) contains exactly one element.
435<p>
436 Note: although it might seem sensible to instead define something
437 like "getElementCount()" method, this would not work well for
438 containers that do not keep track of size (like linked lists may
439 not).
440<P>
441<DD><DL>
442</DL>
443</DD>
444</DL>
445<HR>
446
447<A NAME="_withValueTypeSerializer(com.fasterxml.jackson.databind.jsontype.TypeSerializer)"><!-- --></A><H3>
448_withValueTypeSerializer</H3>
449<PRE>
450protected abstract <A HREF="../../../../../com/fasterxml/jackson/databind/ser/ContainerSerializer.html" title="class in com.fasterxml.jackson.databind.ser">ContainerSerializer</A>&lt;?&gt; <B>_withValueTypeSerializer</B>(<A HREF="../../../../../com/fasterxml/jackson/databind/jsontype/TypeSerializer.html" title="class in com.fasterxml.jackson.databind.jsontype">TypeSerializer</A>&nbsp;vts)</PRE>
451<DL>
452<DD>Method that needs to be implemented to allow construction of a new
453 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
454 addition type information is to be embedded.
455<P>
456<DD><DL>
457</DL>
458</DD>
459</DL>
460<HR>
461
462<A NAME="hasContentTypeAnnotation(com.fasterxml.jackson.databind.SerializerProvider, com.fasterxml.jackson.databind.BeanProperty)"><!-- --></A><H3>
463hasContentTypeAnnotation</H3>
464<PRE>
465protected boolean <B>hasContentTypeAnnotation</B>(<A HREF="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html" title="class in com.fasterxml.jackson.databind">SerializerProvider</A>&nbsp;provider,
466                                           <A HREF="../../../../../com/fasterxml/jackson/databind/BeanProperty.html" title="interface in com.fasterxml.jackson.databind">BeanProperty</A>&nbsp;property)</PRE>
467<DL>
468<DD>Helper method used to encapsulate logic for determining whether there is
469 a property annotation that overrides element type; if so, we can
470 and need to statically find the serializer.
471<P>
472<DD><DL>
473<DT><B>Since:</B></DT>
474  <DD>2.1</DD>
475</DL>
476</DD>
477</DL>
478<!-- ========= END OF CLASS DATA ========= -->
479<HR>
480
481
482<!-- ======= START OF BOTTOM NAVBAR ====== -->
483<A NAME="navbar_bottom"><!-- --></A>
484<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
485<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
486<TR>
487<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
488<A NAME="navbar_bottom_firstrow"><!-- --></A>
489<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
490  <TR ALIGN="center" VALIGN="top">
491  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
492  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
493  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
494  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/ContainerSerializer.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
495  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
496  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
497  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
498  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
499  </TR>
500</TABLE>
501</TD>
502<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
503</EM>
504</TD>
505</TR>
506
507<TR>
508<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
509&nbsp;<A HREF="../../../../../com/fasterxml/jackson/databind/ser/BeanSerializerModifier.html" title="class in com.fasterxml.jackson.databind.ser"><B>PREV CLASS</B></A>&nbsp;
510&nbsp;<A HREF="../../../../../com/fasterxml/jackson/databind/ser/ContextualSerializer.html" title="interface in com.fasterxml.jackson.databind.ser"><B>NEXT CLASS</B></A></FONT></TD>
511<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
512  <A HREF="../../../../../index.html?com/fasterxml/jackson/databind/ser/ContainerSerializer.html" target="_top"><B>FRAMES</B></A>  &nbsp;
513&nbsp;<A HREF="ContainerSerializer.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
514&nbsp;<SCRIPT type="text/javascript">
515  <!--
516  if(window==top) {
517    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
518  }
519  //-->
520</SCRIPT>
521<NOSCRIPT>
522  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
523</NOSCRIPT>
524
525
526</FONT></TD>
527</TR>
528<TR>
529<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
530  SUMMARY:&nbsp;<A HREF="#nested_classes_inherited_from_class_com.fasterxml.jackson.databind.JsonSerializer">NESTED</A>&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_com.fasterxml.jackson.databind.ser.std.StdSerializer">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
531<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
532DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
533</TR>
534</TABLE>
535<A NAME="skip-navbar_bottom"></A>
536<!-- ======== END OF BOTTOM NAVBAR ======= -->
537
538<HR>
539Copyright &#169; 2012 <a href="http://fasterxml.com/">FasterXML</a>. All Rights Reserved.
540</BODY>
541</HTML>
542