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_25) on Wed Nov 13 20:23:19 PST 2013 --> 6<meta http-equiv="Content-Type" content="text/html" charset="UTF-8"> 7<title>JsonRootName (Jackson-annotations 2.3.0 API)</title> 8<meta name="date" content="2013-11-13"> 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="JsonRootName (Jackson-annotations 2.3.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/JsonRootName.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/JsonRawValue.html" title="annotation in com.fasterxml.jackson.annotation"><span class="strong">Prev Class</span></a></li> 40<li><a href="../../../../com/fasterxml/jackson/annotation/JsonSetter.html" title="annotation 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/JsonRootName.html" target="_top">Frames</a></li> 44<li><a href="JsonRootName.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><a href="#annotation_type_required_element_summary">Required</a> | </li> 65<li>Optional</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 JsonRootName" class="title">Annotation Type JsonRootName</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#TYPE" title="class or interface in java.lang.annotation">TYPE</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">JsonRootName</span></pre> 90<div class="block">Annotation similar to <a href="http://download.oracle.com/javase/6/docs/api/javax/xml/bind/annotation/XmlRootElement.html?is-external=true" title="class or interface in javax.xml.bind.annotation"><code>XmlRootElement</code></a>, 91 used to indicate name to use for root-level wrapping, if wrapping is 92 enabled. Annotation itself does not indicate that wrapping should 93 be used; but if it is, name used for serialization should be name 94 specified here, and deserializer will expect the name as well.</div> 95</li> 96</ul> 97</div> 98<div class="summary"> 99<ul class="blockList"> 100<li class="blockList"> 101<!-- =========== ANNOTATION TYPE REQUIRED MEMBER SUMMARY =========== --> 102<ul class="blockList"> 103<li class="blockList"><a name="annotation_type_required_element_summary"> 104<!-- --> 105</a> 106<h3>Required Element Summary</h3> 107<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Required Element Summary table, listing required elements, and an explanation"> 108<caption><span>Required Elements</span><span class="tabEnd"> </span></caption> 109<tr> 110<th class="colFirst" scope="col">Modifier and Type</th> 111<th class="colLast" scope="col">Required Element and Description</th> 112</tr> 113<tr class="altColor"> 114<td class="colFirst"><code><a href="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> 115<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/annotation/JsonRootName.html#value()">value</a></strong></code> 116<div class="block">Root name to use if root-level wrapping is enabled.</div> 117</td> 118</tr> 119</table> 120</li> 121</ul> 122</li> 123</ul> 124</div> 125<div class="details"> 126<ul class="blockList"> 127<li class="blockList"> 128<!-- ============ ANNOTATION TYPE MEMBER DETAIL =========== --> 129<ul class="blockList"> 130<li class="blockList"><a name="annotation_type_element_detail"> 131<!-- --> 132</a> 133<h3>Element Detail</h3> 134<a name="value()"> 135<!-- --> 136</a> 137<ul class="blockListLast"> 138<li class="blockList"> 139<h4>value</h4> 140<pre>public abstract <a href="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> value</pre> 141<div class="block">Root name to use if root-level wrapping is enabled.</div> 142</li> 143</ul> 144</li> 145</ul> 146</li> 147</ul> 148</div> 149</div> 150<!-- ========= END OF CLASS DATA ========= --> 151<!-- ======= START OF BOTTOM NAVBAR ====== --> 152<div class="bottomNav"><a name="navbar_bottom"> 153<!-- --> 154</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> 155<!-- --> 156</a> 157<ul class="navList" title="Navigation"> 158<li><a href="../../../../com/fasterxml/jackson/annotation/package-summary.html">Package</a></li> 159<li class="navBarCell1Rev">Class</li> 160<li><a href="class-use/JsonRootName.html">Use</a></li> 161<li><a href="package-tree.html">Tree</a></li> 162<li><a href="../../../../deprecated-list.html">Deprecated</a></li> 163<li><a href="../../../../index-all.html">Index</a></li> 164<li><a href="../../../../help-doc.html">Help</a></li> 165</ul> 166</div> 167<div class="subNav"> 168<ul class="navList"> 169<li><a href="../../../../com/fasterxml/jackson/annotation/JsonRawValue.html" title="annotation in com.fasterxml.jackson.annotation"><span class="strong">Prev Class</span></a></li> 170<li><a href="../../../../com/fasterxml/jackson/annotation/JsonSetter.html" title="annotation in com.fasterxml.jackson.annotation"><span class="strong">Next Class</span></a></li> 171</ul> 172<ul class="navList"> 173<li><a href="../../../../index.html?com/fasterxml/jackson/annotation/JsonRootName.html" target="_top">Frames</a></li> 174<li><a href="JsonRootName.html" target="_top">No Frames</a></li> 175</ul> 176<ul class="navList" id="allclasses_navbar_bottom"> 177<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> 178</ul> 179<div> 180<script type="text/javascript"><!-- 181 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 182 if(window==top) { 183 allClassesLink.style.display = "block"; 184 } 185 else { 186 allClassesLink.style.display = "none"; 187 } 188 //--> 189</script> 190</div> 191<div> 192<ul class="subNavList"> 193<li>Summary: </li> 194<li><a href="#annotation_type_required_element_summary">Required</a> | </li> 195<li>Optional</li> 196</ul> 197<ul class="subNavList"> 198<li>Detail: </li> 199<li><a href="#annotation_type_element_detail">Element</a></li> 200</ul> 201</div> 202<a name="skip-navbar_bottom"> 203<!-- --> 204</a></div> 205<!-- ======== END OF BOTTOM NAVBAR ======= --> 206<p class="legalCopy"><small>Copyright © 2012-2013 <a href="http://fasterxml.com/">FasterXML</a>. All Rights Reserved.</small></p> 207</body> 208</html> 209