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