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>JsonAutoDetect.Visibility (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="JsonAutoDetect.Visibility (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/JsonAutoDetect.Visibility.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/JsonAutoDetect.html" title="annotation in com.fasterxml.jackson.annotation"><span class="strong">Prev Class</span></a></li> 40<li><a href="../../../../com/fasterxml/jackson/annotation/JsonBackReference.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/JsonAutoDetect.Visibility.html" target="_top">Frames</a></li> 44<li><a href="JsonAutoDetect.Visibility.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>Nested | </li> 65<li><a href="#enum_constant_summary">Enum Constants</a> | </li> 66<li>Field | </li> 67<li><a href="#method_summary">Method</a></li> 68</ul> 69<ul class="subNavList"> 70<li>Detail: </li> 71<li><a href="#enum_constant_detail">Enum Constants</a> | </li> 72<li>Field | </li> 73<li><a href="#method_detail">Method</a></li> 74</ul> 75</div> 76<a name="skip-navbar_top"> 77<!-- --> 78</a></div> 79<!-- ========= END OF TOP NAVBAR ========= --> 80<!-- ======== START OF CLASS DATA ======== --> 81<div class="header"> 82<div class="subTitle">com.fasterxml.jackson.annotation</div> 83<h2 title="Enum JsonAutoDetect.Visibility" class="title">Enum JsonAutoDetect.Visibility</h2> 84</div> 85<div class="contentContainer"> 86<ul class="inheritance"> 87<li><a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> 88<li> 89<ul class="inheritance"> 90<li><a href="http://download.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">java.lang.Enum</a><<a href="../../../../com/fasterxml/jackson/annotation/JsonAutoDetect.Visibility.html" title="enum in com.fasterxml.jackson.annotation">JsonAutoDetect.Visibility</a>></li> 91<li> 92<ul class="inheritance"> 93<li>com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility</li> 94</ul> 95</li> 96</ul> 97</li> 98</ul> 99<div class="description"> 100<ul class="blockList"> 101<li class="blockList"> 102<dl> 103<dt>All Implemented Interfaces:</dt> 104<dd><a href="http://download.oracle.com/javase/6/docs/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Comparable.html?is-external=true" title="class or interface in java.lang">Comparable</a><<a href="../../../../com/fasterxml/jackson/annotation/JsonAutoDetect.Visibility.html" title="enum in com.fasterxml.jackson.annotation">JsonAutoDetect.Visibility</a>></dd> 105</dl> 106<dl> 107<dt>Enclosing class:</dt> 108<dd><a href="../../../../com/fasterxml/jackson/annotation/JsonAutoDetect.html" title="annotation in com.fasterxml.jackson.annotation">JsonAutoDetect</a></dd> 109</dl> 110<hr> 111<br> 112<pre>public static enum <span class="strong">JsonAutoDetect.Visibility</span> 113extends <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a><<a href="../../../../com/fasterxml/jackson/annotation/JsonAutoDetect.Visibility.html" title="enum in com.fasterxml.jackson.annotation">JsonAutoDetect.Visibility</a>></pre> 114<div class="block">Enumeration for possible visibility thresholds (minimum visibility) 115 that can be used to limit which methods (and fields) are 116 auto-detected.</div> 117</li> 118</ul> 119</div> 120<div class="summary"> 121<ul class="blockList"> 122<li class="blockList"> 123<!-- =========== ENUM CONSTANT SUMMARY =========== --> 124<ul class="blockList"> 125<li class="blockList"><a name="enum_constant_summary"> 126<!-- --> 127</a> 128<h3>Enum Constant Summary</h3> 129<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Enum Constant Summary table, listing enum constants, and an explanation"> 130<caption><span>Enum Constants</span><span class="tabEnd"> </span></caption> 131<tr> 132<th class="colOne" scope="col">Enum Constant and Description</th> 133</tr> 134<tr class="altColor"> 135<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/annotation/JsonAutoDetect.Visibility.html#ANY">ANY</a></strong></code> 136<div class="block">Value that means that all kinds of access modifiers are acceptable, 137 from private to public.</div> 138</td> 139</tr> 140<tr class="rowColor"> 141<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/annotation/JsonAutoDetect.Visibility.html#DEFAULT">DEFAULT</a></strong></code> 142<div class="block">Value that indicates that default visibility level (whatever it is, 143 depends on context) is to be used.</div> 144</td> 145</tr> 146<tr class="altColor"> 147<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/annotation/JsonAutoDetect.Visibility.html#NON_PRIVATE">NON_PRIVATE</a></strong></code> 148<div class="block">Value that means that any other access modifier other than 'private' 149 is considered auto-detectable.</div> 150</td> 151</tr> 152<tr class="rowColor"> 153<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/annotation/JsonAutoDetect.Visibility.html#NONE">NONE</a></strong></code> 154<div class="block">Value that indicates that no access modifiers are auto-detectable: 155 this can be used to explicitly disable auto-detection for specified 156 types.</div> 157</td> 158</tr> 159<tr class="altColor"> 160<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/annotation/JsonAutoDetect.Visibility.html#PROTECTED_AND_PUBLIC">PROTECTED_AND_PUBLIC</a></strong></code> 161<div class="block">Value that means access modifiers 'protected' and 'public' are 162 auto-detectable (and 'private' and "package access" == no modifiers 163 are not)</div> 164</td> 165</tr> 166<tr class="rowColor"> 167<td class="colOne"><code><strong><a href="../../../../com/fasterxml/jackson/annotation/JsonAutoDetect.Visibility.html#PUBLIC_ONLY">PUBLIC_ONLY</a></strong></code> 168<div class="block">Value to indicate that only 'public' access modifier is considered 169 auto-detectable.</div> 170</td> 171</tr> 172</table> 173</li> 174</ul> 175<!-- ========== METHOD SUMMARY =========== --> 176<ul class="blockList"> 177<li class="blockList"><a name="method_summary"> 178<!-- --> 179</a> 180<h3>Method Summary</h3> 181<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> 182<caption><span>Methods</span><span class="tabEnd"> </span></caption> 183<tr> 184<th class="colFirst" scope="col">Modifier and Type</th> 185<th class="colLast" scope="col">Method and Description</th> 186</tr> 187<tr class="altColor"> 188<td class="colFirst"><code>boolean</code></td> 189<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/annotation/JsonAutoDetect.Visibility.html#isVisible(java.lang.reflect.Member)">isVisible</a></strong>(<a href="http://download.oracle.com/javase/6/docs/api/java/lang/reflect/Member.html?is-external=true" title="class or interface in java.lang.reflect">Member</a> m)</code> </td> 190</tr> 191<tr class="rowColor"> 192<td class="colFirst"><code>static <a href="../../../../com/fasterxml/jackson/annotation/JsonAutoDetect.Visibility.html" title="enum in com.fasterxml.jackson.annotation">JsonAutoDetect.Visibility</a></code></td> 193<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/annotation/JsonAutoDetect.Visibility.html#valueOf(java.lang.String)">valueOf</a></strong>(<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> name)</code> 194<div class="block">Returns the enum constant of this type with the specified name.</div> 195</td> 196</tr> 197<tr class="altColor"> 198<td class="colFirst"><code>static <a href="../../../../com/fasterxml/jackson/annotation/JsonAutoDetect.Visibility.html" title="enum in com.fasterxml.jackson.annotation">JsonAutoDetect.Visibility</a>[]</code></td> 199<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/annotation/JsonAutoDetect.Visibility.html#values()">values</a></strong>()</code> 200<div class="block">Returns an array containing the constants of this enum type, in 201the order they are declared.</div> 202</td> 203</tr> 204</table> 205<ul class="blockList"> 206<li class="blockList"><a name="methods_inherited_from_class_java.lang.Enum"> 207<!-- --> 208</a> 209<h3>Methods inherited from class java.lang.<a href="http://download.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true" title="class or interface in java.lang">Enum</a></h3> 210<code><a href="http://download.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true#compareTo(E)" title="class or interface in java.lang">compareTo</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true#getDeclaringClass()" title="class or interface in java.lang">getDeclaringClass</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true#name()" title="class or interface in java.lang">name</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true#ordinal()" title="class or interface in java.lang">ordinal</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Enum.html?is-external=true#valueOf(java.lang.Class, java.lang.String)" title="class or interface in java.lang">valueOf</a></code></li> 211</ul> 212<ul class="blockList"> 213<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> 214<!-- --> 215</a> 216<h3>Methods inherited from class java.lang.<a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> 217<code><a href="http://download.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://download.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://download.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://download.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://download.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://download.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></li> 218</ul> 219</li> 220</ul> 221</li> 222</ul> 223</div> 224<div class="details"> 225<ul class="blockList"> 226<li class="blockList"> 227<!-- ============ ENUM CONSTANT DETAIL =========== --> 228<ul class="blockList"> 229<li class="blockList"><a name="enum_constant_detail"> 230<!-- --> 231</a> 232<h3>Enum Constant Detail</h3> 233<a name="ANY"> 234<!-- --> 235</a> 236<ul class="blockList"> 237<li class="blockList"> 238<h4>ANY</h4> 239<pre>public static final <a href="../../../../com/fasterxml/jackson/annotation/JsonAutoDetect.Visibility.html" title="enum in com.fasterxml.jackson.annotation">JsonAutoDetect.Visibility</a> ANY</pre> 240<div class="block">Value that means that all kinds of access modifiers are acceptable, 241 from private to public.</div> 242</li> 243</ul> 244<a name="NON_PRIVATE"> 245<!-- --> 246</a> 247<ul class="blockList"> 248<li class="blockList"> 249<h4>NON_PRIVATE</h4> 250<pre>public static final <a href="../../../../com/fasterxml/jackson/annotation/JsonAutoDetect.Visibility.html" title="enum in com.fasterxml.jackson.annotation">JsonAutoDetect.Visibility</a> NON_PRIVATE</pre> 251<div class="block">Value that means that any other access modifier other than 'private' 252 is considered auto-detectable.</div> 253</li> 254</ul> 255<a name="PROTECTED_AND_PUBLIC"> 256<!-- --> 257</a> 258<ul class="blockList"> 259<li class="blockList"> 260<h4>PROTECTED_AND_PUBLIC</h4> 261<pre>public static final <a href="../../../../com/fasterxml/jackson/annotation/JsonAutoDetect.Visibility.html" title="enum in com.fasterxml.jackson.annotation">JsonAutoDetect.Visibility</a> PROTECTED_AND_PUBLIC</pre> 262<div class="block">Value that means access modifiers 'protected' and 'public' are 263 auto-detectable (and 'private' and "package access" == no modifiers 264 are not)</div> 265</li> 266</ul> 267<a name="PUBLIC_ONLY"> 268<!-- --> 269</a> 270<ul class="blockList"> 271<li class="blockList"> 272<h4>PUBLIC_ONLY</h4> 273<pre>public static final <a href="../../../../com/fasterxml/jackson/annotation/JsonAutoDetect.Visibility.html" title="enum in com.fasterxml.jackson.annotation">JsonAutoDetect.Visibility</a> PUBLIC_ONLY</pre> 274<div class="block">Value to indicate that only 'public' access modifier is considered 275 auto-detectable.</div> 276</li> 277</ul> 278<a name="NONE"> 279<!-- --> 280</a> 281<ul class="blockList"> 282<li class="blockList"> 283<h4>NONE</h4> 284<pre>public static final <a href="../../../../com/fasterxml/jackson/annotation/JsonAutoDetect.Visibility.html" title="enum in com.fasterxml.jackson.annotation">JsonAutoDetect.Visibility</a> NONE</pre> 285<div class="block">Value that indicates that no access modifiers are auto-detectable: 286 this can be used to explicitly disable auto-detection for specified 287 types.</div> 288</li> 289</ul> 290<a name="DEFAULT"> 291<!-- --> 292</a> 293<ul class="blockListLast"> 294<li class="blockList"> 295<h4>DEFAULT</h4> 296<pre>public static final <a href="../../../../com/fasterxml/jackson/annotation/JsonAutoDetect.Visibility.html" title="enum in com.fasterxml.jackson.annotation">JsonAutoDetect.Visibility</a> DEFAULT</pre> 297<div class="block">Value that indicates that default visibility level (whatever it is, 298 depends on context) is to be used. This usually means that inherited 299 value (from parent visibility settings) is to be used.</div> 300</li> 301</ul> 302</li> 303</ul> 304<!-- ============ METHOD DETAIL ========== --> 305<ul class="blockList"> 306<li class="blockList"><a name="method_detail"> 307<!-- --> 308</a> 309<h3>Method Detail</h3> 310<a name="values()"> 311<!-- --> 312</a> 313<ul class="blockList"> 314<li class="blockList"> 315<h4>values</h4> 316<pre>public static <a href="../../../../com/fasterxml/jackson/annotation/JsonAutoDetect.Visibility.html" title="enum in com.fasterxml.jackson.annotation">JsonAutoDetect.Visibility</a>[] values()</pre> 317<div class="block">Returns an array containing the constants of this enum type, in 318the order they are declared. This method may be used to iterate 319over the constants as follows: 320<pre> 321for (JsonAutoDetect.Visibility c : JsonAutoDetect.Visibility.values()) 322 System.out.println(c); 323</pre></div> 324<dl><dt><span class="strong">Returns:</span></dt><dd>an array containing the constants of this enum type, in 325the order they are declared</dd></dl> 326</li> 327</ul> 328<a name="valueOf(java.lang.String)"> 329<!-- --> 330</a> 331<ul class="blockList"> 332<li class="blockList"> 333<h4>valueOf</h4> 334<pre>public static <a href="../../../../com/fasterxml/jackson/annotation/JsonAutoDetect.Visibility.html" title="enum in com.fasterxml.jackson.annotation">JsonAutoDetect.Visibility</a> valueOf(<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> name)</pre> 335<div class="block">Returns the enum constant of this type with the specified name. 336The string must match <i>exactly</i> an identifier used to declare an 337enum constant in this type. (Extraneous whitespace characters are 338not permitted.)</div> 339<dl><dt><span class="strong">Parameters:</span></dt><dd><code>name</code> - the name of the enum constant to be returned.</dd> 340<dt><span class="strong">Returns:</span></dt><dd>the enum constant with the specified name</dd> 341<dt><span class="strong">Throws:</span></dt> 342<dd><code><a href="http://download.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if this enum type has no constant 343with the specified name</dd> 344<dd><code><a href="http://download.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html?is-external=true" title="class or interface in java.lang">NullPointerException</a></code> - if the argument is null</dd></dl> 345</li> 346</ul> 347<a name="isVisible(java.lang.reflect.Member)"> 348<!-- --> 349</a> 350<ul class="blockListLast"> 351<li class="blockList"> 352<h4>isVisible</h4> 353<pre>public boolean isVisible(<a href="http://download.oracle.com/javase/6/docs/api/java/lang/reflect/Member.html?is-external=true" title="class or interface in java.lang.reflect">Member</a> m)</pre> 354</li> 355</ul> 356</li> 357</ul> 358</li> 359</ul> 360</div> 361</div> 362<!-- ========= END OF CLASS DATA ========= --> 363<!-- ======= START OF BOTTOM NAVBAR ====== --> 364<div class="bottomNav"><a name="navbar_bottom"> 365<!-- --> 366</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> 367<!-- --> 368</a> 369<ul class="navList" title="Navigation"> 370<li><a href="../../../../com/fasterxml/jackson/annotation/package-summary.html">Package</a></li> 371<li class="navBarCell1Rev">Class</li> 372<li><a href="class-use/JsonAutoDetect.Visibility.html">Use</a></li> 373<li><a href="package-tree.html">Tree</a></li> 374<li><a href="../../../../deprecated-list.html">Deprecated</a></li> 375<li><a href="../../../../index-all.html">Index</a></li> 376<li><a href="../../../../help-doc.html">Help</a></li> 377</ul> 378</div> 379<div class="subNav"> 380<ul class="navList"> 381<li><a href="../../../../com/fasterxml/jackson/annotation/JsonAutoDetect.html" title="annotation in com.fasterxml.jackson.annotation"><span class="strong">Prev Class</span></a></li> 382<li><a href="../../../../com/fasterxml/jackson/annotation/JsonBackReference.html" title="annotation in com.fasterxml.jackson.annotation"><span class="strong">Next Class</span></a></li> 383</ul> 384<ul class="navList"> 385<li><a href="../../../../index.html?com/fasterxml/jackson/annotation/JsonAutoDetect.Visibility.html" target="_top">Frames</a></li> 386<li><a href="JsonAutoDetect.Visibility.html" target="_top">No Frames</a></li> 387</ul> 388<ul class="navList" id="allclasses_navbar_bottom"> 389<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> 390</ul> 391<div> 392<script type="text/javascript"><!-- 393 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 394 if(window==top) { 395 allClassesLink.style.display = "block"; 396 } 397 else { 398 allClassesLink.style.display = "none"; 399 } 400 //--> 401</script> 402</div> 403<div> 404<ul class="subNavList"> 405<li>Summary: </li> 406<li>Nested | </li> 407<li><a href="#enum_constant_summary">Enum Constants</a> | </li> 408<li>Field | </li> 409<li><a href="#method_summary">Method</a></li> 410</ul> 411<ul class="subNavList"> 412<li>Detail: </li> 413<li><a href="#enum_constant_detail">Enum Constants</a> | </li> 414<li>Field | </li> 415<li><a href="#method_detail">Method</a></li> 416</ul> 417</div> 418<a name="skip-navbar_bottom"> 419<!-- --> 420</a></div> 421<!-- ======== END OF BOTTOM NAVBAR ======= --> 422<p class="legalCopy"><small>Copyright © 2012-2013 <a href="http://fasterxml.com/">FasterXML</a>. All Rights Reserved.</small></p> 423</body> 424</html> 425