1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2<!-- NewPage --> 3<html lang="en"> 4<head> 5<!-- Generated by javadoc (version 1.7.0_10-ea) on Mon Apr 22 19:34:31 PDT 2013 --> 6<meta http-equiv="Content-Type" content="text/html" charset="UTF-8"> 7<title>JsonInclude (Jackson-annotations 2.2.0 API)</title> 8<meta name="date" content="2013-04-22"> 9<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> 10</head> 11<body> 12<script type="text/javascript"><!-- 13 if (location.href.indexOf('is-external=true') == -1) { 14 parent.document.title="JsonInclude (Jackson-annotations 2.2.0 API)"; 15 } 16//--> 17</script> 18<noscript> 19<div>JavaScript is disabled on your browser.</div> 20</noscript> 21<!-- ========= START OF TOP NAVBAR ======= --> 22<div class="topNav"><a name="navbar_top"> 23<!-- --> 24</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> 25<!-- --> 26</a> 27<ul class="navList" title="Navigation"> 28<li><a href="../../../../com/fasterxml/jackson/annotation/package-summary.html">Package</a></li> 29<li class="navBarCell1Rev">Class</li> 30<li><a href="class-use/JsonInclude.html">Use</a></li> 31<li><a href="package-tree.html">Tree</a></li> 32<li><a href="../../../../deprecated-list.html">Deprecated</a></li> 33<li><a href="../../../../index-all.html">Index</a></li> 34<li><a href="../../../../help-doc.html">Help</a></li> 35</ul> 36</div> 37<div class="subNav"> 38<ul class="navList"> 39<li><a href="../../../../com/fasterxml/jackson/annotation/JsonIgnoreType.html" title="annotation in com.fasterxml.jackson.annotation"><span class="strong">Prev Class</span></a></li> 40<li><a href="../../../../com/fasterxml/jackson/annotation/JsonInclude.Include.html" title="enum in com.fasterxml.jackson.annotation"><span class="strong">Next Class</span></a></li> 41</ul> 42<ul class="navList"> 43<li><a href="../../../../index.html?com/fasterxml/jackson/annotation/JsonInclude.html" target="_top">Frames</a></li> 44<li><a href="JsonInclude.html" target="_top">No Frames</a></li> 45</ul> 46<ul class="navList" id="allclasses_navbar_top"> 47<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> 48</ul> 49<div> 50<script type="text/javascript"><!-- 51 allClassesLink = document.getElementById("allclasses_navbar_top"); 52 if(window==top) { 53 allClassesLink.style.display = "block"; 54 } 55 else { 56 allClassesLink.style.display = "none"; 57 } 58 //--> 59</script> 60</div> 61<div> 62<ul class="subNavList"> 63<li>Summary: </li> 64<li>Required | </li> 65<li><a href="#annotation_type_optional_element_summary">Optional</a></li> 66</ul> 67<ul class="subNavList"> 68<li>Detail: </li> 69<li><a href="#annotation_type_element_detail">Element</a></li> 70</ul> 71</div> 72<a name="skip-navbar_top"> 73<!-- --> 74</a></div> 75<!-- ========= END OF TOP NAVBAR ========= --> 76<!-- ======== START OF CLASS DATA ======== --> 77<div class="header"> 78<div class="subTitle">com.fasterxml.jackson.annotation</div> 79<h2 title="Annotation Type JsonInclude" class="title">Annotation Type JsonInclude</h2> 80</div> 81<div class="contentContainer"> 82<div class="description"> 83<ul class="blockList"> 84<li class="blockList"> 85<hr> 86<br> 87<pre><a href="http://download.oracle.com/javase/6/docs/api/java/lang/annotation/Target.html?is-external=true" title="class or interface in java.lang.annotation">@Target</a>(<a href="http://download.oracle.com/javase/6/docs/api/java/lang/annotation/Target.html?is-external=true#value()" title="class or interface in java.lang.annotation">value</a>={<a href="http://download.oracle.com/javase/6/docs/api/java/lang/annotation/ElementType.html?is-external=true#ANNOTATION_TYPE" title="class or interface in java.lang.annotation">ANNOTATION_TYPE</a>,<a href="http://download.oracle.com/javase/6/docs/api/java/lang/annotation/ElementType.html?is-external=true#METHOD" title="class or interface in java.lang.annotation">METHOD</a>,<a href="http://download.oracle.com/javase/6/docs/api/java/lang/annotation/ElementType.html?is-external=true#FIELD" title="class or interface in java.lang.annotation">FIELD</a>,<a href="http://download.oracle.com/javase/6/docs/api/java/lang/annotation/ElementType.html?is-external=true#TYPE" title="class or interface in java.lang.annotation">TYPE</a>,<a href="http://download.oracle.com/javase/6/docs/api/java/lang/annotation/ElementType.html?is-external=true#PARAMETER" title="class or interface in java.lang.annotation">PARAMETER</a>}) 88<a href="http://download.oracle.com/javase/6/docs/api/java/lang/annotation/Retention.html?is-external=true" title="class or interface in java.lang.annotation">@Retention</a>(<a href="http://download.oracle.com/javase/6/docs/api/java/lang/annotation/Retention.html?is-external=true#value()" title="class or interface in java.lang.annotation">value</a>=<a href="http://download.oracle.com/javase/6/docs/api/java/lang/annotation/RetentionPolicy.html?is-external=true#RUNTIME" title="class or interface in java.lang.annotation">RUNTIME</a>) 89public @interface <span class="strong">JsonInclude</span></pre> 90<div class="block">Annotation used to indicate when value of the annotated property (when 91 used for a field, method or constructor parameter), or all 92 properties of the annotated class, is to be serialized. 93 Without annotation property values are always included, but by using 94 this annotation one can specify simple exclusion rules to reduce 95 amount of properties to write out.</div> 96<dl><dt><span class="strong">Since:</span></dt> 97 <dd>2.0</dd></dl> 98</li> 99</ul> 100</div> 101<div class="summary"> 102<ul class="blockList"> 103<li class="blockList"> 104<!-- =========== ANNOTATION TYPE OPTIONAL MEMBER SUMMARY =========== --> 105<ul class="blockList"> 106<li class="blockList"><a name="annotation_type_optional_element_summary"> 107<!-- --> 108</a> 109<h3>Optional Element Summary</h3> 110<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Optional Element Summary table, listing optional elements, and an explanation"> 111<caption><span>Optional Elements</span><span class="tabEnd"> </span></caption> 112<tr> 113<th class="colFirst" scope="col">Modifier and Type</th> 114<th class="colLast" scope="col">Optional Element and Description</th> 115</tr> 116<tr class="altColor"> 117<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/annotation/JsonInclude.Include.html" title="enum in com.fasterxml.jackson.annotation">JsonInclude.Include</a></code></td> 118<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/annotation/JsonInclude.html#value()">value</a></strong></code> 119<div class="block">Inclusion rule to use.</div> 120</td> 121</tr> 122</table> 123</li> 124</ul> 125</li> 126</ul> 127</div> 128<div class="details"> 129<ul class="blockList"> 130<li class="blockList"> 131<!-- ============ ANNOTATION TYPE MEMBER DETAIL =========== --> 132<ul class="blockList"> 133<li class="blockList"><a name="annotation_type_element_detail"> 134<!-- --> 135</a> 136<h3>Element Detail</h3> 137<a name="value()"> 138<!-- --> 139</a> 140<ul class="blockListLast"> 141<li class="blockList"> 142<h4>value</h4> 143<pre>public abstract <a href="../../../../com/fasterxml/jackson/annotation/JsonInclude.Include.html" title="enum in com.fasterxml.jackson.annotation">JsonInclude.Include</a> value</pre> 144<div class="block">Inclusion rule to use.</div> 145<dl> 146<dt>Default:</dt> 147<dd>com.fasterxml.jackson.annotation.JsonInclude.Include.ALWAYS</dd> 148</dl> 149</li> 150</ul> 151</li> 152</ul> 153</li> 154</ul> 155</div> 156</div> 157<!-- ========= END OF CLASS DATA ========= --> 158<!-- ======= START OF BOTTOM NAVBAR ====== --> 159<div class="bottomNav"><a name="navbar_bottom"> 160<!-- --> 161</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> 162<!-- --> 163</a> 164<ul class="navList" title="Navigation"> 165<li><a href="../../../../com/fasterxml/jackson/annotation/package-summary.html">Package</a></li> 166<li class="navBarCell1Rev">Class</li> 167<li><a href="class-use/JsonInclude.html">Use</a></li> 168<li><a href="package-tree.html">Tree</a></li> 169<li><a href="../../../../deprecated-list.html">Deprecated</a></li> 170<li><a href="../../../../index-all.html">Index</a></li> 171<li><a href="../../../../help-doc.html">Help</a></li> 172</ul> 173</div> 174<div class="subNav"> 175<ul class="navList"> 176<li><a href="../../../../com/fasterxml/jackson/annotation/JsonIgnoreType.html" title="annotation in com.fasterxml.jackson.annotation"><span class="strong">Prev Class</span></a></li> 177<li><a href="../../../../com/fasterxml/jackson/annotation/JsonInclude.Include.html" title="enum in com.fasterxml.jackson.annotation"><span class="strong">Next Class</span></a></li> 178</ul> 179<ul class="navList"> 180<li><a href="../../../../index.html?com/fasterxml/jackson/annotation/JsonInclude.html" target="_top">Frames</a></li> 181<li><a href="JsonInclude.html" target="_top">No Frames</a></li> 182</ul> 183<ul class="navList" id="allclasses_navbar_bottom"> 184<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> 185</ul> 186<div> 187<script type="text/javascript"><!-- 188 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 189 if(window==top) { 190 allClassesLink.style.display = "block"; 191 } 192 else { 193 allClassesLink.style.display = "none"; 194 } 195 //--> 196</script> 197</div> 198<div> 199<ul class="subNavList"> 200<li>Summary: </li> 201<li>Required | </li> 202<li><a href="#annotation_type_optional_element_summary">Optional</a></li> 203</ul> 204<ul class="subNavList"> 205<li>Detail: </li> 206<li><a href="#annotation_type_element_detail">Element</a></li> 207</ul> 208</div> 209<a name="skip-navbar_bottom"> 210<!-- --> 211</a></div> 212<!-- ======== END OF BOTTOM NAVBAR ======= --> 213<p class="legalCopy"><small>Copyright © 2012-2013 <a href="http://fasterxml.com/">FasterXML</a>. All Rights Reserved.</small></p> 214</body> 215</html> 216