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