1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2<!-- NewPage --> 3<html lang="en"> 4<head> 5<!-- Generated by javadoc (version 1.7.0_25) on Mon Jun 02 17:48:54 PDT 2014 --> 6<meta http-equiv="Content-Type" content="text/html" charset="UTF-8"> 7<title>JsonNode (jackson-databind 2.4.0 API)</title> 8<meta name="date" content="2014-06-02"> 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="JsonNode (jackson-databind 2.4.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/JsonNode.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/JsonMappingException.Reference.html" title="class in com.fasterxml.jackson.databind"><span class="strong">Prev Class</span></a></li> 41<li><a href="../../../../com/fasterxml/jackson/databind/JsonSerializable.html" title="interface in com.fasterxml.jackson.databind"><span class="strong">Next Class</span></a></li> 42</ul> 43<ul class="navList"> 44<li><a href="../../../../index.html?com/fasterxml/jackson/databind/JsonNode.html" target="_top">Frames</a></li> 45<li><a href="JsonNode.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>Field | </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>Field | </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</div> 84<h2 title="Class JsonNode" class="title">Class JsonNode</h2> 85</div> 86<div class="contentContainer"> 87<ul class="inheritance"> 88<li><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> 89<li> 90<ul class="inheritance"> 91<li>com.fasterxml.jackson.databind.JsonNode</li> 92</ul> 93</li> 94</ul> 95<div class="description"> 96<ul class="blockList"> 97<li class="blockList"> 98<dl> 99<dt>All Implemented Interfaces:</dt> 100<dd><a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</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><<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>></dd> 101</dl> 102<dl> 103<dt>Direct Known Subclasses:</dt> 104<dd><a href="../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html" title="class in com.fasterxml.jackson.databind.node">BaseJsonNode</a></dd> 105</dl> 106<hr> 107<br> 108<pre>public abstract class <span class="strong">JsonNode</span> 109extends <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> 110implements <a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</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><<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>></pre> 111<div class="block">Base class for all JSON nodes, which form the basis of JSON 112 Tree Model that Jackson implements. 113 One way to think of these nodes is to consider them 114 similar to DOM nodes in XML DOM trees. 115<p> 116 As a general design rule, most accessors ("getters") are included 117 in this base class, to allow for traversing structure without 118 type casts. Most mutators, however, need to be accessed through 119 specific sub-classes (such as <code>ObjectNode</code> 120 and <code>ArrayNode</code>). 121 This seems sensible because proper type 122 information is generally available when building or modifying 123 trees, but less often when reading a tree (newly built from 124 parsed JSON content). 125<p> 126 Actual concrete sub-classes can be found from package 127 <a href="../../../../com/fasterxml/jackson/databind/node/package-summary.html"><code>com.fasterxml.jackson.databind.node</code></a>.</div> 128</li> 129</ul> 130</div> 131<div class="summary"> 132<ul class="blockList"> 133<li class="blockList"> 134<!-- ======== CONSTRUCTOR SUMMARY ======== --> 135<ul class="blockList"> 136<li class="blockList"><a name="constructor_summary"> 137<!-- --> 138</a> 139<h3>Constructor Summary</h3> 140<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> 141<caption><span>Constructors</span><span class="tabEnd"> </span></caption> 142<tr> 143<th class="colFirst" scope="col">Modifier</th> 144<th class="colLast" scope="col">Constructor and Description</th> 145</tr> 146<tr class="altColor"> 147<td class="colFirst"><code>protected </code></td> 148<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#JsonNode()">JsonNode</a></strong>()</code> </td> 149</tr> 150</table> 151</li> 152</ul> 153<!-- ========== METHOD SUMMARY =========== --> 154<ul class="blockList"> 155<li class="blockList"><a name="method_summary"> 156<!-- --> 157</a> 158<h3>Method Summary</h3> 159<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> 160<caption><span>Methods</span><span class="tabEnd"> </span></caption> 161<tr> 162<th class="colFirst" scope="col">Modifier and Type</th> 163<th class="colLast" scope="col">Method and Description</th> 164</tr> 165<tr class="altColor"> 166<td class="colFirst"><code>protected abstract <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></td> 167<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#_at(com.fasterxml.jackson.core.JsonPointer)">_at</a></strong>(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/JsonPointer.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonPointer</a> ptr)</code> </td> 168</tr> 169<tr class="rowColor"> 170<td class="colFirst"><code>boolean</code></td> 171<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#asBoolean()">asBoolean</a></strong>()</code> 172<div class="block">Method that will try to convert value of this node to a Java <b>boolean</b>.</div> 173</td> 174</tr> 175<tr class="altColor"> 176<td class="colFirst"><code>boolean</code></td> 177<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#asBoolean(boolean)">asBoolean</a></strong>(boolean defaultValue)</code> 178<div class="block">Method that will try to convert value of this node to a Java <b>boolean</b>.</div> 179</td> 180</tr> 181<tr class="rowColor"> 182<td class="colFirst"><code>double</code></td> 183<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#asDouble()">asDouble</a></strong>()</code> 184<div class="block">Method that will try to convert value of this node to a Java <b>double</b>.</div> 185</td> 186</tr> 187<tr class="altColor"> 188<td class="colFirst"><code>double</code></td> 189<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#asDouble(double)">asDouble</a></strong>(double defaultValue)</code> 190<div class="block">Method that will try to convert value of this node to a Java <b>double</b>.</div> 191</td> 192</tr> 193<tr class="rowColor"> 194<td class="colFirst"><code>int</code></td> 195<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#asInt()">asInt</a></strong>()</code> 196<div class="block">Method that will try to convert value of this node to a Java <b>int</b>.</div> 197</td> 198</tr> 199<tr class="altColor"> 200<td class="colFirst"><code>int</code></td> 201<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#asInt(int)">asInt</a></strong>(int defaultValue)</code> 202<div class="block">Method that will try to convert value of this node to a Java <b>int</b>.</div> 203</td> 204</tr> 205<tr class="rowColor"> 206<td class="colFirst"><code>long</code></td> 207<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#asLong()">asLong</a></strong>()</code> 208<div class="block">Method that will try to convert value of this node to a Java <b>long</b>.</div> 209</td> 210</tr> 211<tr class="altColor"> 212<td class="colFirst"><code>long</code></td> 213<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#asLong(long)">asLong</a></strong>(long defaultValue)</code> 214<div class="block">Method that will try to convert value of this node to a Java <b>long</b>.</div> 215</td> 216</tr> 217<tr class="rowColor"> 218<td class="colFirst"><code>abstract <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> 219<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#asText()">asText</a></strong>()</code> 220<div class="block">Method that will return a valid String representation of 221 the container value, if the node is a value node 222 (method <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isValueNode()"><code>isValueNode()</code></a> returns true), 223 otherwise empty String.</div> 224</td> 225</tr> 226<tr class="altColor"> 227<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> 228<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#asText(java.lang.String)">asText</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> defaultValue)</code> 229<div class="block">Method similar to <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#asText()"><code>asText()</code></a>, except that it will return 230 <code>defaultValue</code> in cases where null value would be returned; 231 either for missing nodes (trying to access missing property, or element 232 at invalid item for array) or explicit nulls.</div> 233</td> 234</tr> 235<tr class="rowColor"> 236<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></td> 237<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#at(com.fasterxml.jackson.core.JsonPointer)">at</a></strong>(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/JsonPointer.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonPointer</a> ptr)</code> 238<div class="block">Method for locating node specified by given JSON pointer instances.</div> 239</td> 240</tr> 241<tr class="altColor"> 242<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></td> 243<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#at(java.lang.String)">at</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> jsonPtrExpr)</code> 244<div class="block">Convenience method that is functionally equivalent to:</div> 245</td> 246</tr> 247<tr class="rowColor"> 248<td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/math/BigInteger.html?is-external=true" title="class or interface in java.math">BigInteger</a></code></td> 249<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#bigIntegerValue()">bigIntegerValue</a></strong>()</code> </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/JsonNode.html#binaryValue()">binaryValue</a></strong>()</code> 254<div class="block">Method to use for accessing binary content of binary nodes (nodes 255 for which <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isBinary()"><code>isBinary()</code></a> returns true); or for Text Nodes 256 (ones for which <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#textValue()"><code>textValue()</code></a> returns non-null value), 257 to read decoded base64 data.</div> 258</td> 259</tr> 260<tr class="rowColor"> 261<td class="colFirst"><code>boolean</code></td> 262<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#booleanValue()">booleanValue</a></strong>()</code> 263<div class="block">Method to use for accessing JSON boolean values (value 264 literals 'true' and 'false').</div> 265</td> 266</tr> 267<tr class="altColor"> 268<td class="colFirst"><code>boolean</code></td> 269<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#canConvertToInt()">canConvertToInt</a></strong>()</code> 270<div class="block">Method that can be used to check whether this node is a numeric 271 node (<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><code>isNumber()</code></a> would return true) AND its value fits 272 within Java's 32-bit signed integer type, <code>int</code>.</div> 273</td> 274</tr> 275<tr class="rowColor"> 276<td class="colFirst"><code>boolean</code></td> 277<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#canConvertToLong()">canConvertToLong</a></strong>()</code> 278<div class="block">Method that can be used to check whether this node is a numeric 279 node (<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><code>isNumber()</code></a> would return true) AND its value fits 280 within Java's 64-bit signed integer type, <code>long</code>.</div> 281</td> 282</tr> 283<tr class="altColor"> 284<td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math">BigDecimal</a></code></td> 285<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#decimalValue()">decimalValue</a></strong>()</code> </td> 286</tr> 287<tr class="rowColor"> 288<td class="colFirst"><code>abstract <T extends <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>> <br>T</code></td> 289<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#deepCopy()">deepCopy</a></strong>()</code> 290<div class="block">Method that can be called to get a node that is guaranteed 291 not to allow changing of this node through mutators on 292 this node or any of its children.</div> 293</td> 294</tr> 295<tr class="altColor"> 296<td class="colFirst"><code>double</code></td> 297<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#doubleValue()">doubleValue</a></strong>()</code> 298<div class="block">Returns 64-bit floating point (double) value for this node, <b>if and only if</b> 299 this node is numeric (<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><code>isNumber()</code></a> returns true).</div> 300</td> 301</tr> 302<tr class="rowColor"> 303<td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</a><<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>></code></td> 304<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#elements()">elements</a></strong>()</code> 305<div class="block">Method for accessing all value nodes of this Node, iff 306 this node is a JSON Array or Object node.</div> 307</td> 308</tr> 309<tr class="altColor"> 310<td class="colFirst"><code>abstract boolean</code></td> 311<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.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> o)</code> 312<div class="block">Equality for node objects is defined as full (deep) value 313 equality.</div> 314</td> 315</tr> 316<tr class="rowColor"> 317<td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</a><<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> 318<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#fieldNames()">fieldNames</a></strong>()</code> </td> 319</tr> 320<tr class="altColor"> 321<td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</a><<a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.Entry.html?is-external=true" title="class or interface in java.util">Map.Entry</a><<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>,<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>>></code></td> 322<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#fields()">fields</a></strong>()</code> </td> 323</tr> 324<tr class="rowColor"> 325<td class="colFirst"><code>abstract <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></td> 326<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#findParent(java.lang.String)">findParent</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</code> 327<div class="block">Method for finding a JSON Object that contains specified field, 328 within this node or its descendants.</div> 329</td> 330</tr> 331<tr class="altColor"> 332<td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>></code></td> 333<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#findParents(java.lang.String)">findParents</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</code> 334<div class="block">Method for finding a JSON Object that contains specified field, 335 within this node or its descendants.</div> 336</td> 337</tr> 338<tr class="rowColor"> 339<td class="colFirst"><code>abstract <a href="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>></code></td> 340<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#findParents(java.lang.String, java.util.List)">findParents</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName, 341 <a href="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>> foundSoFar)</code> </td> 342</tr> 343<tr class="altColor"> 344<td class="colFirst"><code>abstract <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></td> 345<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#findPath(java.lang.String)">findPath</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</code> 346<div class="block">Method similar to <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#findValue(java.lang.String)"><code>findValue(java.lang.String)</code></a>, but that will return a 347 "missing node" instead of null if no field is found.</div> 348</td> 349</tr> 350<tr class="rowColor"> 351<td class="colFirst"><code>abstract <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></td> 352<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#findValue(java.lang.String)">findValue</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</code> 353<div class="block">Method for finding a JSON Object field with specified name in this 354 node or its child nodes, and returning value it has.</div> 355</td> 356</tr> 357<tr class="altColor"> 358<td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>></code></td> 359<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#findValues(java.lang.String)">findValues</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</code> 360<div class="block">Method for finding JSON Object fields with specified name, and returning 361 found ones as a List.</div> 362</td> 363</tr> 364<tr class="rowColor"> 365<td class="colFirst"><code>abstract <a href="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>></code></td> 366<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#findValues(java.lang.String, java.util.List)">findValues</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName, 367 <a href="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>> foundSoFar)</code> </td> 368</tr> 369<tr class="altColor"> 370<td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<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> 371<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#findValuesAsText(java.lang.String)">findValuesAsText</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</code> 372<div class="block">Similar to <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#findValues(java.lang.String)"><code>findValues(java.lang.String)</code></a>, but will additionally convert 373 values into Strings, calling <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#asText()"><code>asText()</code></a>.</div> 374</td> 375</tr> 376<tr class="rowColor"> 377<td class="colFirst"><code>abstract <a href="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<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> 378<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#findValuesAsText(java.lang.String, java.util.List)">findValuesAsText</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName, 379 <a href="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<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>> foundSoFar)</code> </td> 380</tr> 381<tr class="altColor"> 382<td class="colFirst"><code>float</code></td> 383<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#floatValue()">floatValue</a></strong>()</code> 384<div class="block">Returns 32-bit floating value for this node, <b>if and only if</b> 385 this node is numeric (<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><code>isNumber()</code></a> returns true).</div> 386</td> 387</tr> 388<tr class="rowColor"> 389<td class="colFirst"><code>abstract <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></td> 390<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#get(int)">get</a></strong>(int index)</code> 391<div class="block">Method for accessing value of the specified element of 392 an array node.</div> 393</td> 394</tr> 395<tr class="altColor"> 396<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></td> 397<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#get(java.lang.String)">get</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</code> 398<div class="block">Method for accessing value of the specified field of 399 an object node.</div> 400</td> 401</tr> 402<tr class="rowColor"> 403<td class="colFirst"><code>abstract <a href="../../../../com/fasterxml/jackson/databind/node/JsonNodeType.html" title="enum in com.fasterxml.jackson.databind.node">JsonNodeType</a></code></td> 404<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#getNodeType()">getNodeType</a></strong>()</code> 405<div class="block">Return the type of this node</div> 406</td> 407</tr> 408<tr class="altColor"> 409<td class="colFirst"><code>boolean</code></td> 410<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#has(int)">has</a></strong>(int index)</code> 411<div class="block">Method that allows checking whether this node is JSON Array node 412 and contains a value for specified index 413 If this is the case 414 (including case of specified indexing having null as value), returns true; 415 otherwise returns false.</div> 416</td> 417</tr> 418<tr class="rowColor"> 419<td class="colFirst"><code>boolean</code></td> 420<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#has(java.lang.String)">has</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</code> 421<div class="block">Method that allows checking whether this node is JSON Object node 422 and contains value for specified property.</div> 423</td> 424</tr> 425<tr class="altColor"> 426<td class="colFirst"><code>boolean</code></td> 427<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#hasNonNull(int)">hasNonNull</a></strong>(int index)</code> 428<div class="block">Method that is similar to <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#has(int)"><code>has(int)</code></a>, but that will 429 return <code>false</code> for explicitly added nulls.</div> 430</td> 431</tr> 432<tr class="rowColor"> 433<td class="colFirst"><code>boolean</code></td> 434<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#hasNonNull(java.lang.String)">hasNonNull</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</code> 435<div class="block">Method that is similar to <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#has(java.lang.String)"><code>has(String)</code></a>, but that will 436 return <code>false</code> for explicitly added nulls.</div> 437</td> 438</tr> 439<tr class="altColor"> 440<td class="colFirst"><code>int</code></td> 441<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#intValue()">intValue</a></strong>()</code> 442<div class="block">Returns integer value for this node, <b>if and only if</b> 443 this node is numeric (<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><code>isNumber()</code></a> returns true).</div> 444</td> 445</tr> 446<tr class="rowColor"> 447<td class="colFirst"><code>boolean</code></td> 448<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isArray()">isArray</a></strong>()</code> </td> 449</tr> 450<tr class="altColor"> 451<td class="colFirst"><code>boolean</code></td> 452<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isBigDecimal()">isBigDecimal</a></strong>()</code> </td> 453</tr> 454<tr class="rowColor"> 455<td class="colFirst"><code>boolean</code></td> 456<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isBigInteger()">isBigInteger</a></strong>()</code> </td> 457</tr> 458<tr class="altColor"> 459<td class="colFirst"><code>boolean</code></td> 460<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isBinary()">isBinary</a></strong>()</code> 461<div class="block">Method that can be used to check if this node represents 462 binary data (Base64 encoded).</div> 463</td> 464</tr> 465<tr class="rowColor"> 466<td class="colFirst"><code>boolean</code></td> 467<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isBoolean()">isBoolean</a></strong>()</code> 468<div class="block">Method that can be used to check if this node was created from 469 JSON boolean value (literals "true" and "false").</div> 470</td> 471</tr> 472<tr class="altColor"> 473<td class="colFirst"><code>boolean</code></td> 474<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isContainerNode()">isContainerNode</a></strong>()</code> </td> 475</tr> 476<tr class="rowColor"> 477<td class="colFirst"><code>boolean</code></td> 478<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isDouble()">isDouble</a></strong>()</code> </td> 479</tr> 480<tr class="altColor"> 481<td class="colFirst"><code>boolean</code></td> 482<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isFloat()">isFloat</a></strong>()</code> </td> 483</tr> 484<tr class="rowColor"> 485<td class="colFirst"><code>boolean</code></td> 486<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isFloatingPointNumber()">isFloatingPointNumber</a></strong>()</code> </td> 487</tr> 488<tr class="altColor"> 489<td class="colFirst"><code>boolean</code></td> 490<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isInt()">isInt</a></strong>()</code> 491<div class="block">Method that can be used to check whether contained value 492 is a number represented as Java <code>int</code>.</div> 493</td> 494</tr> 495<tr class="rowColor"> 496<td class="colFirst"><code>boolean</code></td> 497<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isIntegralNumber()">isIntegralNumber</a></strong>()</code> </td> 498</tr> 499<tr class="altColor"> 500<td class="colFirst"><code>boolean</code></td> 501<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isLong()">isLong</a></strong>()</code> 502<div class="block">Method that can be used to check whether contained value 503 is a number represented as Java <code>long</code>.</div> 504</td> 505</tr> 506<tr class="rowColor"> 507<td class="colFirst"><code>boolean</code></td> 508<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode()">isMissingNode</a></strong>()</code> </td> 509</tr> 510<tr class="altColor"> 511<td class="colFirst"><code>boolean</code></td> 512<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNull()">isNull</a></strong>()</code> 513<div class="block">Method that can be used to check if this node was created from 514 JSON literal null value.</div> 515</td> 516</tr> 517<tr class="rowColor"> 518<td class="colFirst"><code>boolean</code></td> 519<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()">isNumber</a></strong>()</code> </td> 520</tr> 521<tr class="altColor"> 522<td class="colFirst"><code>boolean</code></td> 523<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isObject()">isObject</a></strong>()</code> </td> 524</tr> 525<tr class="rowColor"> 526<td class="colFirst"><code>boolean</code></td> 527<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isPojo()">isPojo</a></strong>()</code> 528<div class="block">Method that can be used to check if the node is a wrapper 529 for a POJO ("Plain Old Java Object" aka "bean".</div> 530</td> 531</tr> 532<tr class="altColor"> 533<td class="colFirst"><code>boolean</code></td> 534<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isShort()">isShort</a></strong>()</code> 535<div class="block">Method that can be used to check whether contained value 536 is a number represented as Java <code>short</code>.</div> 537</td> 538</tr> 539<tr class="rowColor"> 540<td class="colFirst"><code>boolean</code></td> 541<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isTextual()">isTextual</a></strong>()</code> 542<div class="block">Method that checks whether this node represents basic JSON String 543 value.</div> 544</td> 545</tr> 546<tr class="altColor"> 547<td class="colFirst"><code>boolean</code></td> 548<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isValueNode()">isValueNode</a></strong>()</code> </td> 549</tr> 550<tr class="rowColor"> 551<td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</a><<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>></code></td> 552<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#iterator()">iterator</a></strong>()</code> 553<div class="block">Same as calling <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#elements()"><code>elements()</code></a>; implemented so that 554 convenience "for-each" loop can be used for looping over elements 555 of JSON Array constructs.</div> 556</td> 557</tr> 558<tr class="altColor"> 559<td class="colFirst"><code>long</code></td> 560<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#longValue()">longValue</a></strong>()</code> 561<div class="block">Returns 64-bit long value for this node, <b>if and only if</b> 562 this node is numeric (<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><code>isNumber()</code></a> returns true).</div> 563</td> 564</tr> 565<tr class="rowColor"> 566<td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Number.html?is-external=true" title="class or interface in java.lang">Number</a></code></td> 567<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#numberValue()">numberValue</a></strong>()</code> 568<div class="block">Returns numeric value for this node, <b>if and only if</b> 569 this node is numeric (<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><code>isNumber()</code></a> returns true); otherwise 570 returns null</div> 571</td> 572</tr> 573<tr class="altColor"> 574<td class="colFirst"><code>abstract <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></td> 575<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#path(int)">path</a></strong>(int index)</code> 576<div class="block">This method is similar to <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#get(int)"><code>get(int)</code></a>, except 577 that instead of returning null if no such element exists (due 578 to index being out of range, or this node not being an array), 579 a "missing node" (node that returns true for 580 <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode()"><code>isMissingNode()</code></a>) will be returned.</div> 581</td> 582</tr> 583<tr class="rowColor"> 584<td class="colFirst"><code>abstract <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></td> 585<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#path(java.lang.String)">path</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</code> 586<div class="block">This method is similar to <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#get(java.lang.String)"><code>get(String)</code></a>, except 587 that instead of returning null if no such value exists (due 588 to this node not being an object, or object not having value 589 for the specified field), 590 a "missing node" (node that returns true for 591 <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode()"><code>isMissingNode()</code></a>) will be returned.</div> 592</td> 593</tr> 594<tr class="altColor"> 595<td class="colFirst"><code>short</code></td> 596<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#shortValue()">shortValue</a></strong>()</code> 597<div class="block">Returns 16-bit short value for this node, <b>if and only if</b> 598 this node is numeric (<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><code>isNumber()</code></a> returns true).</div> 599</td> 600</tr> 601<tr class="rowColor"> 602<td class="colFirst"><code>int</code></td> 603<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#size()">size</a></strong>()</code> </td> 604</tr> 605<tr class="altColor"> 606<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> 607<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#textValue()">textValue</a></strong>()</code> 608<div class="block">Method to use for accessing String values.</div> 609</td> 610</tr> 611<tr class="rowColor"> 612<td class="colFirst"><code>abstract <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> 613<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#toString()">toString</a></strong>()</code> 614<div class="block"> 615 Note: marked as abstract to ensure all implementation 616 classes define it properly.</div> 617</td> 618</tr> 619<tr class="altColor"> 620<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></td> 621<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#with(java.lang.String)">with</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> propertyName)</code> 622<div class="block">Method that can be called on Object nodes, to access a property 623 that has Object value; or if no such property exists, to create, 624 add and return such Object node.</div> 625</td> 626</tr> 627<tr class="rowColor"> 628<td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></td> 629<td class="colLast"><code><strong><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#withArray(java.lang.String)">withArray</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> propertyName)</code> 630<div class="block">Method that can be called on Object nodes, to access a property 631 that has <code>Array</code> value; or if no such property exists, to create, 632 add and return such Array node.</div> 633</td> 634</tr> 635</table> 636<ul class="blockList"> 637<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> 638<!-- --> 639</a> 640<h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> 641<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#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#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> 642</ul> 643<ul class="blockList"> 644<li class="blockList"><a name="methods_inherited_from_class_com.fasterxml.jackson.core.TreeNode"> 645<!-- --> 646</a> 647<h3>Methods inherited from interface com.fasterxml.jackson.core.<a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a></h3> 648<code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/TreeNode.html?is-external=true#asToken()" title="class or interface in com.fasterxml.jackson.core">asToken</a>, <a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/TreeNode.html?is-external=true#numberType()" title="class or interface in com.fasterxml.jackson.core">numberType</a>, <a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/TreeNode.html?is-external=true#traverse()" title="class or interface in com.fasterxml.jackson.core">traverse</a>, <a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/TreeNode.html?is-external=true#traverse(com.fasterxml.jackson.core.ObjectCodec)" title="class or interface in com.fasterxml.jackson.core">traverse</a></code></li> 649</ul> 650</li> 651</ul> 652</li> 653</ul> 654</div> 655<div class="details"> 656<ul class="blockList"> 657<li class="blockList"> 658<!-- ========= CONSTRUCTOR DETAIL ======== --> 659<ul class="blockList"> 660<li class="blockList"><a name="constructor_detail"> 661<!-- --> 662</a> 663<h3>Constructor Detail</h3> 664<a name="JsonNode()"> 665<!-- --> 666</a> 667<ul class="blockListLast"> 668<li class="blockList"> 669<h4>JsonNode</h4> 670<pre>protected JsonNode()</pre> 671</li> 672</ul> 673</li> 674</ul> 675<!-- ============ METHOD DETAIL ========== --> 676<ul class="blockList"> 677<li class="blockList"><a name="method_detail"> 678<!-- --> 679</a> 680<h3>Method Detail</h3> 681<a name="deepCopy()"> 682<!-- --> 683</a> 684<ul class="blockList"> 685<li class="blockList"> 686<h4>deepCopy</h4> 687<pre>public abstract <T extends <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>> T deepCopy()</pre> 688<div class="block">Method that can be called to get a node that is guaranteed 689 not to allow changing of this node through mutators on 690 this node or any of its children. 691 This means it can either make a copy of this node (and all 692 mutable children and grand children nodes), or node itself 693 if it is immutable. 694<p> 695 Note: return type is guaranteed to have same type as the 696 node method is called on; which is why method is declared 697 with local generic type.</div> 698<dl><dt><span class="strong">Returns:</span></dt><dd>Node that is either a copy of this node (and all non-leaf 699 children); or, for immutable leaf nodes, node itself.</dd><dt><span class="strong">Since:</span></dt> 700 <dd>2.0</dd></dl> 701</li> 702</ul> 703<a name="size()"> 704<!-- --> 705</a> 706<ul class="blockList"> 707<li class="blockList"> 708<h4>size</h4> 709<pre>public int size()</pre> 710<dl> 711<dt><strong>Specified by:</strong></dt> 712<dd><code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/TreeNode.html?is-external=true#size()" title="class or interface in com.fasterxml.jackson.core">size</a></code> in interface <code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a></code></dd> 713</dl> 714</li> 715</ul> 716<a name="isValueNode()"> 717<!-- --> 718</a> 719<ul class="blockList"> 720<li class="blockList"> 721<h4>isValueNode</h4> 722<pre>public final boolean isValueNode()</pre> 723<dl> 724<dt><strong>Specified by:</strong></dt> 725<dd><code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/TreeNode.html?is-external=true#isValueNode()" title="class or interface in com.fasterxml.jackson.core">isValueNode</a></code> in interface <code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a></code></dd> 726</dl> 727</li> 728</ul> 729<a name="isContainerNode()"> 730<!-- --> 731</a> 732<ul class="blockList"> 733<li class="blockList"> 734<h4>isContainerNode</h4> 735<pre>public final boolean isContainerNode()</pre> 736<dl> 737<dt><strong>Specified by:</strong></dt> 738<dd><code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/TreeNode.html?is-external=true#isContainerNode()" title="class or interface in com.fasterxml.jackson.core">isContainerNode</a></code> in interface <code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a></code></dd> 739</dl> 740</li> 741</ul> 742<a name="isMissingNode()"> 743<!-- --> 744</a> 745<ul class="blockList"> 746<li class="blockList"> 747<h4>isMissingNode</h4> 748<pre>public final boolean isMissingNode()</pre> 749<dl> 750<dt><strong>Specified by:</strong></dt> 751<dd><code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/TreeNode.html?is-external=true#isMissingNode()" title="class or interface in com.fasterxml.jackson.core">isMissingNode</a></code> in interface <code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a></code></dd> 752</dl> 753</li> 754</ul> 755<a name="isArray()"> 756<!-- --> 757</a> 758<ul class="blockList"> 759<li class="blockList"> 760<h4>isArray</h4> 761<pre>public final boolean isArray()</pre> 762<dl> 763<dt><strong>Specified by:</strong></dt> 764<dd><code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/TreeNode.html?is-external=true#isArray()" title="class or interface in com.fasterxml.jackson.core">isArray</a></code> in interface <code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a></code></dd> 765</dl> 766</li> 767</ul> 768<a name="isObject()"> 769<!-- --> 770</a> 771<ul class="blockList"> 772<li class="blockList"> 773<h4>isObject</h4> 774<pre>public final boolean isObject()</pre> 775<dl> 776<dt><strong>Specified by:</strong></dt> 777<dd><code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/TreeNode.html?is-external=true#isObject()" title="class or interface in com.fasterxml.jackson.core">isObject</a></code> in interface <code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a></code></dd> 778</dl> 779</li> 780</ul> 781<a name="get(int)"> 782<!-- --> 783</a> 784<ul class="blockList"> 785<li class="blockList"> 786<h4>get</h4> 787<pre>public abstract <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a> get(int index)</pre> 788<div class="block">Method for accessing value of the specified element of 789 an array node. For other nodes, null is always returned. 790<p> 791 For array nodes, index specifies 792 exact location within array and allows for efficient iteration 793 over child elements (underlying storage is guaranteed to 794 be efficiently indexable, i.e. has random-access to elements). 795 If index is less than 0, or equal-or-greater than 796 <code>node.size()</code>, null is returned; no exception is 797 thrown for any index. 798<p> 799 NOTE: if the element value has been explicitly set as <code>null</code> 800 (which is different from removal!), 801 a <a href="../../../../com/fasterxml/jackson/databind/node/NullNode.html" title="class in com.fasterxml.jackson.databind.node"><code>NullNode</code></a> will be returned, 802 not null.</div> 803<dl> 804<dt><strong>Specified by:</strong></dt> 805<dd><code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/TreeNode.html?is-external=true#get(int)" title="class or interface in com.fasterxml.jackson.core">get</a></code> in interface <code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a></code></dd> 806<dt><span class="strong">Returns:</span></dt><dd>Node that represent value of the specified element, 807 if this node is an array and has specified element. 808 Null otherwise.</dd></dl> 809</li> 810</ul> 811<a name="get(java.lang.String)"> 812<!-- --> 813</a> 814<ul class="blockList"> 815<li class="blockList"> 816<h4>get</h4> 817<pre>public <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a> get(<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> fieldName)</pre> 818<div class="block">Method for accessing value of the specified field of 819 an object node. If this node is not an object (or it 820 does not have a value for specified field name), or 821 if there is no field with such name, null is returned. 822<p> 823 NOTE: if the property value has been explicitly set as <code>null</code> 824 (which is different from removal!), 825 a <a href="../../../../com/fasterxml/jackson/databind/node/NullNode.html" title="class in com.fasterxml.jackson.databind.node"><code>NullNode</code></a> will be returned, 826 not null.</div> 827<dl> 828<dt><strong>Specified by:</strong></dt> 829<dd><code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/TreeNode.html?is-external=true#get(java.lang.String)" title="class or interface in com.fasterxml.jackson.core">get</a></code> in interface <code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a></code></dd> 830<dt><span class="strong">Returns:</span></dt><dd>Node that represent value of the specified field, 831 if this node is an object and has value for the specified 832 field. Null otherwise.</dd></dl> 833</li> 834</ul> 835<a name="path(java.lang.String)"> 836<!-- --> 837</a> 838<ul class="blockList"> 839<li class="blockList"> 840<h4>path</h4> 841<pre>public abstract <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a> path(<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> fieldName)</pre> 842<div class="block">This method is similar to <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#get(java.lang.String)"><code>get(String)</code></a>, except 843 that instead of returning null if no such value exists (due 844 to this node not being an object, or object not having value 845 for the specified field), 846 a "missing node" (node that returns true for 847 <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode()"><code>isMissingNode()</code></a>) will be returned. This allows for 848 convenient and safe chained access via path calls.</div> 849<dl> 850<dt><strong>Specified by:</strong></dt> 851<dd><code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/TreeNode.html?is-external=true#path(java.lang.String)" title="class or interface in com.fasterxml.jackson.core">path</a></code> in interface <code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a></code></dd> 852</dl> 853</li> 854</ul> 855<a name="path(int)"> 856<!-- --> 857</a> 858<ul class="blockList"> 859<li class="blockList"> 860<h4>path</h4> 861<pre>public abstract <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a> path(int index)</pre> 862<div class="block">This method is similar to <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#get(int)"><code>get(int)</code></a>, except 863 that instead of returning null if no such element exists (due 864 to index being out of range, or this node not being an array), 865 a "missing node" (node that returns true for 866 <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode()"><code>isMissingNode()</code></a>) will be returned. This allows for 867 convenient and safe chained access via path calls.</div> 868<dl> 869<dt><strong>Specified by:</strong></dt> 870<dd><code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/TreeNode.html?is-external=true#path(int)" title="class or interface in com.fasterxml.jackson.core">path</a></code> in interface <code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a></code></dd> 871</dl> 872</li> 873</ul> 874<a name="fieldNames()"> 875<!-- --> 876</a> 877<ul class="blockList"> 878<li class="blockList"> 879<h4>fieldNames</h4> 880<pre>public <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</a><<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>> fieldNames()</pre> 881<dl> 882<dt><strong>Specified by:</strong></dt> 883<dd><code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/TreeNode.html?is-external=true#fieldNames()" title="class or interface in com.fasterxml.jackson.core">fieldNames</a></code> in interface <code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a></code></dd> 884</dl> 885</li> 886</ul> 887<a name="at(com.fasterxml.jackson.core.JsonPointer)"> 888<!-- --> 889</a> 890<ul class="blockList"> 891<li class="blockList"> 892<h4>at</h4> 893<pre>public final <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a> at(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/JsonPointer.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonPointer</a> ptr)</pre> 894<div class="block">Method for locating node specified by given JSON pointer instances. 895 Method will never return null; if no matching node exists, 896 will return a node for which <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode()"><code>isMissingNode()</code></a> returns true.</div> 897<dl> 898<dt><strong>Specified by:</strong></dt> 899<dd><code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/TreeNode.html?is-external=true#at(com.fasterxml.jackson.core.JsonPointer)" title="class or interface in com.fasterxml.jackson.core">at</a></code> in interface <code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a></code></dd> 900<dt><span class="strong">Returns:</span></dt><dd>Node that matches given JSON Pointer: if no match exists, 901 will return a node for which <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode()"><code>isMissingNode()</code></a> returns true.</dd><dt><span class="strong">Since:</span></dt> 902 <dd>2.3</dd></dl> 903</li> 904</ul> 905<a name="at(java.lang.String)"> 906<!-- --> 907</a> 908<ul class="blockList"> 909<li class="blockList"> 910<h4>at</h4> 911<pre>public final <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a> at(<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> jsonPtrExpr)</pre> 912<div class="block">Convenience method that is functionally equivalent to: 913<pre> 914 return at(JsonPointer.valueOf(jsonPointerExpression)); 915</pre> 916<p> 917 Note that if the same expression is used often, it is preferable to construct 918 <a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/JsonPointer.html?is-external=true" title="class or interface in com.fasterxml.jackson.core"><code>JsonPointer</code></a> instance once and reuse it: this method will not perform 919 any caching of compiled expressions.</div> 920<dl> 921<dt><strong>Specified by:</strong></dt> 922<dd><code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/TreeNode.html?is-external=true#at(java.lang.String)" title="class or interface in com.fasterxml.jackson.core">at</a></code> in interface <code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a></code></dd> 923<dt><span class="strong">Parameters:</span></dt><dd><code>jsonPtrExpr</code> - Expression to compile as a <a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/JsonPointer.html?is-external=true" title="class or interface in com.fasterxml.jackson.core"><code>JsonPointer</code></a> 924 instance</dd> 925<dt><span class="strong">Returns:</span></dt><dd>Node that matches given JSON Pointer: if no match exists, 926 will return a node for which <a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/TreeNode.html?is-external=true#isMissingNode()" title="class or interface in com.fasterxml.jackson.core"><code>TreeNode.isMissingNode()</code></a> returns true.</dd><dt><span class="strong">Since:</span></dt> 927 <dd>2.3</dd></dl> 928</li> 929</ul> 930<a name="_at(com.fasterxml.jackson.core.JsonPointer)"> 931<!-- --> 932</a> 933<ul class="blockList"> 934<li class="blockList"> 935<h4>_at</h4> 936<pre>protected abstract <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a> _at(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.4/com/fasterxml/jackson/core/JsonPointer.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonPointer</a> ptr)</pre> 937</li> 938</ul> 939<a name="getNodeType()"> 940<!-- --> 941</a> 942<ul class="blockList"> 943<li class="blockList"> 944<h4>getNodeType</h4> 945<pre>public abstract <a href="../../../../com/fasterxml/jackson/databind/node/JsonNodeType.html" title="enum in com.fasterxml.jackson.databind.node">JsonNodeType</a> getNodeType()</pre> 946<div class="block">Return the type of this node</div> 947<dl><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><dt><span class="strong">Since:</span></dt> 948 <dd>2.2</dd></dl> 949</li> 950</ul> 951<a name="isPojo()"> 952<!-- --> 953</a> 954<ul class="blockList"> 955<li class="blockList"> 956<h4>isPojo</h4> 957<pre>public final boolean isPojo()</pre> 958<div class="block">Method that can be used to check if the node is a wrapper 959 for a POJO ("Plain Old Java Object" aka "bean". 960 Returns true only for 961 instances of <code>POJONode</code>.</div> 962<dl><dt><span class="strong">Returns:</span></dt><dd>True if this node wraps a POJO</dd></dl> 963</li> 964</ul> 965<a name="isNumber()"> 966<!-- --> 967</a> 968<ul class="blockList"> 969<li class="blockList"> 970<h4>isNumber</h4> 971<pre>public final boolean isNumber()</pre> 972<dl><dt><span class="strong">Returns:</span></dt><dd>True if this node represents a numeric JSON value</dd></dl> 973</li> 974</ul> 975<a name="isIntegralNumber()"> 976<!-- --> 977</a> 978<ul class="blockList"> 979<li class="blockList"> 980<h4>isIntegralNumber</h4> 981<pre>public boolean isIntegralNumber()</pre> 982<dl><dt><span class="strong">Returns:</span></dt><dd>True if this node represents an integral (integer) 983 numeric JSON value</dd></dl> 984</li> 985</ul> 986<a name="isFloatingPointNumber()"> 987<!-- --> 988</a> 989<ul class="blockList"> 990<li class="blockList"> 991<h4>isFloatingPointNumber</h4> 992<pre>public boolean isFloatingPointNumber()</pre> 993<dl><dt><span class="strong">Returns:</span></dt><dd>True if this node represents a non-integral 994 numeric JSON value</dd></dl> 995</li> 996</ul> 997<a name="isShort()"> 998<!-- --> 999</a> 1000<ul class="blockList"> 1001<li class="blockList"> 1002<h4>isShort</h4> 1003<pre>public boolean isShort()</pre> 1004<div class="block">Method that can be used to check whether contained value 1005 is a number represented as Java <code>short</code>. 1006 Note, however, that even if this method returns false, it 1007 is possible that conversion would be possible from other numeric 1008 types -- to check if this is possible, use 1009 <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#canConvertToInt()"><code>canConvertToInt()</code></a> instead.</div> 1010<dl><dt><span class="strong">Returns:</span></dt><dd>True if the value contained by this node is stored as Java short</dd></dl> 1011</li> 1012</ul> 1013<a name="isInt()"> 1014<!-- --> 1015</a> 1016<ul class="blockList"> 1017<li class="blockList"> 1018<h4>isInt</h4> 1019<pre>public boolean isInt()</pre> 1020<div class="block">Method that can be used to check whether contained value 1021 is a number represented as Java <code>int</code>. 1022 Note, however, that even if this method returns false, it 1023 is possible that conversion would be possible from other numeric 1024 types -- to check if this is possible, use 1025 <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#canConvertToInt()"><code>canConvertToInt()</code></a> instead.</div> 1026<dl><dt><span class="strong">Returns:</span></dt><dd>True if the value contained by this node is stored as Java int</dd></dl> 1027</li> 1028</ul> 1029<a name="isLong()"> 1030<!-- --> 1031</a> 1032<ul class="blockList"> 1033<li class="blockList"> 1034<h4>isLong</h4> 1035<pre>public boolean isLong()</pre> 1036<div class="block">Method that can be used to check whether contained value 1037 is a number represented as Java <code>long</code>. 1038 Note, however, that even if this method returns false, it 1039 is possible that conversion would be possible from other numeric 1040 types -- to check if this is possible, use 1041 <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#canConvertToInt()"><code>canConvertToInt()</code></a> instead.</div> 1042<dl><dt><span class="strong">Returns:</span></dt><dd>True if the value contained by this node is stored as Java <code>long</code></dd></dl> 1043</li> 1044</ul> 1045<a name="isFloat()"> 1046<!-- --> 1047</a> 1048<ul class="blockList"> 1049<li class="blockList"> 1050<h4>isFloat</h4> 1051<pre>public boolean isFloat()</pre> 1052<dl><dt><span class="strong">Since:</span></dt> 1053 <dd>2.2</dd></dl> 1054</li> 1055</ul> 1056<a name="isDouble()"> 1057<!-- --> 1058</a> 1059<ul class="blockList"> 1060<li class="blockList"> 1061<h4>isDouble</h4> 1062<pre>public boolean isDouble()</pre> 1063</li> 1064</ul> 1065<a name="isBigDecimal()"> 1066<!-- --> 1067</a> 1068<ul class="blockList"> 1069<li class="blockList"> 1070<h4>isBigDecimal</h4> 1071<pre>public boolean isBigDecimal()</pre> 1072</li> 1073</ul> 1074<a name="isBigInteger()"> 1075<!-- --> 1076</a> 1077<ul class="blockList"> 1078<li class="blockList"> 1079<h4>isBigInteger</h4> 1080<pre>public boolean isBigInteger()</pre> 1081</li> 1082</ul> 1083<a name="isTextual()"> 1084<!-- --> 1085</a> 1086<ul class="blockList"> 1087<li class="blockList"> 1088<h4>isTextual</h4> 1089<pre>public final boolean isTextual()</pre> 1090<div class="block">Method that checks whether this node represents basic JSON String 1091 value.</div> 1092</li> 1093</ul> 1094<a name="isBoolean()"> 1095<!-- --> 1096</a> 1097<ul class="blockList"> 1098<li class="blockList"> 1099<h4>isBoolean</h4> 1100<pre>public final boolean isBoolean()</pre> 1101<div class="block">Method that can be used to check if this node was created from 1102 JSON boolean value (literals "true" and "false").</div> 1103</li> 1104</ul> 1105<a name="isNull()"> 1106<!-- --> 1107</a> 1108<ul class="blockList"> 1109<li class="blockList"> 1110<h4>isNull</h4> 1111<pre>public final boolean isNull()</pre> 1112<div class="block">Method that can be used to check if this node was created from 1113 JSON literal null value.</div> 1114</li> 1115</ul> 1116<a name="isBinary()"> 1117<!-- --> 1118</a> 1119<ul class="blockList"> 1120<li class="blockList"> 1121<h4>isBinary</h4> 1122<pre>public final boolean isBinary()</pre> 1123<div class="block">Method that can be used to check if this node represents 1124 binary data (Base64 encoded). Although this will be externally 1125 written as JSON String value, <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isTextual()"><code>isTextual()</code></a> will 1126 return false if this method returns true.</div> 1127<dl><dt><span class="strong">Returns:</span></dt><dd>True if this node represents base64 encoded binary data</dd></dl> 1128</li> 1129</ul> 1130<a name="canConvertToInt()"> 1131<!-- --> 1132</a> 1133<ul class="blockList"> 1134<li class="blockList"> 1135<h4>canConvertToInt</h4> 1136<pre>public boolean canConvertToInt()</pre> 1137<div class="block">Method that can be used to check whether this node is a numeric 1138 node (<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><code>isNumber()</code></a> would return true) AND its value fits 1139 within Java's 32-bit signed integer type, <code>int</code>. 1140 Note that floating-point numbers are convertible if the integral 1141 part fits without overflow (as per standard Java coercion rules) 1142<p> 1143 NOTE: this method does not consider possible value type conversion 1144 from JSON String into Number; so even if this method returns false, 1145 it is possible that <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#asInt()"><code>asInt()</code></a> could still succeed 1146 if node is a JSON String representing integral number, or boolean.</div> 1147<dl><dt><span class="strong">Since:</span></dt> 1148 <dd>2.0</dd></dl> 1149</li> 1150</ul> 1151<a name="canConvertToLong()"> 1152<!-- --> 1153</a> 1154<ul class="blockList"> 1155<li class="blockList"> 1156<h4>canConvertToLong</h4> 1157<pre>public boolean canConvertToLong()</pre> 1158<div class="block">Method that can be used to check whether this node is a numeric 1159 node (<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><code>isNumber()</code></a> would return true) AND its value fits 1160 within Java's 64-bit signed integer type, <code>long</code>. 1161 Note that floating-point numbers are convertible if the integral 1162 part fits without overflow (as per standard Java coercion rules) 1163<p> 1164 NOTE: this method does not consider possible value type conversion 1165 from JSON String into Number; so even if this method returns false, 1166 it is possible that <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#asLong()"><code>asLong()</code></a> could still succeed 1167 if node is a JSON String representing integral number, or boolean.</div> 1168<dl><dt><span class="strong">Since:</span></dt> 1169 <dd>2.0</dd></dl> 1170</li> 1171</ul> 1172<a name="textValue()"> 1173<!-- --> 1174</a> 1175<ul class="blockList"> 1176<li class="blockList"> 1177<h4>textValue</h4> 1178<pre>public <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> textValue()</pre> 1179<div class="block">Method to use for accessing String values. 1180 Does <b>NOT</b> do any conversions for non-String value nodes; 1181 for non-String values (ones for which <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isTextual()"><code>isTextual()</code></a> returns 1182 false) null will be returned. 1183 For String values, null is never returned (but empty Strings may be)</div> 1184<dl><dt><span class="strong">Returns:</span></dt><dd>Textual value this node contains, iff it is a textual 1185 JSON node (comes from JSON String value entry)</dd></dl> 1186</li> 1187</ul> 1188<a name="binaryValue()"> 1189<!-- --> 1190</a> 1191<ul class="blockList"> 1192<li class="blockList"> 1193<h4>binaryValue</h4> 1194<pre>public byte[] binaryValue() 1195 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> 1196<div class="block">Method to use for accessing binary content of binary nodes (nodes 1197 for which <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isBinary()"><code>isBinary()</code></a> returns true); or for Text Nodes 1198 (ones for which <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#textValue()"><code>textValue()</code></a> returns non-null value), 1199 to read decoded base64 data. 1200 For other types of nodes, returns null.</div> 1201<dl><dt><span class="strong">Returns:</span></dt><dd>Binary data this node contains, iff it is a binary 1202 node; null otherwise</dd> 1203<dt><span class="strong">Throws:</span></dt> 1204<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> 1205</li> 1206</ul> 1207<a name="booleanValue()"> 1208<!-- --> 1209</a> 1210<ul class="blockList"> 1211<li class="blockList"> 1212<h4>booleanValue</h4> 1213<pre>public boolean booleanValue()</pre> 1214<div class="block">Method to use for accessing JSON boolean values (value 1215 literals 'true' and 'false'). 1216 For other types, always returns false.</div> 1217<dl><dt><span class="strong">Returns:</span></dt><dd>Textual value this node contains, iff it is a textual 1218 json node (comes from JSON String value entry)</dd></dl> 1219</li> 1220</ul> 1221<a name="numberValue()"> 1222<!-- --> 1223</a> 1224<ul class="blockList"> 1225<li class="blockList"> 1226<h4>numberValue</h4> 1227<pre>public <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Number.html?is-external=true" title="class or interface in java.lang">Number</a> numberValue()</pre> 1228<div class="block">Returns numeric value for this node, <b>if and only if</b> 1229 this node is numeric (<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><code>isNumber()</code></a> returns true); otherwise 1230 returns null</div> 1231<dl><dt><span class="strong">Returns:</span></dt><dd>Number value this node contains, if any (null for non-number 1232 nodes).</dd></dl> 1233</li> 1234</ul> 1235<a name="shortValue()"> 1236<!-- --> 1237</a> 1238<ul class="blockList"> 1239<li class="blockList"> 1240<h4>shortValue</h4> 1241<pre>public short shortValue()</pre> 1242<div class="block">Returns 16-bit short value for this node, <b>if and only if</b> 1243 this node is numeric (<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><code>isNumber()</code></a> returns true). For other 1244 types returns 0. 1245 For floating-point numbers, value is truncated using default 1246 Java coercion, similar to how cast from double to short operates.</div> 1247<dl><dt><span class="strong">Returns:</span></dt><dd>Short value this node contains, if any; 0 for non-number 1248 nodes.</dd></dl> 1249</li> 1250</ul> 1251<a name="intValue()"> 1252<!-- --> 1253</a> 1254<ul class="blockList"> 1255<li class="blockList"> 1256<h4>intValue</h4> 1257<pre>public int intValue()</pre> 1258<div class="block">Returns integer value for this node, <b>if and only if</b> 1259 this node is numeric (<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><code>isNumber()</code></a> returns true). For other 1260 types returns 0. 1261 For floating-point numbers, value is truncated using default 1262 Java coercion, similar to how cast from double to int operates.</div> 1263<dl><dt><span class="strong">Returns:</span></dt><dd>Integer value this node contains, if any; 0 for non-number 1264 nodes.</dd></dl> 1265</li> 1266</ul> 1267<a name="longValue()"> 1268<!-- --> 1269</a> 1270<ul class="blockList"> 1271<li class="blockList"> 1272<h4>longValue</h4> 1273<pre>public long longValue()</pre> 1274<div class="block">Returns 64-bit long value for this node, <b>if and only if</b> 1275 this node is numeric (<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><code>isNumber()</code></a> returns true). For other 1276 types returns 0. 1277 For floating-point numbers, value is truncated using default 1278 Java coercion, similar to how cast from double to long operates.</div> 1279<dl><dt><span class="strong">Returns:</span></dt><dd>Long value this node contains, if any; 0 for non-number 1280 nodes.</dd></dl> 1281</li> 1282</ul> 1283<a name="floatValue()"> 1284<!-- --> 1285</a> 1286<ul class="blockList"> 1287<li class="blockList"> 1288<h4>floatValue</h4> 1289<pre>public float floatValue()</pre> 1290<div class="block">Returns 32-bit floating value for this node, <b>if and only if</b> 1291 this node is numeric (<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><code>isNumber()</code></a> returns true). For other 1292 types returns 0.0. 1293 For integer values, conversion is done using coercion; this means 1294 that an overflow is possible for `long` values</div> 1295<dl><dt><span class="strong">Returns:</span></dt><dd>32-bit float value this node contains, if any; 0.0 for non-number nodes.</dd><dt><span class="strong">Since:</span></dt> 1296 <dd>2.2</dd></dl> 1297</li> 1298</ul> 1299<a name="doubleValue()"> 1300<!-- --> 1301</a> 1302<ul class="blockList"> 1303<li class="blockList"> 1304<h4>doubleValue</h4> 1305<pre>public double doubleValue()</pre> 1306<div class="block">Returns 64-bit floating point (double) value for this node, <b>if and only if</b> 1307 this node is numeric (<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><code>isNumber()</code></a> returns true). For other 1308 types returns 0.0. 1309 For integer values, conversion is done using coercion; this may result 1310 in overflows with <a href="http://docs.oracle.com/javase/6/docs/api/java/math/BigInteger.html?is-external=true" title="class or interface in java.math"><code>BigInteger</code></a> values.</div> 1311<dl><dt><span class="strong">Returns:</span></dt><dd>64-bit double value this node contains, if any; 0.0 for non-number nodes.</dd><dt><span class="strong">Since:</span></dt> 1312 <dd>2.2</dd></dl> 1313</li> 1314</ul> 1315<a name="decimalValue()"> 1316<!-- --> 1317</a> 1318<ul class="blockList"> 1319<li class="blockList"> 1320<h4>decimalValue</h4> 1321<pre>public <a href="http://docs.oracle.com/javase/6/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math">BigDecimal</a> decimalValue()</pre> 1322</li> 1323</ul> 1324<a name="bigIntegerValue()"> 1325<!-- --> 1326</a> 1327<ul class="blockList"> 1328<li class="blockList"> 1329<h4>bigIntegerValue</h4> 1330<pre>public <a href="http://docs.oracle.com/javase/6/docs/api/java/math/BigInteger.html?is-external=true" title="class or interface in java.math">BigInteger</a> bigIntegerValue()</pre> 1331</li> 1332</ul> 1333<a name="asText()"> 1334<!-- --> 1335</a> 1336<ul class="blockList"> 1337<li class="blockList"> 1338<h4>asText</h4> 1339<pre>public abstract <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> asText()</pre> 1340<div class="block">Method that will return a valid String representation of 1341 the container value, if the node is a value node 1342 (method <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isValueNode()"><code>isValueNode()</code></a> returns true), 1343 otherwise empty String.</div> 1344</li> 1345</ul> 1346<a name="asText(java.lang.String)"> 1347<!-- --> 1348</a> 1349<ul class="blockList"> 1350<li class="blockList"> 1351<h4>asText</h4> 1352<pre>public <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> asText(<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> defaultValue)</pre> 1353<div class="block">Method similar to <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#asText()"><code>asText()</code></a>, except that it will return 1354 <code>defaultValue</code> in cases where null value would be returned; 1355 either for missing nodes (trying to access missing property, or element 1356 at invalid item for array) or explicit nulls.</div> 1357<dl><dt><span class="strong">Since:</span></dt> 1358 <dd>2.4</dd></dl> 1359</li> 1360</ul> 1361<a name="asInt()"> 1362<!-- --> 1363</a> 1364<ul class="blockList"> 1365<li class="blockList"> 1366<h4>asInt</h4> 1367<pre>public int asInt()</pre> 1368<div class="block">Method that will try to convert value of this node to a Java <b>int</b>. 1369 Numbers are coerced using default Java rules; booleans convert to 0 (false) 1370 and 1 (true), and Strings are parsed using default Java language integer 1371 parsing rules. 1372<p> 1373 If representation can not be converted to an int (including structured types 1374 like Objects and Arrays), 1375 default value of <b>0</b> will be returned; no exceptions are thrown.</div> 1376</li> 1377</ul> 1378<a name="asInt(int)"> 1379<!-- --> 1380</a> 1381<ul class="blockList"> 1382<li class="blockList"> 1383<h4>asInt</h4> 1384<pre>public int asInt(int defaultValue)</pre> 1385<div class="block">Method that will try to convert value of this node to a Java <b>int</b>. 1386 Numbers are coerced using default Java rules; booleans convert to 0 (false) 1387 and 1 (true), and Strings are parsed using default Java language integer 1388 parsing rules. 1389<p> 1390 If representation can not be converted to an int (including structured types 1391 like Objects and Arrays), 1392 specified <b>defaultValue</b> will be returned; no exceptions are thrown.</div> 1393</li> 1394</ul> 1395<a name="asLong()"> 1396<!-- --> 1397</a> 1398<ul class="blockList"> 1399<li class="blockList"> 1400<h4>asLong</h4> 1401<pre>public long asLong()</pre> 1402<div class="block">Method that will try to convert value of this node to a Java <b>long</b>. 1403 Numbers are coerced using default Java rules; booleans convert to 0 (false) 1404 and 1 (true), and Strings are parsed using default Java language integer 1405 parsing rules. 1406<p> 1407 If representation can not be converted to an long (including structured types 1408 like Objects and Arrays), 1409 default value of <b>0</b> will be returned; no exceptions are thrown.</div> 1410</li> 1411</ul> 1412<a name="asLong(long)"> 1413<!-- --> 1414</a> 1415<ul class="blockList"> 1416<li class="blockList"> 1417<h4>asLong</h4> 1418<pre>public long asLong(long defaultValue)</pre> 1419<div class="block">Method that will try to convert value of this node to a Java <b>long</b>. 1420 Numbers are coerced using default Java rules; booleans convert to 0 (false) 1421 and 1 (true), and Strings are parsed using default Java language integer 1422 parsing rules. 1423<p> 1424 If representation can not be converted to an long (including structured types 1425 like Objects and Arrays), 1426 specified <b>defaultValue</b> will be returned; no exceptions are thrown.</div> 1427</li> 1428</ul> 1429<a name="asDouble()"> 1430<!-- --> 1431</a> 1432<ul class="blockList"> 1433<li class="blockList"> 1434<h4>asDouble</h4> 1435<pre>public double asDouble()</pre> 1436<div class="block">Method that will try to convert value of this node to a Java <b>double</b>. 1437 Numbers are coerced using default Java rules; booleans convert to 0.0 (false) 1438 and 1.0 (true), and Strings are parsed using default Java language integer 1439 parsing rules. 1440<p> 1441 If representation can not be converted to an int (including structured types 1442 like Objects and Arrays), 1443 default value of <b>0.0</b> will be returned; no exceptions are thrown.</div> 1444</li> 1445</ul> 1446<a name="asDouble(double)"> 1447<!-- --> 1448</a> 1449<ul class="blockList"> 1450<li class="blockList"> 1451<h4>asDouble</h4> 1452<pre>public double asDouble(double defaultValue)</pre> 1453<div class="block">Method that will try to convert value of this node to a Java <b>double</b>. 1454 Numbers are coerced using default Java rules; booleans convert to 0.0 (false) 1455 and 1.0 (true), and Strings are parsed using default Java language integer 1456 parsing rules. 1457<p> 1458 If representation can not be converted to an int (including structured types 1459 like Objects and Arrays), 1460 specified <b>defaultValue</b> will be returned; no exceptions are thrown.</div> 1461</li> 1462</ul> 1463<a name="asBoolean()"> 1464<!-- --> 1465</a> 1466<ul class="blockList"> 1467<li class="blockList"> 1468<h4>asBoolean</h4> 1469<pre>public boolean asBoolean()</pre> 1470<div class="block">Method that will try to convert value of this node to a Java <b>boolean</b>. 1471 JSON booleans map naturally; integer numbers other than 0 map to true, and 1472 0 maps to false 1473 and Strings 'true' and 'false' map to corresponding values. 1474<p> 1475 If representation can not be converted to a boolean value (including structured types 1476 like Objects and Arrays), 1477 default value of <b>false</b> will be returned; no exceptions are thrown.</div> 1478</li> 1479</ul> 1480<a name="asBoolean(boolean)"> 1481<!-- --> 1482</a> 1483<ul class="blockList"> 1484<li class="blockList"> 1485<h4>asBoolean</h4> 1486<pre>public boolean asBoolean(boolean defaultValue)</pre> 1487<div class="block">Method that will try to convert value of this node to a Java <b>boolean</b>. 1488 JSON booleans map naturally; integer numbers other than 0 map to true, and 1489 0 maps to false 1490 and Strings 'true' and 'false' map to corresponding values. 1491<p> 1492 If representation can not be converted to a boolean value (including structured types 1493 like Objects and Arrays), 1494 specified <b>defaultValue</b> will be returned; no exceptions are thrown.</div> 1495</li> 1496</ul> 1497<a name="has(java.lang.String)"> 1498<!-- --> 1499</a> 1500<ul class="blockList"> 1501<li class="blockList"> 1502<h4>has</h4> 1503<pre>public boolean has(<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> fieldName)</pre> 1504<div class="block">Method that allows checking whether this node is JSON Object node 1505 and contains value for specified property. If this is the case 1506 (including properties with explicit null values), returns true; 1507 otherwise returns false. 1508<p> 1509 This method is equivalent to: 1510<pre> 1511 node.get(fieldName) != null 1512</pre> 1513 (since return value of get() is node, not value node contains) 1514<p> 1515 NOTE: when explicit <code>null</code> values are added, this 1516 method will return <code>true</code> for such properties.</div> 1517<dl><dt><span class="strong">Parameters:</span></dt><dd><code>fieldName</code> - Name of element to check</dd> 1518<dt><span class="strong">Returns:</span></dt><dd>True if this node is a JSON Object node, and has a property 1519 entry with specified name (with any value, including null value)</dd></dl> 1520</li> 1521</ul> 1522<a name="has(int)"> 1523<!-- --> 1524</a> 1525<ul class="blockList"> 1526<li class="blockList"> 1527<h4>has</h4> 1528<pre>public boolean has(int index)</pre> 1529<div class="block">Method that allows checking whether this node is JSON Array node 1530 and contains a value for specified index 1531 If this is the case 1532 (including case of specified indexing having null as value), returns true; 1533 otherwise returns false. 1534<p> 1535 Note: array element indexes are 0-based. 1536<p> 1537 This method is equivalent to: 1538<pre> 1539 node.get(index) != null 1540</pre> 1541<p> 1542 NOTE: this method will return <code>true</code> for explicitly added 1543 null values.</div> 1544<dl><dt><span class="strong">Parameters:</span></dt><dd><code>index</code> - Index to check</dd> 1545<dt><span class="strong">Returns:</span></dt><dd>True if this node is a JSON Object node, and has a property 1546 entry with specified name (with any value, including null value)</dd></dl> 1547</li> 1548</ul> 1549<a name="hasNonNull(java.lang.String)"> 1550<!-- --> 1551</a> 1552<ul class="blockList"> 1553<li class="blockList"> 1554<h4>hasNonNull</h4> 1555<pre>public boolean hasNonNull(<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> fieldName)</pre> 1556<div class="block">Method that is similar to <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#has(java.lang.String)"><code>has(String)</code></a>, but that will 1557 return <code>false</code> for explicitly added nulls. 1558<p> 1559 This method is functionally equivalent to: 1560<pre> 1561 node.get(fieldName) != null && !node.get(fieldName).isNull() 1562</pre></div> 1563<dl><dt><span class="strong">Since:</span></dt> 1564 <dd>2.1</dd></dl> 1565</li> 1566</ul> 1567<a name="hasNonNull(int)"> 1568<!-- --> 1569</a> 1570<ul class="blockList"> 1571<li class="blockList"> 1572<h4>hasNonNull</h4> 1573<pre>public boolean hasNonNull(int index)</pre> 1574<div class="block">Method that is similar to <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#has(int)"><code>has(int)</code></a>, but that will 1575 return <code>false</code> for explicitly added nulls. 1576<p> 1577 This method is equivalent to: 1578<pre> 1579 node.get(index) != null && !node.get(index).isNull() 1580</pre></div> 1581<dl><dt><span class="strong">Since:</span></dt> 1582 <dd>2.1</dd></dl> 1583</li> 1584</ul> 1585<a name="iterator()"> 1586<!-- --> 1587</a> 1588<ul class="blockList"> 1589<li class="blockList"> 1590<h4>iterator</h4> 1591<pre>public final <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</a><<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>> iterator()</pre> 1592<div class="block">Same as calling <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#elements()"><code>elements()</code></a>; implemented so that 1593 convenience "for-each" loop can be used for looping over elements 1594 of JSON Array constructs.</div> 1595<dl> 1596<dt><strong>Specified by:</strong></dt> 1597<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Iterable.html?is-external=true#iterator()" title="class or interface in java.lang">iterator</a></code> in interface <code><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><<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>></code></dd> 1598</dl> 1599</li> 1600</ul> 1601<a name="elements()"> 1602<!-- --> 1603</a> 1604<ul class="blockList"> 1605<li class="blockList"> 1606<h4>elements</h4> 1607<pre>public <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</a><<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>> elements()</pre> 1608<div class="block">Method for accessing all value nodes of this Node, iff 1609 this node is a JSON Array or Object node. In case of Object node, 1610 field names (keys) are not included, only values. 1611 For other types of nodes, returns empty iterator.</div> 1612</li> 1613</ul> 1614<a name="fields()"> 1615<!-- --> 1616</a> 1617<ul class="blockList"> 1618<li class="blockList"> 1619<h4>fields</h4> 1620<pre>public <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</a><<a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.Entry.html?is-external=true" title="class or interface in java.util">Map.Entry</a><<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>,<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>>> fields()</pre> 1621<dl><dt><span class="strong">Returns:</span></dt><dd>Iterator that can be used to traverse all key/value pairs for 1622 object nodes; empty iterator (no contents) for other types</dd></dl> 1623</li> 1624</ul> 1625<a name="findValue(java.lang.String)"> 1626<!-- --> 1627</a> 1628<ul class="blockList"> 1629<li class="blockList"> 1630<h4>findValue</h4> 1631<pre>public abstract <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a> findValue(<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> fieldName)</pre> 1632<div class="block">Method for finding a JSON Object field with specified name in this 1633 node or its child nodes, and returning value it has. 1634 If no matching field is found in this node or its descendants, returns null.</div> 1635<dl><dt><span class="strong">Parameters:</span></dt><dd><code>fieldName</code> - Name of field to look for</dd> 1636<dt><span class="strong">Returns:</span></dt><dd>Value of first matching node found, if any; null if none</dd></dl> 1637</li> 1638</ul> 1639<a name="findValues(java.lang.String)"> 1640<!-- --> 1641</a> 1642<ul class="blockList"> 1643<li class="blockList"> 1644<h4>findValues</h4> 1645<pre>public final <a href="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>> findValues(<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> fieldName)</pre> 1646<div class="block">Method for finding JSON Object fields with specified name, and returning 1647 found ones as a List. Note that sub-tree search ends if a field is found, 1648 so possible children of result nodes are <b>not</b> included. 1649 If no matching fields are found in this node or its descendants, returns 1650 an empty List.</div> 1651<dl><dt><span class="strong">Parameters:</span></dt><dd><code>fieldName</code> - Name of field to look for</dd></dl> 1652</li> 1653</ul> 1654<a name="findValuesAsText(java.lang.String)"> 1655<!-- --> 1656</a> 1657<ul class="blockList"> 1658<li class="blockList"> 1659<h4>findValuesAsText</h4> 1660<pre>public final <a href="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<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>> findValuesAsText(<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> fieldName)</pre> 1661<div class="block">Similar to <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#findValues(java.lang.String)"><code>findValues(java.lang.String)</code></a>, but will additionally convert 1662 values into Strings, calling <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#asText()"><code>asText()</code></a>.</div> 1663</li> 1664</ul> 1665<a name="findPath(java.lang.String)"> 1666<!-- --> 1667</a> 1668<ul class="blockList"> 1669<li class="blockList"> 1670<h4>findPath</h4> 1671<pre>public abstract <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a> findPath(<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> fieldName)</pre> 1672<div class="block">Method similar to <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#findValue(java.lang.String)"><code>findValue(java.lang.String)</code></a>, but that will return a 1673 "missing node" instead of null if no field is found. Missing node 1674 is a specific kind of node for which <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode()"><code>isMissingNode()</code></a> 1675 returns true; and all value access methods return empty or 1676 missing value.</div> 1677<dl><dt><span class="strong">Parameters:</span></dt><dd><code>fieldName</code> - Name of field to look for</dd> 1678<dt><span class="strong">Returns:</span></dt><dd>Value of first matching node found; or if not found, a 1679 "missing node" (non-null instance that has no value)</dd></dl> 1680</li> 1681</ul> 1682<a name="findParent(java.lang.String)"> 1683<!-- --> 1684</a> 1685<ul class="blockList"> 1686<li class="blockList"> 1687<h4>findParent</h4> 1688<pre>public abstract <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a> findParent(<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> fieldName)</pre> 1689<div class="block">Method for finding a JSON Object that contains specified field, 1690 within this node or its descendants. 1691 If no matching field is found in this node or its descendants, returns null.</div> 1692<dl><dt><span class="strong">Parameters:</span></dt><dd><code>fieldName</code> - Name of field to look for</dd> 1693<dt><span class="strong">Returns:</span></dt><dd>Value of first matching node found, if any; null if none</dd></dl> 1694</li> 1695</ul> 1696<a name="findParents(java.lang.String)"> 1697<!-- --> 1698</a> 1699<ul class="blockList"> 1700<li class="blockList"> 1701<h4>findParents</h4> 1702<pre>public final <a href="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>> findParents(<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> fieldName)</pre> 1703<div class="block">Method for finding a JSON Object that contains specified field, 1704 within this node or its descendants. 1705 If no matching field is found in this node or its descendants, returns null.</div> 1706<dl><dt><span class="strong">Parameters:</span></dt><dd><code>fieldName</code> - Name of field to look for</dd> 1707<dt><span class="strong">Returns:</span></dt><dd>Value of first matching node found, if any; null if none</dd></dl> 1708</li> 1709</ul> 1710<a name="findValues(java.lang.String, java.util.List)"> 1711<!-- --> 1712</a> 1713<ul class="blockList"> 1714<li class="blockList"> 1715<h4>findValues</h4> 1716<pre>public abstract <a href="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>> findValues(<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> fieldName, 1717 <a href="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>> foundSoFar)</pre> 1718</li> 1719</ul> 1720<a name="findValuesAsText(java.lang.String, java.util.List)"> 1721<!-- --> 1722</a> 1723<ul class="blockList"> 1724<li class="blockList"> 1725<h4>findValuesAsText</h4> 1726<pre>public abstract <a href="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<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>> findValuesAsText(<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> fieldName, 1727 <a href="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<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>> foundSoFar)</pre> 1728</li> 1729</ul> 1730<a name="findParents(java.lang.String, java.util.List)"> 1731<!-- --> 1732</a> 1733<ul class="blockList"> 1734<li class="blockList"> 1735<h4>findParents</h4> 1736<pre>public abstract <a href="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>> findParents(<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> fieldName, 1737 <a href="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>> foundSoFar)</pre> 1738</li> 1739</ul> 1740<a name="with(java.lang.String)"> 1741<!-- --> 1742</a> 1743<ul class="blockList"> 1744<li class="blockList"> 1745<h4>with</h4> 1746<pre>public <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a> with(<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> propertyName)</pre> 1747<div class="block">Method that can be called on Object nodes, to access a property 1748 that has Object value; or if no such property exists, to create, 1749 add and return such Object node. 1750 If the node method is called on is not Object node, 1751 or if property exists and has value that is not Object node, 1752 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/UnsupportedOperationException.html?is-external=true" title="class or interface in java.lang"><code>UnsupportedOperationException</code></a> is thrown</div> 1753</li> 1754</ul> 1755<a name="withArray(java.lang.String)"> 1756<!-- --> 1757</a> 1758<ul class="blockList"> 1759<li class="blockList"> 1760<h4>withArray</h4> 1761<pre>public <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a> withArray(<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> propertyName)</pre> 1762<div class="block">Method that can be called on Object nodes, to access a property 1763 that has <code>Array</code> value; or if no such property exists, to create, 1764 add and return such Array node. 1765 If the node method is called on is not Object node, 1766 or if property exists and has value that is not Array node, 1767 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/UnsupportedOperationException.html?is-external=true" title="class or interface in java.lang"><code>UnsupportedOperationException</code></a> is thrown</div> 1768</li> 1769</ul> 1770<a name="toString()"> 1771<!-- --> 1772</a> 1773<ul class="blockList"> 1774<li class="blockList"> 1775<h4>toString</h4> 1776<pre>public abstract <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> toString()</pre> 1777<div class="block"><p> 1778 Note: marked as abstract to ensure all implementation 1779 classes define it properly.</div> 1780<dl> 1781<dt><strong>Overrides:</strong></dt> 1782<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a></code> in class <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> 1783</dl> 1784</li> 1785</ul> 1786<a name="equals(java.lang.Object)"> 1787<!-- --> 1788</a> 1789<ul class="blockListLast"> 1790<li class="blockList"> 1791<h4>equals</h4> 1792<pre>public abstract boolean 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> o)</pre> 1793<div class="block">Equality for node objects is defined as full (deep) value 1794 equality. This means that it is possible to compare complete 1795 JSON trees for equality by comparing equality of root nodes. 1796<p> 1797 Note: marked as abstract to ensure all implementation 1798 classes define it properly and not rely on definition 1799 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> 1800<dl> 1801<dt><strong>Overrides:</strong></dt> 1802<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a></code> in class <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> 1803</dl> 1804</li> 1805</ul> 1806</li> 1807</ul> 1808</li> 1809</ul> 1810</div> 1811</div> 1812<!-- ========= END OF CLASS DATA ========= --> 1813<!-- ======= START OF BOTTOM NAVBAR ====== --> 1814<div class="bottomNav"><a name="navbar_bottom"> 1815<!-- --> 1816</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> 1817<!-- --> 1818</a> 1819<ul class="navList" title="Navigation"> 1820<li><a href="../../../../overview-summary.html">Overview</a></li> 1821<li><a href="package-summary.html">Package</a></li> 1822<li class="navBarCell1Rev">Class</li> 1823<li><a href="class-use/JsonNode.html">Use</a></li> 1824<li><a href="package-tree.html">Tree</a></li> 1825<li><a href="../../../../deprecated-list.html">Deprecated</a></li> 1826<li><a href="../../../../index-all.html">Index</a></li> 1827<li><a href="../../../../help-doc.html">Help</a></li> 1828</ul> 1829</div> 1830<div class="subNav"> 1831<ul class="navList"> 1832<li><a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.Reference.html" title="class in com.fasterxml.jackson.databind"><span class="strong">Prev Class</span></a></li> 1833<li><a href="../../../../com/fasterxml/jackson/databind/JsonSerializable.html" title="interface in com.fasterxml.jackson.databind"><span class="strong">Next Class</span></a></li> 1834</ul> 1835<ul class="navList"> 1836<li><a href="../../../../index.html?com/fasterxml/jackson/databind/JsonNode.html" target="_top">Frames</a></li> 1837<li><a href="JsonNode.html" target="_top">No Frames</a></li> 1838</ul> 1839<ul class="navList" id="allclasses_navbar_bottom"> 1840<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> 1841</ul> 1842<div> 1843<script type="text/javascript"><!-- 1844 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 1845 if(window==top) { 1846 allClassesLink.style.display = "block"; 1847 } 1848 else { 1849 allClassesLink.style.display = "none"; 1850 } 1851 //--> 1852</script> 1853</div> 1854<div> 1855<ul class="subNavList"> 1856<li>Summary: </li> 1857<li>Nested | </li> 1858<li>Field | </li> 1859<li><a href="#constructor_summary">Constr</a> | </li> 1860<li><a href="#method_summary">Method</a></li> 1861</ul> 1862<ul class="subNavList"> 1863<li>Detail: </li> 1864<li>Field | </li> 1865<li><a href="#constructor_detail">Constr</a> | </li> 1866<li><a href="#method_detail">Method</a></li> 1867</ul> 1868</div> 1869<a name="skip-navbar_bottom"> 1870<!-- --> 1871</a></div> 1872<!-- ======== END OF BOTTOM NAVBAR ======= --> 1873<p class="legalCopy"><small>Copyright © 2014 <a href="http://fasterxml.com/">FasterXML</a>. All Rights Reserved.</small></p> 1874</body> 1875</html> 1876