• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 Thu Jan 01 17:43:55 PST 2015 -->
6<meta http-equiv="Content-Type" content="text/html" charset="UTF-8">
7<title>ContextAttributes (jackson-databind 2.5.0 API)</title>
8<meta name="date" content="2015-01-01">
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="ContextAttributes (jackson-databind 2.5.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="../../../../../overview-summary.html">Overview</a></li>
29<li><a href="package-summary.html">Package</a></li>
30<li class="navBarCell1Rev">Class</li>
31<li><a href="class-use/ContextAttributes.html">Use</a></li>
32<li><a href="package-tree.html">Tree</a></li>
33<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
34<li><a href="../../../../../index-all.html">Index</a></li>
35<li><a href="../../../../../help-doc.html">Help</a></li>
36</ul>
37</div>
38<div class="subNav">
39<ul class="navList">
40<li><a href="../../../../../com/fasterxml/jackson/databind/cfg/ConfigFeature.html" title="interface in com.fasterxml.jackson.databind.cfg"><span class="strong">Prev Class</span></a></li>
41<li><a href="../../../../../com/fasterxml/jackson/databind/cfg/ContextAttributes.Impl.html" title="class in com.fasterxml.jackson.databind.cfg"><span class="strong">Next Class</span></a></li>
42</ul>
43<ul class="navList">
44<li><a href="../../../../../index.html?com/fasterxml/jackson/databind/cfg/ContextAttributes.html" target="_top">Frames</a></li>
45<li><a href="ContextAttributes.html" target="_top">No Frames</a></li>
46</ul>
47<ul class="navList" id="allclasses_navbar_top">
48<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
49</ul>
50<div>
51<script type="text/javascript"><!--
52  allClassesLink = document.getElementById("allclasses_navbar_top");
53  if(window==top) {
54    allClassesLink.style.display = "block";
55  }
56  else {
57    allClassesLink.style.display = "none";
58  }
59  //-->
60</script>
61</div>
62<div>
63<ul class="subNavList">
64<li>Summary:&nbsp;</li>
65<li><a href="#nested_class_summary">Nested</a>&nbsp;|&nbsp;</li>
66<li>Field&nbsp;|&nbsp;</li>
67<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
68<li><a href="#method_summary">Method</a></li>
69</ul>
70<ul class="subNavList">
71<li>Detail:&nbsp;</li>
72<li>Field&nbsp;|&nbsp;</li>
73<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
74<li><a href="#method_detail">Method</a></li>
75</ul>
76</div>
77<a name="skip-navbar_top">
78<!--   -->
79</a></div>
80<!-- ========= END OF TOP NAVBAR ========= -->
81<!-- ======== START OF CLASS DATA ======== -->
82<div class="header">
83<div class="subTitle">com.fasterxml.jackson.databind.cfg</div>
84<h2 title="Class ContextAttributes" class="title">Class ContextAttributes</h2>
85</div>
86<div class="contentContainer">
87<ul class="inheritance">
88<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>
89<li>
90<ul class="inheritance">
91<li>com.fasterxml.jackson.databind.cfg.ContextAttributes</li>
92</ul>
93</li>
94</ul>
95<div class="description">
96<ul class="blockList">
97<li class="blockList">
98<dl>
99<dt>Direct Known Subclasses:</dt>
100<dd><a href="../../../../../com/fasterxml/jackson/databind/cfg/ContextAttributes.Impl.html" title="class in com.fasterxml.jackson.databind.cfg">ContextAttributes.Impl</a></dd>
101</dl>
102<hr>
103<br>
104<pre>public abstract class <span class="strong">ContextAttributes</span>
105extends <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></pre>
106<div class="block">Helper class used for storing and accessing per-call attributes.
107 Storage is two-layered: at higher precedence, we have actual per-call
108 attributes; and at lower precedence, default attributes that may be
109 defined for Object readers and writers.
110<p>
111 Note that the way mutability is implemented differs between kinds
112 of attributes, to account for thread-safety: per-call attributes
113 are handled assuming that instances are never shared, whereas
114 changes to per-reader/per-writer attributes are made assuming
115 sharing, by creating new copies instead of modifying state.
116 This allows sharing of default values without per-call copying, but
117 requires two-level lookup on access.</div>
118<dl><dt><span class="strong">Since:</span></dt>
119  <dd>2.3</dd></dl>
120</li>
121</ul>
122</div>
123<div class="summary">
124<ul class="blockList">
125<li class="blockList">
126<!-- ======== NESTED CLASS SUMMARY ======== -->
127<ul class="blockList">
128<li class="blockList"><a name="nested_class_summary">
129<!--   -->
130</a>
131<h3>Nested Class Summary</h3>
132<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation">
133<caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption>
134<tr>
135<th class="colFirst" scope="col">Modifier and Type</th>
136<th class="colLast" scope="col">Class and Description</th>
137</tr>
138<tr class="altColor">
139<td class="colFirst"><code>static class&nbsp;</code></td>
140<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/cfg/ContextAttributes.Impl.html" title="class in com.fasterxml.jackson.databind.cfg">ContextAttributes.Impl</a></strong></code>&nbsp;</td>
141</tr>
142</table>
143</li>
144</ul>
145<!-- ======== CONSTRUCTOR SUMMARY ======== -->
146<ul class="blockList">
147<li class="blockList"><a name="constructor_summary">
148<!--   -->
149</a>
150<h3>Constructor Summary</h3>
151<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
152<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
153<tr>
154<th class="colOne" scope="col">Constructor and Description</th>
155</tr>
156<tr class="altColor">
157<td class="colOne"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/cfg/ContextAttributes.html#ContextAttributes()">ContextAttributes</a></strong>()</code>&nbsp;</td>
158</tr>
159</table>
160</li>
161</ul>
162<!-- ========== METHOD SUMMARY =========== -->
163<ul class="blockList">
164<li class="blockList"><a name="method_summary">
165<!--   -->
166</a>
167<h3>Method Summary</h3>
168<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
169<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
170<tr>
171<th class="colFirst" scope="col">Modifier and Type</th>
172<th class="colLast" scope="col">Method and Description</th>
173</tr>
174<tr class="altColor">
175<td class="colFirst"><code>abstract <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></code></td>
176<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/cfg/ContextAttributes.html#getAttribute(java.lang.Object)">getAttribute</a></strong>(<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>&nbsp;key)</code>
177<div class="block">Accessor for value of specified attribute</div>
178</td>
179</tr>
180<tr class="rowColor">
181<td class="colFirst"><code>static <a href="../../../../../com/fasterxml/jackson/databind/cfg/ContextAttributes.html" title="class in com.fasterxml.jackson.databind.cfg">ContextAttributes</a></code></td>
182<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/cfg/ContextAttributes.html#getEmpty()">getEmpty</a></strong>()</code>&nbsp;</td>
183</tr>
184<tr class="altColor">
185<td class="colFirst"><code>abstract <a href="../../../../../com/fasterxml/jackson/databind/cfg/ContextAttributes.html" title="class in com.fasterxml.jackson.databind.cfg">ContextAttributes</a></code></td>
186<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/cfg/ContextAttributes.html#withoutSharedAttribute(java.lang.Object)">withoutSharedAttribute</a></strong>(<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>&nbsp;key)</code>&nbsp;</td>
187</tr>
188<tr class="rowColor">
189<td class="colFirst"><code>abstract <a href="../../../../../com/fasterxml/jackson/databind/cfg/ContextAttributes.html" title="class in com.fasterxml.jackson.databind.cfg">ContextAttributes</a></code></td>
190<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/cfg/ContextAttributes.html#withPerCallAttribute(java.lang.Object, java.lang.Object)">withPerCallAttribute</a></strong>(<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>&nbsp;key,
191                    <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>&nbsp;value)</code>
192<div class="block">Mutator used during call (via context) to set value of "non-shared"
193 part of attribute set.</div>
194</td>
195</tr>
196<tr class="altColor">
197<td class="colFirst"><code>abstract <a href="../../../../../com/fasterxml/jackson/databind/cfg/ContextAttributes.html" title="class in com.fasterxml.jackson.databind.cfg">ContextAttributes</a></code></td>
198<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/cfg/ContextAttributes.html#withSharedAttribute(java.lang.Object, java.lang.Object)">withSharedAttribute</a></strong>(<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>&nbsp;key,
199                   <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>&nbsp;value)</code>&nbsp;</td>
200</tr>
201<tr class="rowColor">
202<td class="colFirst"><code>abstract <a href="../../../../../com/fasterxml/jackson/databind/cfg/ContextAttributes.html" title="class in com.fasterxml.jackson.databind.cfg">ContextAttributes</a></code></td>
203<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/cfg/ContextAttributes.html#withSharedAttributes(java.util.Map)">withSharedAttributes</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<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>,<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>&gt;&nbsp;attributes)</code>&nbsp;</td>
204</tr>
205</table>
206<ul class="blockList">
207<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
208<!--   -->
209</a>
210<h3>Methods inherited from class&nbsp;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>
211<code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.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/Object.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/Object.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/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#hashCode()" title="class or interface in java.lang">hashCode</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#toString()" title="class or interface in java.lang">toString</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>
212</ul>
213</li>
214</ul>
215</li>
216</ul>
217</div>
218<div class="details">
219<ul class="blockList">
220<li class="blockList">
221<!-- ========= CONSTRUCTOR DETAIL ======== -->
222<ul class="blockList">
223<li class="blockList"><a name="constructor_detail">
224<!--   -->
225</a>
226<h3>Constructor Detail</h3>
227<a name="ContextAttributes()">
228<!--   -->
229</a>
230<ul class="blockListLast">
231<li class="blockList">
232<h4>ContextAttributes</h4>
233<pre>public&nbsp;ContextAttributes()</pre>
234</li>
235</ul>
236</li>
237</ul>
238<!-- ============ METHOD DETAIL ========== -->
239<ul class="blockList">
240<li class="blockList"><a name="method_detail">
241<!--   -->
242</a>
243<h3>Method Detail</h3>
244<a name="getEmpty()">
245<!--   -->
246</a>
247<ul class="blockList">
248<li class="blockList">
249<h4>getEmpty</h4>
250<pre>public static&nbsp;<a href="../../../../../com/fasterxml/jackson/databind/cfg/ContextAttributes.html" title="class in com.fasterxml.jackson.databind.cfg">ContextAttributes</a>&nbsp;getEmpty()</pre>
251</li>
252</ul>
253<a name="withSharedAttribute(java.lang.Object, java.lang.Object)">
254<!--   -->
255</a>
256<ul class="blockList">
257<li class="blockList">
258<h4>withSharedAttribute</h4>
259<pre>public abstract&nbsp;<a href="../../../../../com/fasterxml/jackson/databind/cfg/ContextAttributes.html" title="class in com.fasterxml.jackson.databind.cfg">ContextAttributes</a>&nbsp;withSharedAttribute(<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>&nbsp;key,
260                                    <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>&nbsp;value)</pre>
261</li>
262</ul>
263<a name="withSharedAttributes(java.util.Map)">
264<!--   -->
265</a>
266<ul class="blockList">
267<li class="blockList">
268<h4>withSharedAttributes</h4>
269<pre>public abstract&nbsp;<a href="../../../../../com/fasterxml/jackson/databind/cfg/ContextAttributes.html" title="class in com.fasterxml.jackson.databind.cfg">ContextAttributes</a>&nbsp;withSharedAttributes(<a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<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>,<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>&gt;&nbsp;attributes)</pre>
270</li>
271</ul>
272<a name="withoutSharedAttribute(java.lang.Object)">
273<!--   -->
274</a>
275<ul class="blockList">
276<li class="blockList">
277<h4>withoutSharedAttribute</h4>
278<pre>public abstract&nbsp;<a href="../../../../../com/fasterxml/jackson/databind/cfg/ContextAttributes.html" title="class in com.fasterxml.jackson.databind.cfg">ContextAttributes</a>&nbsp;withoutSharedAttribute(<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>&nbsp;key)</pre>
279</li>
280</ul>
281<a name="getAttribute(java.lang.Object)">
282<!--   -->
283</a>
284<ul class="blockList">
285<li class="blockList">
286<h4>getAttribute</h4>
287<pre>public abstract&nbsp;<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>&nbsp;getAttribute(<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>&nbsp;key)</pre>
288<div class="block">Accessor for value of specified attribute</div>
289</li>
290</ul>
291<a name="withPerCallAttribute(java.lang.Object, java.lang.Object)">
292<!--   -->
293</a>
294<ul class="blockListLast">
295<li class="blockList">
296<h4>withPerCallAttribute</h4>
297<pre>public abstract&nbsp;<a href="../../../../../com/fasterxml/jackson/databind/cfg/ContextAttributes.html" title="class in com.fasterxml.jackson.databind.cfg">ContextAttributes</a>&nbsp;withPerCallAttribute(<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>&nbsp;key,
298                                     <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>&nbsp;value)</pre>
299<div class="block">Mutator used during call (via context) to set value of "non-shared"
300 part of attribute set.</div>
301</li>
302</ul>
303</li>
304</ul>
305</li>
306</ul>
307</div>
308</div>
309<!-- ========= END OF CLASS DATA ========= -->
310<!-- ======= START OF BOTTOM NAVBAR ====== -->
311<div class="bottomNav"><a name="navbar_bottom">
312<!--   -->
313</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
314<!--   -->
315</a>
316<ul class="navList" title="Navigation">
317<li><a href="../../../../../overview-summary.html">Overview</a></li>
318<li><a href="package-summary.html">Package</a></li>
319<li class="navBarCell1Rev">Class</li>
320<li><a href="class-use/ContextAttributes.html">Use</a></li>
321<li><a href="package-tree.html">Tree</a></li>
322<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
323<li><a href="../../../../../index-all.html">Index</a></li>
324<li><a href="../../../../../help-doc.html">Help</a></li>
325</ul>
326</div>
327<div class="subNav">
328<ul class="navList">
329<li><a href="../../../../../com/fasterxml/jackson/databind/cfg/ConfigFeature.html" title="interface in com.fasterxml.jackson.databind.cfg"><span class="strong">Prev Class</span></a></li>
330<li><a href="../../../../../com/fasterxml/jackson/databind/cfg/ContextAttributes.Impl.html" title="class in com.fasterxml.jackson.databind.cfg"><span class="strong">Next Class</span></a></li>
331</ul>
332<ul class="navList">
333<li><a href="../../../../../index.html?com/fasterxml/jackson/databind/cfg/ContextAttributes.html" target="_top">Frames</a></li>
334<li><a href="ContextAttributes.html" target="_top">No Frames</a></li>
335</ul>
336<ul class="navList" id="allclasses_navbar_bottom">
337<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
338</ul>
339<div>
340<script type="text/javascript"><!--
341  allClassesLink = document.getElementById("allclasses_navbar_bottom");
342  if(window==top) {
343    allClassesLink.style.display = "block";
344  }
345  else {
346    allClassesLink.style.display = "none";
347  }
348  //-->
349</script>
350</div>
351<div>
352<ul class="subNavList">
353<li>Summary:&nbsp;</li>
354<li><a href="#nested_class_summary">Nested</a>&nbsp;|&nbsp;</li>
355<li>Field&nbsp;|&nbsp;</li>
356<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
357<li><a href="#method_summary">Method</a></li>
358</ul>
359<ul class="subNavList">
360<li>Detail:&nbsp;</li>
361<li>Field&nbsp;|&nbsp;</li>
362<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
363<li><a href="#method_detail">Method</a></li>
364</ul>
365</div>
366<a name="skip-navbar_bottom">
367<!--   -->
368</a></div>
369<!-- ======== END OF BOTTOM NAVBAR ======= -->
370<p class="legalCopy"><small>Copyright &#169; 2014-2015 <a href="http://fasterxml.com/">FasterXML</a>. All Rights Reserved.</small></p>
371</body>
372</html>
373