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_79) on Wed Jul 20 08:39:13 PDT 2016 --> 6<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 7<title>POJONode (jackson-databind 2.8.0 API)</title> 8<meta name="date" content="2016-07-20"> 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.8.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: </li> 65<li>Nested | </li> 66<li><a href="#field_summary">Field</a> | </li> 67<li><a href="#constructor_summary">Constr</a> | </li> 68<li><a href="#method_summary">Method</a></li> 69</ul> 70<ul class="subNavList"> 71<li>Detail: </li> 72<li><a href="#field_detail">Field</a> | </li> 73<li><a href="#constructor_detail">Constr</a> | </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/7/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/JsonSerializable.Base.html" title="class in com.fasterxml.jackson.databind">com.fasterxml.jackson.databind.JsonSerializable.Base</a></li> 92<li> 93<ul class="inheritance"> 94<li><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">com.fasterxml.jackson.databind.JsonNode</a></li> 95<li> 96<ul class="inheritance"> 97<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> 98<li> 99<ul class="inheritance"> 100<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> 101<li> 102<ul class="inheritance"> 103<li>com.fasterxml.jackson.databind.node.POJONode</li> 104</ul> 105</li> 106</ul> 107</li> 108</ul> 109</li> 110</ul> 111</li> 112</ul> 113</li> 114</ul> 115<div class="description"> 116<ul class="blockList"> 117<li class="blockList"> 118<dl> 119<dt>All Implemented Interfaces:</dt> 120<dd><a href="http://fasterxml.github.com/jackson-core/javadoc/2.7/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/7/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>></dd> 121</dl> 122<hr> 123<br> 124<pre>public class <span class="strong">POJONode</span> 125extends <a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html" title="class in com.fasterxml.jackson.databind.node">ValueNode</a></pre> 126<div class="block">Value node that contains a wrapped POJO, to be serialized as 127 a JSON constructed through data mapping (usually done by 128 calling <a href="../../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind"><code>ObjectMapper</code></a>).</div> 129</li> 130</ul> 131</div> 132<div class="summary"> 133<ul class="blockList"> 134<li class="blockList"> 135<!-- ======== NESTED CLASS SUMMARY ======== --> 136<ul class="blockList"> 137<li class="blockList"><a name="nested_class_summary"> 138<!-- --> 139</a> 140<h3>Nested Class Summary</h3> 141<ul class="blockList"> 142<li class="blockList"><a name="nested_classes_inherited_from_class_com.fasterxml.jackson.databind.JsonSerializable"> 143<!-- --> 144</a> 145<h3>Nested classes/interfaces inherited from interface com.fasterxml.jackson.databind.<a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.html" title="interface in com.fasterxml.jackson.databind">JsonSerializable</a></h3> 146<code><a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.Base.html" title="class in com.fasterxml.jackson.databind">JsonSerializable.Base</a></code></li> 147</ul> 148</li> 149</ul> 150<!-- =========== FIELD SUMMARY =========== --> 151<ul class="blockList"> 152<li class="blockList"><a name="field_summary"> 153<!-- --> 154</a> 155<h3>Field Summary</h3> 156<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> 157<caption><span>Fields</span><span class="tabEnd"> </span></caption> 158<tr> 159<th class="colFirst" scope="col">Modifier and Type</th> 160<th class="colLast" scope="col">Field and Description</th> 161</tr> 162<tr class="altColor"> 163<td class="colFirst"><code>protected <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td> 164<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/node/POJONode.html#_value">_value</a></strong></code> </td> 165</tr> 166</table> 167</li> 168</ul> 169<!-- ======== CONSTRUCTOR SUMMARY ======== --> 170<ul class="blockList"> 171<li class="blockList"><a name="constructor_summary"> 172<!-- --> 173</a> 174<h3>Constructor Summary</h3> 175<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> 176<caption><span>Constructors</span><span class="tabEnd"> </span></caption> 177<tr> 178<th class="colOne" scope="col">Constructor and Description</th> 179</tr> 180<tr class="altColor"> 181<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/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> v)</code> </td> 182</tr> 183</table> 184</li> 185</ul> 186<!-- ========== METHOD SUMMARY =========== --> 187<ul class="blockList"> 188<li class="blockList"><a name="method_summary"> 189<!-- --> 190</a> 191<h3>Method Summary</h3> 192<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> 193<caption><span>Methods</span><span class="tabEnd"> </span></caption> 194<tr> 195<th class="colFirst" scope="col">Modifier and Type</th> 196<th class="colLast" scope="col">Method and Description</th> 197</tr> 198<tr class="altColor"> 199<td class="colFirst"><code>protected boolean</code></td> 200<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/node/POJONode.html#_pojoEquals(com.fasterxml.jackson.databind.node.POJONode)">_pojoEquals</a></strong>(<a href="../../../../../com/fasterxml/jackson/databind/node/POJONode.html" title="class in com.fasterxml.jackson.databind.node">POJONode</a> other)</code> </td> 201</tr> 202<tr class="rowColor"> 203<td class="colFirst"><code>boolean</code></td> 204<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/node/POJONode.html#asBoolean(boolean)">asBoolean</a></strong>(boolean defaultValue)</code> 205<div class="block">Method that will try to convert value of this node to a Java <b>boolean</b>.</div> 206</td> 207</tr> 208<tr class="altColor"> 209<td class="colFirst"><code>double</code></td> 210<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/node/POJONode.html#asDouble(double)">asDouble</a></strong>(double defaultValue)</code> 211<div class="block">Method that will try to convert value of this node to a Java <b>double</b>.</div> 212</td> 213</tr> 214<tr class="rowColor"> 215<td class="colFirst"><code>int</code></td> 216<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/node/POJONode.html#asInt(int)">asInt</a></strong>(int defaultValue)</code> 217<div class="block">Method that will try to convert value of this node to a Java <b>int</b>.</div> 218</td> 219</tr> 220<tr class="altColor"> 221<td class="colFirst"><code>long</code></td> 222<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/node/POJONode.html#asLong(long)">asLong</a></strong>(long defaultValue)</code> 223<div class="block">Method that will try to convert value of this node to a Java <b>long</b>.</div> 224</td> 225</tr> 226<tr class="rowColor"> 227<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> 228<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/node/POJONode.html#asText()">asText</a></strong>()</code> 229<div class="block">Method that will return a valid String representation of 230 the container value, if the node is a value node 231 (method <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isValueNode()"><code>JsonNode.isValueNode()</code></a> returns true), 232 otherwise empty String.</div> 233</td> 234</tr> 235<tr class="altColor"> 236<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> 237<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/node/POJONode.html#asText(java.lang.String)">asText</a></strong>(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> defaultValue)</code> 238<div class="block">Method similar to <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asText()"><code>JsonNode.asText()</code></a>, except that it will return 239 <code>defaultValue</code> in cases where null value would be returned; 240 either for missing nodes (trying to access missing property, or element 241 at invalid item for array) or explicit nulls.</div> 242</td> 243</tr> 244<tr class="rowColor"> 245<td class="colFirst"><code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.7/com/fasterxml/jackson/core/JsonToken.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonToken</a></code></td> 246<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/node/POJONode.html#asToken()">asToken</a></strong>()</code> 247<div class="block">Method that can be used for efficient type detection 248 when using stream abstraction for traversing nodes.</div> 249</td> 250</tr> 251<tr class="altColor"> 252<td class="colFirst"><code>byte[]</code></td> 253<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/node/POJONode.html#binaryValue()">binaryValue</a></strong>()</code> 254<div class="block">As it is possible that some implementations embed byte[] as POJONode 255 (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 256 binary data here too.</div> 257</td> 258</tr> 259<tr class="rowColor"> 260<td class="colFirst"><code>boolean</code></td> 261<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/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> o)</code> 262<div class="block">Equality for node objects is defined as full (deep) value 263 equality.</div> 264</td> 265</tr> 266<tr class="altColor"> 267<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> 268<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/node/POJONode.html#getNodeType()">getNodeType</a></strong>()</code> 269<div class="block">Return the type of this node</div> 270</td> 271</tr> 272<tr class="rowColor"> 273<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td> 274<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/node/POJONode.html#getPojo()">getPojo</a></strong>()</code> 275<div class="block">Method that can be used to access the POJO this node wraps.</div> 276</td> 277</tr> 278<tr class="altColor"> 279<td class="colFirst"><code>int</code></td> 280<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/node/POJONode.html#hashCode()">hashCode</a></strong>()</code> </td> 281</tr> 282<tr class="rowColor"> 283<td class="colFirst"><code>void</code></td> 284<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/node/POJONode.html#serialize(com.fasterxml.jackson.core.JsonGenerator,%20com.fasterxml.jackson.databind.SerializerProvider)">serialize</a></strong>(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.7/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator</a> gen, 285 <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html" title="class in com.fasterxml.jackson.databind">SerializerProvider</a> serializers)</code> 286<div class="block">Method called to serialize node instances using given generator.</div> 287</td> 288</tr> 289<tr class="altColor"> 290<td class="colFirst"><code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> 291<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/node/POJONode.html#toString()">toString</a></strong>()</code> 292<div class="block">Method that will produce developer-readable representation of the 293 node; which may <b>or may not</b> be as valid JSON.</div> 294</td> 295</tr> 296</table> 297<ul class="blockList"> 298<li class="blockList"><a name="methods_inherited_from_class_com.fasterxml.jackson.databind.node.ValueNode"> 299<!-- --> 300</a> 301<h3>Methods inherited from class 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> 302<code><a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#_at(com.fasterxml.jackson.core.JsonPointer)">_at</a>, <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,%20java.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,%20java.util.List)">findValues</a>, <a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#findValuesAsText(java.lang.String,%20java.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,%20com.fasterxml.jackson.databind.SerializerProvider,%20com.fasterxml.jackson.databind.jsontype.TypeSerializer)">serializeWithType</a></code></li> 303</ul> 304<ul class="blockList"> 305<li class="blockList"><a name="methods_inherited_from_class_com.fasterxml.jackson.databind.node.BaseJsonNode"> 306<!-- --> 307</a> 308<h3>Methods inherited from class 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> 309<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> 310</ul> 311<ul class="blockList"> 312<li class="blockList"><a name="methods_inherited_from_class_com.fasterxml.jackson.databind.JsonNode"> 313<!-- --> 314</a> 315<h3>Methods inherited from class com.fasterxml.jackson.databind.<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></h3> 316<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#at(com.fasterxml.jackson.core.JsonPointer)">at</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#at(java.lang.String)">at</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#equals(java.util.Comparator,%20com.fasterxml.jackson.databind.JsonNode)">equals</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> 317</ul> 318<ul class="blockList"> 319<li class="blockList"><a name="methods_inherited_from_class_com.fasterxml.jackson.databind.JsonSerializable.Base"> 320<!-- --> 321</a> 322<h3>Methods inherited from class com.fasterxml.jackson.databind.<a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.Base.html" title="class in com.fasterxml.jackson.databind">JsonSerializable.Base</a></h3> 323<code><a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.Base.html#isEmpty(com.fasterxml.jackson.databind.SerializerProvider)">isEmpty</a></code></li> 324</ul> 325<ul class="blockList"> 326<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> 327<!-- --> 328</a> 329<h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> 330<code><a href="http://docs.oracle.com/javase/7/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/7/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/7/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/7/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/7/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/7/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/7/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/7/docs/api/java/lang/Object.html?is-external=true#wait(long,%20int)" title="class or interface in java.lang">wait</a></code></li> 331</ul> 332</li> 333</ul> 334</li> 335</ul> 336</div> 337<div class="details"> 338<ul class="blockList"> 339<li class="blockList"> 340<!-- ============ FIELD DETAIL =========== --> 341<ul class="blockList"> 342<li class="blockList"><a name="field_detail"> 343<!-- --> 344</a> 345<h3>Field Detail</h3> 346<a name="_value"> 347<!-- --> 348</a> 349<ul class="blockListLast"> 350<li class="blockList"> 351<h4>_value</h4> 352<pre>protected final <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> _value</pre> 353</li> 354</ul> 355</li> 356</ul> 357<!-- ========= CONSTRUCTOR DETAIL ======== --> 358<ul class="blockList"> 359<li class="blockList"><a name="constructor_detail"> 360<!-- --> 361</a> 362<h3>Constructor Detail</h3> 363<a name="POJONode(java.lang.Object)"> 364<!-- --> 365</a> 366<ul class="blockListLast"> 367<li class="blockList"> 368<h4>POJONode</h4> 369<pre>public POJONode(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> v)</pre> 370</li> 371</ul> 372</li> 373</ul> 374<!-- ============ METHOD DETAIL ========== --> 375<ul class="blockList"> 376<li class="blockList"><a name="method_detail"> 377<!-- --> 378</a> 379<h3>Method Detail</h3> 380<a name="getNodeType()"> 381<!-- --> 382</a> 383<ul class="blockList"> 384<li class="blockList"> 385<h4>getNodeType</h4> 386<pre>public <a href="../../../../../com/fasterxml/jackson/databind/node/JsonNodeType.html" title="enum in com.fasterxml.jackson.databind.node">JsonNodeType</a> getNodeType()</pre> 387<div class="block"><strong>Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#getNodeType()">JsonNode</a></code></strong></div> 388<div class="block">Return the type of this node</div> 389<dl> 390<dt><strong>Specified by:</strong></dt> 391<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#getNodeType()">getNodeType</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></dd> 392<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> 393</li> 394</ul> 395<a name="asToken()"> 396<!-- --> 397</a> 398<ul class="blockList"> 399<li class="blockList"> 400<h4>asToken</h4> 401<pre>public <a href="http://fasterxml.github.com/jackson-core/javadoc/2.7/com/fasterxml/jackson/core/JsonToken.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonToken</a> asToken()</pre> 402<div class="block"><strong>Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#asToken()">BaseJsonNode</a></code></strong></div> 403<div class="block">Method that can be used for efficient type detection 404 when using stream abstraction for traversing nodes. 405 Will return the first <a href="http://fasterxml.github.com/jackson-core/javadoc/2.7/com/fasterxml/jackson/core/JsonToken.html?is-external=true" title="class or interface in com.fasterxml.jackson.core"><code>JsonToken</code></a> that equivalent 406 stream event would produce (for most nodes there is just 407 one token but for structured/container types multiple)</div> 408<dl> 409<dt><strong>Specified by:</strong></dt> 410<dd><code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.7/com/fasterxml/jackson/core/TreeNode.html?is-external=true#asToken()" title="class or interface in com.fasterxml.jackson.core">asToken</a></code> in interface <code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.7/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a></code></dd> 411<dt><strong>Specified by:</strong></dt> 412<dd><code><a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#asToken()">asToken</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html" title="class in com.fasterxml.jackson.databind.node">ValueNode</a></code></dd> 413</dl> 414</li> 415</ul> 416<a name="binaryValue()"> 417<!-- --> 418</a> 419<ul class="blockList"> 420<li class="blockList"> 421<h4>binaryValue</h4> 422<pre>public byte[] binaryValue() 423 throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> 424<div class="block">As it is possible that some implementations embed byte[] as POJONode 425 (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 426 binary data here too.</div> 427<dl> 428<dt><strong>Overrides:</strong></dt> 429<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#binaryValue()">binaryValue</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></dd> 430<dt><span class="strong">Returns:</span></dt><dd>Binary data this node contains, iff it is a binary 431 node; null otherwise</dd> 432<dt><span class="strong">Throws:</span></dt> 433<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd></dl> 434</li> 435</ul> 436<a name="asText()"> 437<!-- --> 438</a> 439<ul class="blockList"> 440<li class="blockList"> 441<h4>asText</h4> 442<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> asText()</pre> 443<div class="block"><strong>Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asText()">JsonNode</a></code></strong></div> 444<div class="block">Method that will return a valid String representation of 445 the container value, if the node is a value node 446 (method <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isValueNode()"><code>JsonNode.isValueNode()</code></a> returns true), 447 otherwise empty String.</div> 448<dl> 449<dt><strong>Specified by:</strong></dt> 450<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asText()">asText</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></dd> 451</dl> 452</li> 453</ul> 454<a name="asText(java.lang.String)"> 455<!-- --> 456</a> 457<ul class="blockList"> 458<li class="blockList"> 459<h4>asText</h4> 460<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> asText(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> defaultValue)</pre> 461<div class="block"><strong>Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asText(java.lang.String)">JsonNode</a></code></strong></div> 462<div class="block">Method similar to <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asText()"><code>JsonNode.asText()</code></a>, except that it will return 463 <code>defaultValue</code> in cases where null value would be returned; 464 either for missing nodes (trying to access missing property, or element 465 at invalid item for array) or explicit nulls.</div> 466<dl> 467<dt><strong>Overrides:</strong></dt> 468<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asText(java.lang.String)">asText</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></dd> 469</dl> 470</li> 471</ul> 472<a name="asBoolean(boolean)"> 473<!-- --> 474</a> 475<ul class="blockList"> 476<li class="blockList"> 477<h4>asBoolean</h4> 478<pre>public boolean asBoolean(boolean defaultValue)</pre> 479<div class="block"><strong>Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asBoolean(boolean)">JsonNode</a></code></strong></div> 480<div class="block">Method that will try to convert value of this node to a Java <b>boolean</b>. 481 JSON booleans map naturally; integer numbers other than 0 map to true, and 482 0 maps to false 483 and Strings 'true' and 'false' map to corresponding values. 484<p> 485 If representation can not be converted to a boolean value (including structured types 486 like Objects and Arrays), 487 specified <b>defaultValue</b> will be returned; no exceptions are thrown.</div> 488<dl> 489<dt><strong>Overrides:</strong></dt> 490<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asBoolean(boolean)">asBoolean</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></dd> 491</dl> 492</li> 493</ul> 494<a name="asInt(int)"> 495<!-- --> 496</a> 497<ul class="blockList"> 498<li class="blockList"> 499<h4>asInt</h4> 500<pre>public int asInt(int defaultValue)</pre> 501<div class="block"><strong>Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asInt(int)">JsonNode</a></code></strong></div> 502<div class="block">Method that will try to convert value of this node to a Java <b>int</b>. 503 Numbers are coerced using default Java rules; booleans convert to 0 (false) 504 and 1 (true), and Strings are parsed using default Java language integer 505 parsing rules. 506<p> 507 If representation can not be converted to an int (including structured types 508 like Objects and Arrays), 509 specified <b>defaultValue</b> will be returned; no exceptions are thrown.</div> 510<dl> 511<dt><strong>Overrides:</strong></dt> 512<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asInt(int)">asInt</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></dd> 513</dl> 514</li> 515</ul> 516<a name="asLong(long)"> 517<!-- --> 518</a> 519<ul class="blockList"> 520<li class="blockList"> 521<h4>asLong</h4> 522<pre>public long asLong(long defaultValue)</pre> 523<div class="block"><strong>Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asLong(long)">JsonNode</a></code></strong></div> 524<div class="block">Method that will try to convert value of this node to a Java <b>long</b>. 525 Numbers are coerced using default Java rules; booleans convert to 0 (false) 526 and 1 (true), and Strings are parsed using default Java language integer 527 parsing rules. 528<p> 529 If representation can not be converted to an long (including structured types 530 like Objects and Arrays), 531 specified <b>defaultValue</b> will be returned; no exceptions are thrown.</div> 532<dl> 533<dt><strong>Overrides:</strong></dt> 534<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asLong(long)">asLong</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></dd> 535</dl> 536</li> 537</ul> 538<a name="asDouble(double)"> 539<!-- --> 540</a> 541<ul class="blockList"> 542<li class="blockList"> 543<h4>asDouble</h4> 544<pre>public double asDouble(double defaultValue)</pre> 545<div class="block"><strong>Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asDouble(double)">JsonNode</a></code></strong></div> 546<div class="block">Method that will try to convert value of this node to a Java <b>double</b>. 547 Numbers are coerced using default Java rules; booleans convert to 0.0 (false) 548 and 1.0 (true), and Strings are parsed using default Java language integer 549 parsing rules. 550<p> 551 If representation can not be converted to an int (including structured types 552 like Objects and Arrays), 553 specified <b>defaultValue</b> will be returned; no exceptions are thrown.</div> 554<dl> 555<dt><strong>Overrides:</strong></dt> 556<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asDouble(double)">asDouble</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></dd> 557</dl> 558</li> 559</ul> 560<a name="serialize(com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.SerializerProvider)"> 561<!-- --> 562</a> 563<ul class="blockList"> 564<li class="blockList"> 565<h4>serialize</h4> 566<pre>public final void serialize(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.7/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator</a> gen, 567 <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html" title="class in com.fasterxml.jackson.databind">SerializerProvider</a> serializers) 568 throws <a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> 569<div class="block"><strong>Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#serialize(com.fasterxml.jackson.core.JsonGenerator,%20com.fasterxml.jackson.databind.SerializerProvider)">BaseJsonNode</a></code></strong></div> 570<div class="block">Method called to serialize node instances using given generator.</div> 571<dl> 572<dt><strong>Specified by:</strong></dt> 573<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.html#serialize(com.fasterxml.jackson.core.JsonGenerator,%20com.fasterxml.jackson.databind.SerializerProvider)">serialize</a></code> in interface <code><a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.html" title="interface in com.fasterxml.jackson.databind">JsonSerializable</a></code></dd> 574<dt><strong>Specified by:</strong></dt> 575<dd><code><a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#serialize(com.fasterxml.jackson.core.JsonGenerator,%20com.fasterxml.jackson.databind.SerializerProvider)">serialize</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html" title="class in com.fasterxml.jackson.databind.node">BaseJsonNode</a></code></dd> 576<dt><span class="strong">Throws:</span></dt> 577<dd><code><a href="http://docs.oracle.com/javase/7/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd></dl> 578</li> 579</ul> 580<a name="getPojo()"> 581<!-- --> 582</a> 583<ul class="blockList"> 584<li class="blockList"> 585<h4>getPojo</h4> 586<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> getPojo()</pre> 587<div class="block">Method that can be used to access the POJO this node wraps.</div> 588</li> 589</ul> 590<a name="equals(java.lang.Object)"> 591<!-- --> 592</a> 593<ul class="blockList"> 594<li class="blockList"> 595<h4>equals</h4> 596<pre>public boolean equals(<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> o)</pre> 597<div class="block"><strong>Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#equals(java.lang.Object)">JsonNode</a></code></strong></div> 598<div class="block">Equality for node objects is defined as full (deep) value 599 equality. This means that it is possible to compare complete 600 JSON trees for equality by comparing equality of root nodes. 601<p> 602 Note: marked as abstract to ensure all implementation 603 classes define it properly and not rely on definition 604 from <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang"><code>Object</code></a>.</div> 605<dl> 606<dt><strong>Specified by:</strong></dt> 607<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#equals(java.lang.Object)">equals</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></dd> 608</dl> 609</li> 610</ul> 611<a name="_pojoEquals(com.fasterxml.jackson.databind.node.POJONode)"> 612<!-- --> 613</a> 614<ul class="blockList"> 615<li class="blockList"> 616<h4>_pojoEquals</h4> 617<pre>protected boolean _pojoEquals(<a href="../../../../../com/fasterxml/jackson/databind/node/POJONode.html" title="class in com.fasterxml.jackson.databind.node">POJONode</a> other)</pre> 618<dl><dt><span class="strong">Since:</span></dt> 619 <dd>2.3</dd></dl> 620</li> 621</ul> 622<a name="hashCode()"> 623<!-- --> 624</a> 625<ul class="blockList"> 626<li class="blockList"> 627<h4>hashCode</h4> 628<pre>public int hashCode()</pre> 629<dl> 630<dt><strong>Specified by:</strong></dt> 631<dd><code><a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#hashCode()">hashCode</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html" title="class in com.fasterxml.jackson.databind.node">BaseJsonNode</a></code></dd> 632</dl> 633</li> 634</ul> 635<a name="toString()"> 636<!-- --> 637</a> 638<ul class="blockListLast"> 639<li class="blockList"> 640<h4>toString</h4> 641<pre>public <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> toString()</pre> 642<div class="block"><strong>Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#toString()">JsonNode</a></code></strong></div> 643<div class="block">Method that will produce developer-readable representation of the 644 node; which may <b>or may not</b> be as valid JSON. 645 If you want valid JSON output (or output formatted using one of 646 other Jackson supported data formats) make sure to use 647 <a href="../../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind"><code>ObjectMapper</code></a> or <a href="../../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind"><code>ObjectWriter</code></a> to serialize an 648 instance, for example: 649<pre> 650 String json = objectMapper.writeValueAsString(rootNode); 651</pre> 652<p> 653 Note: method defined as abstract to ensure all implementation 654 classes explicitly implement method, instead of relying 655 on <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang"><code>Object.toString()</code></a> definition.</div> 656<dl> 657<dt><strong>Overrides:</strong></dt> 658<dd><code><a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#toString()">toString</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html" title="class in com.fasterxml.jackson.databind.node">ValueNode</a></code></dd> 659</dl> 660</li> 661</ul> 662</li> 663</ul> 664</li> 665</ul> 666</div> 667</div> 668<!-- ========= END OF CLASS DATA ========= --> 669<!-- ======= START OF BOTTOM NAVBAR ====== --> 670<div class="bottomNav"><a name="navbar_bottom"> 671<!-- --> 672</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> 673<!-- --> 674</a> 675<ul class="navList" title="Navigation"> 676<li><a href="../../../../../overview-summary.html">Overview</a></li> 677<li><a href="package-summary.html">Package</a></li> 678<li class="navBarCell1Rev">Class</li> 679<li><a href="class-use/POJONode.html">Use</a></li> 680<li><a href="package-tree.html">Tree</a></li> 681<li><a href="../../../../../deprecated-list.html">Deprecated</a></li> 682<li><a href="../../../../../index-all.html">Index</a></li> 683<li><a href="../../../../../help-doc.html">Help</a></li> 684</ul> 685</div> 686<div class="subNav"> 687<ul class="navList"> 688<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> 689<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> 690</ul> 691<ul class="navList"> 692<li><a href="../../../../../index.html?com/fasterxml/jackson/databind/node/POJONode.html" target="_top">Frames</a></li> 693<li><a href="POJONode.html" target="_top">No Frames</a></li> 694</ul> 695<ul class="navList" id="allclasses_navbar_bottom"> 696<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> 697</ul> 698<div> 699<script type="text/javascript"><!-- 700 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 701 if(window==top) { 702 allClassesLink.style.display = "block"; 703 } 704 else { 705 allClassesLink.style.display = "none"; 706 } 707 //--> 708</script> 709</div> 710<div> 711<ul class="subNavList"> 712<li>Summary: </li> 713<li>Nested | </li> 714<li><a href="#field_summary">Field</a> | </li> 715<li><a href="#constructor_summary">Constr</a> | </li> 716<li><a href="#method_summary">Method</a></li> 717</ul> 718<ul class="subNavList"> 719<li>Detail: </li> 720<li><a href="#field_detail">Field</a> | </li> 721<li><a href="#constructor_detail">Constr</a> | </li> 722<li><a href="#method_detail">Method</a></li> 723</ul> 724</div> 725<a name="skip-navbar_bottom"> 726<!-- --> 727</a></div> 728<!-- ======== END OF BOTTOM NAVBAR ======= --> 729<p class="legalCopy"><small>Copyright © 2008–2016 <a href="http://fasterxml.com/">FasterXML</a>. All rights reserved.</small></p> 730</body> 731</html> 732