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:32 PDT 2013 -->
6<title>POJONode (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="POJONode (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/POJONode.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/node/ObjectNode.NoFieldsIterator.html" title="class in org.codehaus.jackson.node"><span class="strong">Prev Class</span></a></li>
40<li><a href="../../../../org/codehaus/jackson/node/TextNode.html" title="class in org.codehaus.jackson.node"><span class="strong">Next Class</span></a></li>
41</ul>
42<ul class="navList">
43<li><a href="../../../../index.html?org/codehaus/jackson/node/POJONode.html" target="_top">Frames</a></li>
44<li><a href="POJONode.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:&nbsp;</li>
64<li>Nested&nbsp;|&nbsp;</li>
65<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
66<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
67<li><a href="#method_summary">Method</a></li>
68</ul>
69<ul class="subNavList">
70<li>Detail:&nbsp;</li>
71<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
72<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</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.node</div>
83<h2 title="Class POJONode" class="title">Class POJONode</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="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">org.codehaus.jackson.JsonNode</a></li>
91<li>
92<ul class="inheritance">
93<li><a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html" title="class in org.codehaus.jackson.node">org.codehaus.jackson.node.BaseJsonNode</a></li>
94<li>
95<ul class="inheritance">
96<li><a href="../../../../org/codehaus/jackson/node/ValueNode.html" title="class in org.codehaus.jackson.node">org.codehaus.jackson.node.ValueNode</a></li>
97<li>
98<ul class="inheritance">
99<li>org.codehaus.jackson.node.POJONode</li>
100</ul>
101</li>
102</ul>
103</li>
104</ul>
105</li>
106</ul>
107</li>
108</ul>
109<div class="description">
110<ul class="blockList">
111<li class="blockList">
112<dl>
113<dt>All Implemented Interfaces:</dt>
114<dd><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a>&lt;<a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a>&gt;, <a href="../../../../org/codehaus/jackson/map/JsonSerializable.html" title="interface in org.codehaus.jackson.map">JsonSerializable</a>, <a href="../../../../org/codehaus/jackson/map/JsonSerializableWithType.html" title="interface in org.codehaus.jackson.map">JsonSerializableWithType</a></dd>
115</dl>
116<hr>
117<br>
118<pre>public final class <span class="strong">POJONode</span>
119extends <a href="../../../../org/codehaus/jackson/node/ValueNode.html" title="class in org.codehaus.jackson.node">ValueNode</a></pre>
120<div class="block">Value node that contains a wrapped POJO, to be serialized as
121 a JSON constructed through data mapping (usually done by
122 calling <a href="../../../../org/codehaus/jackson/map/ObjectMapper.html" title="class in org.codehaus.jackson.map"><code>ObjectMapper</code></a>).</div>
123</li>
124</ul>
125</div>
126<div class="summary">
127<ul class="blockList">
128<li class="blockList">
129<!-- =========== FIELD SUMMARY =========== -->
130<ul class="blockList">
131<li class="blockList"><a name="field_summary">
132<!--   -->
133</a>
134<h3>Field Summary</h3>
135<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
136<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
137<tr>
138<th class="colFirst" scope="col">Modifier and Type</th>
139<th class="colLast" scope="col">Field and Description</th>
140</tr>
141<tr class="altColor">
142<td class="colFirst"><code>protected <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>
143<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/POJONode.html#_value">_value</a></strong></code>&nbsp;</td>
144</tr>
145</table>
146<ul class="blockList">
147<li class="blockList"><a name="fields_inherited_from_class_org.codehaus.jackson.JsonNode">
148<!--   -->
149</a>
150<h3>Fields inherited from class&nbsp;org.codehaus.jackson.<a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></h3>
151<code><a href="../../../../org/codehaus/jackson/JsonNode.html#NO_NODES">NO_NODES</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#NO_STRINGS">NO_STRINGS</a></code></li>
152</ul>
153</li>
154</ul>
155<!-- ======== CONSTRUCTOR SUMMARY ======== -->
156<ul class="blockList">
157<li class="blockList"><a name="constructor_summary">
158<!--   -->
159</a>
160<h3>Constructor Summary</h3>
161<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
162<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
163<tr>
164<th class="colOne" scope="col">Constructor and Description</th>
165</tr>
166<tr class="altColor">
167<td class="colOne"><code><strong><a href="../../../../org/codehaus/jackson/node/POJONode.html#POJONode(java.lang.Object)">POJONode</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;v)</code>&nbsp;</td>
168</tr>
169</table>
170</li>
171</ul>
172<!-- ========== METHOD SUMMARY =========== -->
173<ul class="blockList">
174<li class="blockList"><a name="method_summary">
175<!--   -->
176</a>
177<h3>Method Summary</h3>
178<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
179<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
180<tr>
181<th class="colFirst" scope="col">Modifier and Type</th>
182<th class="colLast" scope="col">Method and Description</th>
183</tr>
184<tr class="altColor">
185<td class="colFirst"><code>boolean</code></td>
186<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/POJONode.html#asBoolean(boolean)">asBoolean</a></strong>(boolean&nbsp;defaultValue)</code>
187<div class="block">Method that will try to convert value of this node to a Java <b>boolean</b>.</div>
188</td>
189</tr>
190<tr class="rowColor">
191<td class="colFirst"><code>double</code></td>
192<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/POJONode.html#asDouble(double)">asDouble</a></strong>(double&nbsp;defaultValue)</code>
193<div class="block">Method that will try to convert value of this node to a Java <b>double</b>.</div>
194</td>
195</tr>
196<tr class="altColor">
197<td class="colFirst"><code>int</code></td>
198<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/POJONode.html#asInt(int)">asInt</a></strong>(int&nbsp;defaultValue)</code>
199<div class="block">Method that will try to convert value of this node to a Java <b>int</b>.</div>
200</td>
201</tr>
202<tr class="rowColor">
203<td class="colFirst"><code>long</code></td>
204<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/POJONode.html#asLong(long)">asLong</a></strong>(long&nbsp;defaultValue)</code>
205<div class="block">Method that will try to convert value of this node to a Java <b>long</b>.</div>
206</td>
207</tr>
208<tr class="altColor">
209<td class="colFirst"><code><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></code></td>
210<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/POJONode.html#asText()">asText</a></strong>()</code>
211<div class="block">Method that will return valid String representation of
212 the container value, if the node is a value node
213 (method <a href="../../../../org/codehaus/jackson/JsonNode.html#isValueNode()"><code>JsonNode.isValueNode()</code></a> returns true), otherwise
214 empty String.</div>
215</td>
216</tr>
217<tr class="rowColor">
218<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a></code></td>
219<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/POJONode.html#asToken()">asToken</a></strong>()</code>
220<div class="block">Method that can be used for efficient type detection
221 when using stream abstraction for traversing nodes.</div>
222</td>
223</tr>
224<tr class="altColor">
225<td class="colFirst"><code>boolean</code></td>
226<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/POJONode.html#equals(java.lang.Object)">equals</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;o)</code>
227<div class="block">Equality for node objects is defined as full (deep) value
228 equality.</div>
229</td>
230</tr>
231<tr class="rowColor">
232<td class="colFirst"><code>byte[]</code></td>
233<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/POJONode.html#getBinaryValue()">getBinaryValue</a></strong>()</code>
234<div class="block">Method to use for accessing binary content of binary nodes (nodes
235 for which <a href="../../../../org/codehaus/jackson/JsonNode.html#isBinary()"><code>JsonNode.isBinary()</code></a> returns true); or for Text Nodes
236 (ones for which <a href="../../../../org/codehaus/jackson/JsonNode.html#getTextValue()"><code>JsonNode.getTextValue()</code></a> returns non-null value),
237 to read decoded base64 data.</div>
238</td>
239</tr>
240<tr class="altColor">
241<td class="colFirst"><code><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>
242<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/POJONode.html#getPojo()">getPojo</a></strong>()</code>
243<div class="block">Method that can be used to access the POJO this node wraps.</div>
244</td>
245</tr>
246<tr class="rowColor">
247<td class="colFirst"><code>int</code></td>
248<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/POJONode.html#hashCode()">hashCode</a></strong>()</code>&nbsp;</td>
249</tr>
250<tr class="altColor">
251<td class="colFirst"><code>boolean</code></td>
252<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/POJONode.html#isPojo()">isPojo</a></strong>()</code>
253<div class="block">Method that can be used to check if the node is a wrapper
254 for a POJO ("Plain Old Java Object" aka "bean".</div>
255</td>
256</tr>
257<tr class="rowColor">
258<td class="colFirst"><code>void</code></td>
259<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/POJONode.html#serialize(org.codehaus.jackson.JsonGenerator, org.codehaus.jackson.map.SerializerProvider)">serialize</a></strong>(<a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a>&nbsp;jg,
260         <a href="../../../../org/codehaus/jackson/map/SerializerProvider.html" title="class in org.codehaus.jackson.map">SerializerProvider</a>&nbsp;provider)</code>
261<div class="block">Method called to serialize node instances using given generator.</div>
262</td>
263</tr>
264<tr class="altColor">
265<td class="colFirst"><code><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></code></td>
266<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/POJONode.html#toString()">toString</a></strong>()</code>
267<div class="block">
268 Note: marked as abstract to ensure all implementation
269 classes define it properly.</div>
270</td>
271</tr>
272</table>
273<ul class="blockList">
274<li class="blockList"><a name="methods_inherited_from_class_org.codehaus.jackson.node.ValueNode">
275<!--   -->
276</a>
277<h3>Methods inherited from class&nbsp;org.codehaus.jackson.node.<a href="../../../../org/codehaus/jackson/node/ValueNode.html" title="class in org.codehaus.jackson.node">ValueNode</a></h3>
278<code><a href="../../../../org/codehaus/jackson/node/ValueNode.html#isValueNode()">isValueNode</a>, <a href="../../../../org/codehaus/jackson/node/ValueNode.html#path(int)">path</a>, <a href="../../../../org/codehaus/jackson/node/ValueNode.html#path(java.lang.String)">path</a>, <a href="../../../../org/codehaus/jackson/node/ValueNode.html#serializeWithType(org.codehaus.jackson.JsonGenerator, org.codehaus.jackson.map.SerializerProvider, org.codehaus.jackson.map.TypeSerializer)">serializeWithType</a></code></li>
279</ul>
280<ul class="blockList">
281<li class="blockList"><a name="methods_inherited_from_class_org.codehaus.jackson.node.BaseJsonNode">
282<!--   -->
283</a>
284<h3>Methods inherited from class&nbsp;org.codehaus.jackson.node.<a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html" title="class in org.codehaus.jackson.node">BaseJsonNode</a></h3>
285<code><a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#findParent(java.lang.String)">findParent</a>, <a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#findParents(java.lang.String, java.util.List)">findParents</a>, <a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#findPath(java.lang.String)">findPath</a>, <a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#findValue(java.lang.String)">findValue</a>, <a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#findValues(java.lang.String, java.util.List)">findValues</a>, <a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#findValuesAsText(java.lang.String, java.util.List)">findValuesAsText</a>, <a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#getNumberType()">getNumberType</a>, <a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#traverse()">traverse</a></code></li>
286</ul>
287<ul class="blockList">
288<li class="blockList"><a name="methods_inherited_from_class_org.codehaus.jackson.JsonNode">
289<!--   -->
290</a>
291<h3>Methods inherited from class&nbsp;org.codehaus.jackson.<a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></h3>
292<code><a href="../../../../org/codehaus/jackson/JsonNode.html#asBoolean()">asBoolean</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#asDouble()">asDouble</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#asInt()">asInt</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#asLong()">asLong</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#findParents(java.lang.String)">findParents</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#findValues(java.lang.String)">findValues</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#findValuesAsText(java.lang.String)">findValuesAsText</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#get(int)">get</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#get(java.lang.String)">get</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getBigIntegerValue()">getBigIntegerValue</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getBooleanValue()">getBooleanValue</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getDecimalValue()">getDecimalValue</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getDoubleValue()">getDoubleValue</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getElements()">getElements</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getFieldNames()">getFieldNames</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getFields()">getFields</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getIntValue()">getIntValue</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getLongValue()">getLongValue</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getNumberValue()">getNumberValue</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getPath(int)">getPath</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getPath(java.lang.String)">getPath</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getTextValue()">getTextValue</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getValueAsBoolean()">getValueAsBoolean</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getValueAsBoolean(boolean)">getValueAsBoolean</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getValueAsDouble()">getValueAsDouble</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getValueAsDouble(double)">getValueAsDouble</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getValueAsInt()">getValueAsInt</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getValueAsInt(int)">getValueAsInt</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getValueAsLong()">getValueAsLong</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getValueAsLong(long)">getValueAsLong</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getValueAsText()">getValueAsText</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#has(int)">has</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#has(java.lang.String)">has</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isArray()">isArray</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isBigDecimal()">isBigDecimal</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isBigInteger()">isBigInteger</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isBinary()">isBinary</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isBoolean()">isBoolean</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isContainerNode()">isContainerNode</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isDouble()">isDouble</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isFloatingPointNumber()">isFloatingPointNumber</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isInt()">isInt</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isIntegralNumber()">isIntegralNumber</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isLong()">isLong</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isMissingNode()">isMissingNode</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isNull()">isNull</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isNumber()">isNumber</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isObject()">isObject</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isTextual()">isTextual</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#iterator()">iterator</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#size()">size</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#with(java.lang.String)">with</a></code></li>
293</ul>
294<ul class="blockList">
295<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
296<!--   -->
297</a>
298<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>
299<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#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#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>
300</ul>
301</li>
302</ul>
303</li>
304</ul>
305</div>
306<div class="details">
307<ul class="blockList">
308<li class="blockList">
309<!-- ============ FIELD DETAIL =========== -->
310<ul class="blockList">
311<li class="blockList"><a name="field_detail">
312<!--   -->
313</a>
314<h3>Field Detail</h3>
315<a name="_value">
316<!--   -->
317</a>
318<ul class="blockListLast">
319<li class="blockList">
320<h4>_value</h4>
321<pre>protected final&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> _value</pre>
322</li>
323</ul>
324</li>
325</ul>
326<!-- ========= CONSTRUCTOR DETAIL ======== -->
327<ul class="blockList">
328<li class="blockList"><a name="constructor_detail">
329<!--   -->
330</a>
331<h3>Constructor Detail</h3>
332<a name="POJONode(java.lang.Object)">
333<!--   -->
334</a>
335<ul class="blockListLast">
336<li class="blockList">
337<h4>POJONode</h4>
338<pre>public&nbsp;POJONode(<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;v)</pre>
339</li>
340</ul>
341</li>
342</ul>
343<!-- ============ METHOD DETAIL ========== -->
344<ul class="blockList">
345<li class="blockList"><a name="method_detail">
346<!--   -->
347</a>
348<h3>Method Detail</h3>
349<a name="asToken()">
350<!--   -->
351</a>
352<ul class="blockList">
353<li class="blockList">
354<h4>asToken</h4>
355<pre>public&nbsp;<a href="../../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a>&nbsp;asToken()</pre>
356<div class="block"><strong>Description copied from class:&nbsp;<code><a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#asToken()">BaseJsonNode</a></code></strong></div>
357<div class="block">Method that can be used for efficient type detection
358 when using stream abstraction for traversing nodes.
359 Will return the first <a href="../../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson"><code>JsonToken</code></a> that equivalent
360 stream event would produce (for most nodes there is just
361 one token but for structured/container types multiple)</div>
362<dl>
363<dt><strong>Specified by:</strong></dt>
364<dd><code><a href="../../../../org/codehaus/jackson/node/ValueNode.html#asToken()">asToken</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/codehaus/jackson/node/ValueNode.html" title="class in org.codehaus.jackson.node">ValueNode</a></code></dd>
365</dl>
366</li>
367</ul>
368<a name="isPojo()">
369<!--   -->
370</a>
371<ul class="blockList">
372<li class="blockList">
373<h4>isPojo</h4>
374<pre>public&nbsp;boolean&nbsp;isPojo()</pre>
375<div class="block"><strong>Description copied from class:&nbsp;<code><a href="../../../../org/codehaus/jackson/JsonNode.html#isPojo()">JsonNode</a></code></strong></div>
376<div class="block">Method that can be used to check if the node is a wrapper
377 for a POJO ("Plain Old Java Object" aka "bean".
378 Returns true only for
379 instances of <a href="../../../../org/codehaus/jackson/node/POJONode.html" title="class in org.codehaus.jackson.node"><code>POJONode</code></a>.</div>
380<dl>
381<dt><strong>Overrides:</strong></dt>
382<dd><code><a href="../../../../org/codehaus/jackson/JsonNode.html#isPojo()">isPojo</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></dd>
383<dt><span class="strong">Returns:</span></dt><dd>True if this node wraps a POJO</dd></dl>
384</li>
385</ul>
386<a name="getBinaryValue()">
387<!--   -->
388</a>
389<ul class="blockList">
390<li class="blockList">
391<h4>getBinaryValue</h4>
392<pre>public&nbsp;byte[]&nbsp;getBinaryValue()
393                      throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre>
394<div class="block"><strong>Description copied from class:&nbsp;<code><a href="../../../../org/codehaus/jackson/JsonNode.html#getBinaryValue()">JsonNode</a></code></strong></div>
395<div class="block">Method to use for accessing binary content of binary nodes (nodes
396 for which <a href="../../../../org/codehaus/jackson/JsonNode.html#isBinary()"><code>JsonNode.isBinary()</code></a> returns true); or for Text Nodes
397 (ones for which <a href="../../../../org/codehaus/jackson/JsonNode.html#getTextValue()"><code>JsonNode.getTextValue()</code></a> returns non-null value),
398 to read decoded base64 data.
399 For other types of nodes, returns null.</div>
400<dl>
401<dt><strong>Overrides:</strong></dt>
402<dd><code><a href="../../../../org/codehaus/jackson/JsonNode.html#getBinaryValue()">getBinaryValue</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></dd>
403<dt><span class="strong">Returns:</span></dt><dd>Binary data this node contains, iff it is a binary
404   node; null otherwise</dd>
405<dt><span class="strong">Throws:</span></dt>
406<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd></dl>
407</li>
408</ul>
409<a name="asText()">
410<!--   -->
411</a>
412<ul class="blockList">
413<li class="blockList">
414<h4>asText</h4>
415<pre>public&nbsp;<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>&nbsp;asText()</pre>
416<div class="block"><strong>Description copied from class:&nbsp;<code><a href="../../../../org/codehaus/jackson/JsonNode.html#asText()">JsonNode</a></code></strong></div>
417<div class="block">Method that will return valid String representation of
418 the container value, if the node is a value node
419 (method <a href="../../../../org/codehaus/jackson/JsonNode.html#isValueNode()"><code>JsonNode.isValueNode()</code></a> returns true), otherwise
420 empty String.</div>
421<dl>
422<dt><strong>Specified by:</strong></dt>
423<dd><code><a href="../../../../org/codehaus/jackson/JsonNode.html#asText()">asText</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></dd>
424</dl>
425</li>
426</ul>
427<a name="asBoolean(boolean)">
428<!--   -->
429</a>
430<ul class="blockList">
431<li class="blockList">
432<h4>asBoolean</h4>
433<pre>public&nbsp;boolean&nbsp;asBoolean(boolean&nbsp;defaultValue)</pre>
434<div class="block"><strong>Description copied from class:&nbsp;<code><a href="../../../../org/codehaus/jackson/JsonNode.html#asBoolean(boolean)">JsonNode</a></code></strong></div>
435<div class="block">Method that will try to convert value of this node to a Java <b>boolean</b>.
436 JSON booleans map naturally; integer numbers other than 0 map to true, and
437 0 maps to false
438 and Strings 'true' and 'false' map to corresponding values.
439<p>
440 If representation can not be converted to a boolean value (including structured types
441 like Objects and Arrays),
442 specified <b>defaultValue</b> will be returned; no exceptions are thrown.</div>
443<dl>
444<dt><strong>Overrides:</strong></dt>
445<dd><code><a href="../../../../org/codehaus/jackson/JsonNode.html#asBoolean(boolean)">asBoolean</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></dd>
446</dl>
447</li>
448</ul>
449<a name="asInt(int)">
450<!--   -->
451</a>
452<ul class="blockList">
453<li class="blockList">
454<h4>asInt</h4>
455<pre>public&nbsp;int&nbsp;asInt(int&nbsp;defaultValue)</pre>
456<div class="block"><strong>Description copied from class:&nbsp;<code><a href="../../../../org/codehaus/jackson/JsonNode.html#asInt(int)">JsonNode</a></code></strong></div>
457<div class="block">Method that will try to convert value of this node to a Java <b>int</b>.
458 Numbers are coerced using default Java rules; booleans convert to 0 (false)
459 and 1 (true), and Strings are parsed using default Java language integer
460 parsing rules.
461<p>
462 If representation can not be converted to an int (including structured types
463 like Objects and Arrays),
464 specified <b>defaultValue</b> will be returned; no exceptions are thrown.</div>
465<dl>
466<dt><strong>Overrides:</strong></dt>
467<dd><code><a href="../../../../org/codehaus/jackson/JsonNode.html#asInt(int)">asInt</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></dd>
468</dl>
469</li>
470</ul>
471<a name="asLong(long)">
472<!--   -->
473</a>
474<ul class="blockList">
475<li class="blockList">
476<h4>asLong</h4>
477<pre>public&nbsp;long&nbsp;asLong(long&nbsp;defaultValue)</pre>
478<div class="block"><strong>Description copied from class:&nbsp;<code><a href="../../../../org/codehaus/jackson/JsonNode.html#asLong(long)">JsonNode</a></code></strong></div>
479<div class="block">Method that will try to convert value of this node to a Java <b>long</b>.
480 Numbers are coerced using default Java rules; booleans convert to 0 (false)
481 and 1 (true), and Strings are parsed using default Java language integer
482 parsing rules.
483<p>
484 If representation can not be converted to an long (including structured types
485 like Objects and Arrays),
486 specified <b>defaultValue</b> will be returned; no exceptions are thrown.</div>
487<dl>
488<dt><strong>Overrides:</strong></dt>
489<dd><code><a href="../../../../org/codehaus/jackson/JsonNode.html#asLong(long)">asLong</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></dd>
490</dl>
491</li>
492</ul>
493<a name="asDouble(double)">
494<!--   -->
495</a>
496<ul class="blockList">
497<li class="blockList">
498<h4>asDouble</h4>
499<pre>public&nbsp;double&nbsp;asDouble(double&nbsp;defaultValue)</pre>
500<div class="block"><strong>Description copied from class:&nbsp;<code><a href="../../../../org/codehaus/jackson/JsonNode.html#asDouble(double)">JsonNode</a></code></strong></div>
501<div class="block">Method that will try to convert value of this node to a Java <b>double</b>.
502 Numbers are coerced using default Java rules; booleans convert to 0.0 (false)
503 and 1.0 (true), and Strings are parsed using default Java language integer
504 parsing rules.
505<p>
506 If representation can not be converted to an int (including structured types
507 like Objects and Arrays),
508 specified <b>defaultValue</b> will be returned; no exceptions are thrown.</div>
509<dl>
510<dt><strong>Overrides:</strong></dt>
511<dd><code><a href="../../../../org/codehaus/jackson/JsonNode.html#asDouble(double)">asDouble</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></dd>
512</dl>
513</li>
514</ul>
515<a name="serialize(org.codehaus.jackson.JsonGenerator, org.codehaus.jackson.map.SerializerProvider)">
516<!--   -->
517</a>
518<ul class="blockList">
519<li class="blockList">
520<h4>serialize</h4>
521<pre>public final&nbsp;void&nbsp;serialize(<a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a>&nbsp;jg,
522             <a href="../../../../org/codehaus/jackson/map/SerializerProvider.html" title="class in org.codehaus.jackson.map">SerializerProvider</a>&nbsp;provider)
523                     throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a>,
524                            <a href="../../../../org/codehaus/jackson/JsonProcessingException.html" title="class in org.codehaus.jackson">JsonProcessingException</a></pre>
525<div class="block"><strong>Description copied from class:&nbsp;<code><a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#serialize(org.codehaus.jackson.JsonGenerator, org.codehaus.jackson.map.SerializerProvider)">BaseJsonNode</a></code></strong></div>
526<div class="block">Method called to serialize node instances using given generator.</div>
527<dl>
528<dt><strong>Specified by:</strong></dt>
529<dd><code><a href="../../../../org/codehaus/jackson/map/JsonSerializable.html#serialize(org.codehaus.jackson.JsonGenerator, org.codehaus.jackson.map.SerializerProvider)">serialize</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../org/codehaus/jackson/map/JsonSerializable.html" title="interface in org.codehaus.jackson.map">JsonSerializable</a></code></dd>
530<dt><strong>Specified by:</strong></dt>
531<dd><code><a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#serialize(org.codehaus.jackson.JsonGenerator, org.codehaus.jackson.map.SerializerProvider)">serialize</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html" title="class in org.codehaus.jackson.node">BaseJsonNode</a></code></dd>
532<dt><span class="strong">Throws:</span></dt>
533<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd>
534<dd><code><a href="../../../../org/codehaus/jackson/JsonProcessingException.html" title="class in org.codehaus.jackson">JsonProcessingException</a></code></dd></dl>
535</li>
536</ul>
537<a name="getPojo()">
538<!--   -->
539</a>
540<ul class="blockList">
541<li class="blockList">
542<h4>getPojo</h4>
543<pre>public&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;getPojo()</pre>
544<div class="block">Method that can be used to access the POJO this node wraps.</div>
545</li>
546</ul>
547<a name="equals(java.lang.Object)">
548<!--   -->
549</a>
550<ul class="blockList">
551<li class="blockList">
552<h4>equals</h4>
553<pre>public&nbsp;boolean&nbsp;equals(<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;o)</pre>
554<div class="block"><strong>Description copied from class:&nbsp;<code><a href="../../../../org/codehaus/jackson/JsonNode.html#equals(java.lang.Object)">JsonNode</a></code></strong></div>
555<div class="block">Equality for node objects is defined as full (deep) value
556 equality. This means that it is possible to compare complete
557 JSON trees for equality by comparing equality of root nodes.
558<p>
559 Note: marked as abstract to ensure all implementation
560 classes define it properly and not rely on definition
561 from <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang"><code>Object</code></a>.</div>
562<dl>
563<dt><strong>Specified by:</strong></dt>
564<dd><code><a href="../../../../org/codehaus/jackson/JsonNode.html#equals(java.lang.Object)">equals</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></dd>
565</dl>
566</li>
567</ul>
568<a name="hashCode()">
569<!--   -->
570</a>
571<ul class="blockList">
572<li class="blockList">
573<h4>hashCode</h4>
574<pre>public&nbsp;int&nbsp;hashCode()</pre>
575<dl>
576<dt><strong>Overrides:</strong></dt>
577<dd><code><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></code>&nbsp;in class&nbsp;<code><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></dd>
578</dl>
579</li>
580</ul>
581<a name="toString()">
582<!--   -->
583</a>
584<ul class="blockListLast">
585<li class="blockList">
586<h4>toString</h4>
587<pre>public&nbsp;<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>&nbsp;toString()</pre>
588<div class="block"><strong>Description copied from class:&nbsp;<code><a href="../../../../org/codehaus/jackson/JsonNode.html#toString()">JsonNode</a></code></strong></div>
589<div class="block"><p>
590 Note: marked as abstract to ensure all implementation
591 classes define it properly.</div>
592<dl>
593<dt><strong>Overrides:</strong></dt>
594<dd><code><a href="../../../../org/codehaus/jackson/node/ValueNode.html#toString()">toString</a></code>&nbsp;in class&nbsp;<code><a href="../../../../org/codehaus/jackson/node/ValueNode.html" title="class in org.codehaus.jackson.node">ValueNode</a></code></dd>
595</dl>
596</li>
597</ul>
598</li>
599</ul>
600</li>
601</ul>
602</div>
603</div>
604<!-- ========= END OF CLASS DATA ========= -->
605<!-- ======= START OF BOTTOM NAVBAR ====== -->
606<div class="bottomNav"><a name="navbar_bottom">
607<!--   -->
608</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
609<!--   -->
610</a>
611<ul class="navList" title="Navigation">
612<li><a href="../../../../overview-summary.html">Overview</a></li>
613<li><a href="package-summary.html">Package</a></li>
614<li class="navBarCell1Rev">Class</li>
615<li><a href="class-use/POJONode.html">Use</a></li>
616<li><a href="package-tree.html">Tree</a></li>
617<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
618<li><a href="../../../../index-all.html">Index</a></li>
619<li><a href="../../../../help-doc.html">Help</a></li>
620</ul>
621</div>
622<div class="subNav">
623<ul class="navList">
624<li><a href="../../../../org/codehaus/jackson/node/ObjectNode.NoFieldsIterator.html" title="class in org.codehaus.jackson.node"><span class="strong">Prev Class</span></a></li>
625<li><a href="../../../../org/codehaus/jackson/node/TextNode.html" title="class in org.codehaus.jackson.node"><span class="strong">Next Class</span></a></li>
626</ul>
627<ul class="navList">
628<li><a href="../../../../index.html?org/codehaus/jackson/node/POJONode.html" target="_top">Frames</a></li>
629<li><a href="POJONode.html" target="_top">No Frames</a></li>
630</ul>
631<ul class="navList" id="allclasses_navbar_bottom">
632<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
633</ul>
634<div>
635<script type="text/javascript"><!--
636  allClassesLink = document.getElementById("allclasses_navbar_bottom");
637  if(window==top) {
638    allClassesLink.style.display = "block";
639  }
640  else {
641    allClassesLink.style.display = "none";
642  }
643  //-->
644</script>
645</div>
646<div>
647<ul class="subNavList">
648<li>Summary:&nbsp;</li>
649<li>Nested&nbsp;|&nbsp;</li>
650<li><a href="#field_summary">Field</a>&nbsp;|&nbsp;</li>
651<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
652<li><a href="#method_summary">Method</a></li>
653</ul>
654<ul class="subNavList">
655<li>Detail:&nbsp;</li>
656<li><a href="#field_detail">Field</a>&nbsp;|&nbsp;</li>
657<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
658<li><a href="#method_detail">Method</a></li>
659</ul>
660</div>
661<a name="skip-navbar_bottom">
662<!--   -->
663</a></div>
664<!-- ======== END OF BOTTOM NAVBAR ======= -->
665</body>
666</html>
667