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 Sun Jul 14 20:03:21 PDT 2013 --> 6<title>JsonAnySetter (Jackson JSON Processor)</title> 7<meta name="date" content="2013-07-14"> 8<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> 9</head> 10<body> 11<script type="text/javascript"><!-- 12 if (location.href.indexOf('is-external=true') == -1) { 13 parent.document.title="JsonAnySetter (Jackson JSON Processor)"; 14 } 15//--> 16</script> 17<noscript> 18<div>JavaScript is disabled on your browser.</div> 19</noscript> 20<!-- ========= START OF TOP NAVBAR ======= --> 21<div class="topNav"><a name="navbar_top"> 22<!-- --> 23</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> 24<!-- --> 25</a> 26<ul class="navList" title="Navigation"> 27<li><a href="../../../../overview-summary.html">Overview</a></li> 28<li><a href="package-summary.html">Package</a></li> 29<li class="navBarCell1Rev">Class</li> 30<li><a href="class-use/JsonAnySetter.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="../../../../org/codehaus/jackson/annotate/JsonAnyGetter.html" title="annotation in org.codehaus.jackson.annotate"><span class="strong">Prev Class</span></a></li> 40<li><a href="../../../../org/codehaus/jackson/annotate/JsonAutoDetect.html" title="annotation in org.codehaus.jackson.annotate"><span class="strong">Next Class</span></a></li> 41</ul> 42<ul class="navList"> 43<li><a href="../../../../index.html?org/codehaus/jackson/annotate/JsonAnySetter.html" target="_top">Frames</a></li> 44<li><a href="JsonAnySetter.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>Optional</li> 66</ul> 67<ul class="subNavList"> 68<li>Detail: </li> 69<li>Element</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">org.codehaus.jackson.annotate</div> 79<h2 title="Annotation Type JsonAnySetter" class="title">Annotation Type JsonAnySetter</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://docs.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://docs.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://docs.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>) 88<a href="http://docs.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://docs.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://docs.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">JsonAnySetter</span></pre> 90<div class="block">Marker annotation that can be used to define a non-static, 91 single-argument method, to be used as a "fallback" handler 92 for all otherwise unrecognized properties found from Json content. 93 It is similar to <a href="http://docs.oracle.com/javase/6/docs/api/javax/xml/bind/annotation/XmlAnyElement.html?is-external=true" title="class or interface in javax.xml.bind.annotation"><code>XmlAnyElement</code></a> 94 in behavior; and can only be used to denote a single property 95 per type. 96<p> 97 If used, all otherwise unmapped key-value pairs from Json Object 98 structs are added to the property (of type Map or bean).</div> 99</li> 100</ul> 101</div> 102</div> 103<!-- ========= END OF CLASS DATA ========= --> 104<!-- ======= START OF BOTTOM NAVBAR ====== --> 105<div class="bottomNav"><a name="navbar_bottom"> 106<!-- --> 107</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> 108<!-- --> 109</a> 110<ul class="navList" title="Navigation"> 111<li><a href="../../../../overview-summary.html">Overview</a></li> 112<li><a href="package-summary.html">Package</a></li> 113<li class="navBarCell1Rev">Class</li> 114<li><a href="class-use/JsonAnySetter.html">Use</a></li> 115<li><a href="package-tree.html">Tree</a></li> 116<li><a href="../../../../deprecated-list.html">Deprecated</a></li> 117<li><a href="../../../../index-all.html">Index</a></li> 118<li><a href="../../../../help-doc.html">Help</a></li> 119</ul> 120</div> 121<div class="subNav"> 122<ul class="navList"> 123<li><a href="../../../../org/codehaus/jackson/annotate/JsonAnyGetter.html" title="annotation in org.codehaus.jackson.annotate"><span class="strong">Prev Class</span></a></li> 124<li><a href="../../../../org/codehaus/jackson/annotate/JsonAutoDetect.html" title="annotation in org.codehaus.jackson.annotate"><span class="strong">Next Class</span></a></li> 125</ul> 126<ul class="navList"> 127<li><a href="../../../../index.html?org/codehaus/jackson/annotate/JsonAnySetter.html" target="_top">Frames</a></li> 128<li><a href="JsonAnySetter.html" target="_top">No Frames</a></li> 129</ul> 130<ul class="navList" id="allclasses_navbar_bottom"> 131<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> 132</ul> 133<div> 134<script type="text/javascript"><!-- 135 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 136 if(window==top) { 137 allClassesLink.style.display = "block"; 138 } 139 else { 140 allClassesLink.style.display = "none"; 141 } 142 //--> 143</script> 144</div> 145<div> 146<ul class="subNavList"> 147<li>Summary: </li> 148<li>Required | </li> 149<li>Optional</li> 150</ul> 151<ul class="subNavList"> 152<li>Detail: </li> 153<li>Element</li> 154</ul> 155</div> 156<a name="skip-navbar_bottom"> 157<!-- --> 158</a></div> 159<!-- ======== END OF BOTTOM NAVBAR ======= --> 160</body> 161</html> 162