<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (1.8.0_162) on Tue Nov 05 19:39:06 PST 2019 --> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>JsonNode (jackson-databind 2.10.0 API)</title> <meta name="date" content="2019-11-05"> <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../../../script.js"></script> </head> <body> <script type="text/javascript"><!-- try { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="JsonNode (jackson-databind 2.10.0 API)"; } } catch(err) { } //--> var methods = {"i0":6,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":6,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":6,"i22":10,"i23":10,"i24":10,"i25":6,"i26":10,"i27":10,"i28":6,"i29":10,"i30":6,"i31":6,"i32":6,"i33":10,"i34":6,"i35":10,"i36":6,"i37":10,"i38":6,"i39":10,"i40":6,"i41":10,"i42":10,"i43":10,"i44":10,"i45":10,"i46":10,"i47":10,"i48":10,"i49":10,"i50":10,"i51":10,"i52":10,"i53":10,"i54":10,"i55":10,"i56":10,"i57":10,"i58":10,"i59":10,"i60":10,"i61":10,"i62":10,"i63":10,"i64":10,"i65":10,"i66":10,"i67":10,"i68":10,"i69":10,"i70":6,"i71":6,"i72":10,"i73":10,"i74":10,"i75":10,"i76":10,"i77":10,"i78":10,"i79":10,"i80":10,"i81":10,"i82":6,"i83":10,"i84":10}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; var tableTab = "tableTab"; var activeTableTab = "activeTableTab"; </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a name="navbar.top"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.top.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="class-use/JsonNode.html">Use</a></li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../index-all.html">Index</a></li> <li><a href="../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.Reference.html" title="class in com.fasterxml.jackson.databind"><span class="typeNameLink">Prev Class</span></a></li> <li><a href="../../../../com/fasterxml/jackson/databind/JsonSerializable.html" title="interface in com.fasterxml.jackson.databind"><span class="typeNameLink">Next Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../../index.html?com/fasterxml/jackson/databind/JsonNode.html" target="_top">Frames</a></li> <li><a href="JsonNode.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_top"> <li><a href="../../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <div> <ul class="subNavList"> <li>Summary: </li> <li>Nested | </li> <li>Field | </li> <li><a href="#constructor.summary">Constr</a> | </li> <li><a href="#method.summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail: </li> <li>Field | </li> <li><a href="#constructor.detail">Constr</a> | </li> <li><a href="#method.detail">Method</a></li> </ul> </div> <a name="skip.navbar.top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> <!-- ======== START OF CLASS DATA ======== --> <div class="header"> <div class="subTitle">com.fasterxml.jackson.databind</div> <h2 title="Class JsonNode" class="title">Class JsonNode</h2> </div> <div class="contentContainer"> <ul class="inheritance"> <li><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> <li> <ul class="inheritance"> <li><a href="../../../../com/fasterxml/jackson/databind/JsonSerializable.Base.html" title="class in com.fasterxml.jackson.databind">com.fasterxml.jackson.databind.JsonSerializable.Base</a></li> <li> <ul class="inheritance"> <li>com.fasterxml.jackson.databind.JsonNode</li> </ul> </li> </ul> </li> </ul> <div class="description"> <ul class="blockList"> <li class="blockList"> <dl> <dt>All Implemented Interfaces:</dt> <dd><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a>, <a href="../../../../com/fasterxml/jackson/databind/JsonSerializable.html" title="interface in com.fasterxml.jackson.databind">JsonSerializable</a>, <a href="https://docs.oracle.com/javase/8/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> </dl> <dl> <dt>Direct Known Subclasses:</dt> <dd><a href="../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html" title="class in com.fasterxml.jackson.databind.node">BaseJsonNode</a></dd> </dl> <hr> <br> <pre>public abstract class <span class="typeNameLabel">JsonNode</span> extends <a href="../../../../com/fasterxml/jackson/databind/JsonSerializable.Base.html" title="class in com.fasterxml.jackson.databind">JsonSerializable.Base</a> implements <a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a>, <a href="https://docs.oracle.com/javase/8/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> <div class="block">Base class for all JSON nodes, which form the basis of JSON Tree Model that Jackson implements. One way to think of these nodes is to consider them similar to DOM nodes in XML DOM trees. <p> As a general design rule, most accessors ("getters") are included in this base class, to allow for traversing structure without type casts. Most mutators, however, need to be accessed through specific sub-classes (such as <code>ObjectNode</code> and <code>ArrayNode</code>). This seems sensible because proper type information is generally available when building or modifying trees, but less often when reading a tree (newly built from parsed JSON content). <p> Actual concrete sub-classes can be found from package <a href="../../../../com/fasterxml/jackson/databind/node/package-summary.html"><code>com.fasterxml.jackson.databind.node</code></a>. <p> Note that it is possible to "read" from nodes, using method <a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true#traverse-com.fasterxml.jackson.core.ObjectCodec-" title="class or interface in com.fasterxml.jackson.core"><code>TreeNode.traverse(ObjectCodec)</code></a>, which will result in a <a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonParser.html?is-external=true" title="class or interface in com.fasterxml.jackson.core"><code>JsonParser</code></a> being constructed. This can be used for (relatively) efficient conversations between different representations; and it is what core databind uses for methods like <a href="../../../../com/fasterxml/jackson/databind/ObjectMapper.html#treeToValue-com.fasterxml.jackson.core.TreeNode-java.lang.Class-"><code>ObjectMapper.treeToValue(TreeNode, Class)</code></a> and <a href="../../../../com/fasterxml/jackson/databind/ObjectMapper.html#treeAsTokens-com.fasterxml.jackson.core.TreeNode-"><code>ObjectMapper.treeAsTokens(TreeNode)</code></a></div> </li> </ul> </div> <div class="summary"> <ul class="blockList"> <li class="blockList"> <!-- ======== NESTED CLASS SUMMARY ======== --> <ul class="blockList"> <li class="blockList"><a name="nested.class.summary"> <!-- --> </a> <h3>Nested Class Summary</h3> <ul class="blockList"> <li class="blockList"><a name="nested.classes.inherited.from.class.com.fasterxml.jackson.databind.JsonSerializable"> <!-- --> </a> <h3>Nested classes/interfaces inherited from interface com.fasterxml.jackson.databind.<a href="../../../../com/fasterxml/jackson/databind/JsonSerializable.html" title="interface in com.fasterxml.jackson.databind">JsonSerializable</a></h3> <code><a href="../../../../com/fasterxml/jackson/databind/JsonSerializable.Base.html" title="class in com.fasterxml.jackson.databind">JsonSerializable.Base</a></code></li> </ul> </li> </ul> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <ul class="blockList"> <li class="blockList"><a name="constructor.summary"> <!-- --> </a> <h3>Constructor Summary</h3> <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> <caption><span>Constructors</span><span class="tabEnd"> </span></caption> <tr> <th class="colFirst" scope="col">Modifier</th> <th class="colLast" scope="col">Constructor and Description</th> </tr> <tr class="altColor"> <td class="colFirst"><code>protected </code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#JsonNode--">JsonNode</a></span>()</code> </td> </tr> </table> </li> </ul> <!-- ========== METHOD SUMMARY =========== --> <ul class="blockList"> <li class="blockList"><a name="method.summary"> <!-- --> </a> <h3>Method Summary</h3> <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tr id="i0" class="altColor"> <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> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#Z:Z_at-com.fasterxml.jackson.core.JsonPointer-">_at</a></span>(<a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonPointer.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonPointer</a> ptr)</code> </td> </tr> <tr id="i1" class="rowColor"> <td class="colFirst"><code>protected <T> T</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#Z:Z_reportRequiredViolation-java.lang.String-java.lang.Object...-">_reportRequiredViolation</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> msgTemplate, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>... args)</code> <div class="block">Helper method that throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang"><code>IllegalArgumentException</code></a> as a result of violating "required-constraint" for this node (for <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#required-java.lang.String-"><code>required(java.lang.String)</code></a> or related methods).</div> </td> </tr> <tr id="i2" class="altColor"> <td class="colFirst"><code>protected <T extends <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>><br>T</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#Z:Z_this--">_this</a></span>()</code> </td> </tr> <tr id="i3" class="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#asBoolean--">asBoolean</a></span>()</code> <div class="block">Method that will try to convert value of this node to a Java <b>boolean</b>.</div> </td> </tr> <tr id="i4" class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#asBoolean-boolean-">asBoolean</a></span>(boolean defaultValue)</code> <div class="block">Method that will try to convert value of this node to a Java <b>boolean</b>.</div> </td> </tr> <tr id="i5" class="rowColor"> <td class="colFirst"><code>double</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#asDouble--">asDouble</a></span>()</code> <div class="block">Method that will try to convert value of this node to a Java <b>double</b>.</div> </td> </tr> <tr id="i6" class="altColor"> <td class="colFirst"><code>double</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#asDouble-double-">asDouble</a></span>(double defaultValue)</code> <div class="block">Method that will try to convert value of this node to a Java <b>double</b>.</div> </td> </tr> <tr id="i7" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#asInt--">asInt</a></span>()</code> <div class="block">Method that will try to convert value of this node to a Java <b>int</b>.</div> </td> </tr> <tr id="i8" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#asInt-int-">asInt</a></span>(int defaultValue)</code> <div class="block">Method that will try to convert value of this node to a Java <b>int</b>.</div> </td> </tr> <tr id="i9" class="rowColor"> <td class="colFirst"><code>long</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#asLong--">asLong</a></span>()</code> <div class="block">Method that will try to convert value of this node to a Java <b>long</b>.</div> </td> </tr> <tr id="i10" class="altColor"> <td class="colFirst"><code>long</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#asLong-long-">asLong</a></span>(long defaultValue)</code> <div class="block">Method that will try to convert value of this node to a Java <b>long</b>.</div> </td> </tr> <tr id="i11" class="rowColor"> <td class="colFirst"><code>abstract <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#asText--">asText</a></span>()</code> <div class="block">Method that will return a valid String representation of the container value, if the node is a value node (method <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isValueNode--"><code>isValueNode()</code></a> returns true), otherwise empty String.</div> </td> </tr> <tr id="i12" class="altColor"> <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#asText-java.lang.String-">asText</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> defaultValue)</code> <div class="block">Method similar to <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#asText--"><code>asText()</code></a>, except that it will return <code>defaultValue</code> in cases where null value would be returned; either for missing nodes (trying to access missing property, or element at invalid item for array) or explicit nulls.</div> </td> </tr> <tr id="i13" class="rowColor"> <td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#at-com.fasterxml.jackson.core.JsonPointer-">at</a></span>(<a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonPointer.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonPointer</a> ptr)</code> <div class="block">Method for locating node specified by given JSON pointer instances.</div> </td> </tr> <tr id="i14" class="altColor"> <td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#at-java.lang.String-">at</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> jsonPtrExpr)</code> <div class="block">Convenience method that is functionally equivalent to:</div> </td> </tr> <tr id="i15" class="rowColor"> <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigInteger.html?is-external=true" title="class or interface in java.math">BigInteger</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#bigIntegerValue--">bigIntegerValue</a></span>()</code> <div class="block">Returns integer value for this node (as <a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math"><code>BigDecimal</code></a>), <b>if and only if</b> this node is numeric (<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>isNumber()</code></a> returns true).</div> </td> </tr> <tr id="i16" class="altColor"> <td class="colFirst"><code>byte[]</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#binaryValue--">binaryValue</a></span>()</code> <div class="block">Method to use for accessing binary content of binary nodes (nodes for which <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isBinary--"><code>isBinary()</code></a> returns true); or for Text Nodes (ones for which <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#textValue--"><code>textValue()</code></a> returns non-null value), to read decoded base64 data.</div> </td> </tr> <tr id="i17" class="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#booleanValue--">booleanValue</a></span>()</code> <div class="block">Method to use for accessing JSON boolean values (value literals 'true' and 'false').</div> </td> </tr> <tr id="i18" class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#canConvertToInt--">canConvertToInt</a></span>()</code> <div class="block">Method that can be used to check whether this node is a numeric node (<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>isNumber()</code></a> would return true) AND its value fits within Java's 32-bit signed integer type, <code>int</code>.</div> </td> </tr> <tr id="i19" class="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#canConvertToLong--">canConvertToLong</a></span>()</code> <div class="block">Method that can be used to check whether this node is a numeric node (<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>isNumber()</code></a> would return true) AND its value fits within Java's 64-bit signed integer type, <code>long</code>.</div> </td> </tr> <tr id="i20" class="altColor"> <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math">BigDecimal</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#decimalValue--">decimalValue</a></span>()</code> <div class="block">Returns floating point value for this node (as <a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math"><code>BigDecimal</code></a>), <b>if and only if</b> this node is numeric (<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>isNumber()</code></a> returns true).</div> </td> </tr> <tr id="i21" class="rowColor"> <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> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#deepCopy--">deepCopy</a></span>()</code> <div class="block">Method that can be called to get a node that is guaranteed not to allow changing of this node through mutators on this node or any of its children.</div> </td> </tr> <tr id="i22" class="altColor"> <td class="colFirst"><code>double</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#doubleValue--">doubleValue</a></span>()</code> <div class="block">Returns 64-bit floating point (double) value for this node, <b>if and only if</b> this node is numeric (<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>isNumber()</code></a> returns true).</div> </td> </tr> <tr id="i23" class="rowColor"> <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/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> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#elements--">elements</a></span>()</code> <div class="block">Method for accessing all value nodes of this Node, iff this node is a JSON Array or Object node.</div> </td> </tr> <tr id="i24" class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#equals-java.util.Comparator-com.fasterxml.jackson.databind.JsonNode-">equals</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util">Comparator</a><<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>> comparator, <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a> other)</code> <div class="block">Entry method for invoking customizable comparison, using passed-in <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util"><code>Comparator</code></a> object.</div> </td> </tr> <tr id="i25" class="rowColor"> <td class="colFirst"><code>abstract boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#equals-java.lang.Object-">equals</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> o)</code> <div class="block">Equality for node objects is defined as full (deep) value equality.</div> </td> </tr> <tr id="i26" class="altColor"> <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#fieldNames--">fieldNames</a></span>()</code> </td> </tr> <tr id="i27" class="rowColor"> <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.Entry.html?is-external=true" title="class or interface in java.util">Map.Entry</a><<a href="https://docs.oracle.com/javase/8/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> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#fields--">fields</a></span>()</code> </td> </tr> <tr id="i28" class="altColor"> <td class="colFirst"><code>abstract <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#findParent-java.lang.String-">findParent</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</code> <div class="block">Method for finding a JSON Object that contains specified field, within this node or its descendants.</div> </td> </tr> <tr id="i29" class="rowColor"> <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/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> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#findParents-java.lang.String-">findParents</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</code> <div class="block">Method for finding a JSON Object that contains specified field, within this node or its descendants.</div> </td> </tr> <tr id="i30" class="altColor"> <td class="colFirst"><code>abstract <a href="https://docs.oracle.com/javase/8/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> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#findParents-java.lang.String-java.util.List-">findParents</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName, <a href="https://docs.oracle.com/javase/8/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> </tr> <tr id="i31" class="rowColor"> <td class="colFirst"><code>abstract <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#findPath-java.lang.String-">findPath</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</code> <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 "missing node" instead of null if no field is found.</div> </td> </tr> <tr id="i32" class="altColor"> <td class="colFirst"><code>abstract <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#findValue-java.lang.String-">findValue</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</code> <div class="block">Method for finding a JSON Object field with specified name in this node or its child nodes, and returning value it has.</div> </td> </tr> <tr id="i33" class="rowColor"> <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/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> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#findValues-java.lang.String-">findValues</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</code> <div class="block">Method for finding JSON Object fields with specified name, and returning found ones as a List.</div> </td> </tr> <tr id="i34" class="altColor"> <td class="colFirst"><code>abstract <a href="https://docs.oracle.com/javase/8/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> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#findValues-java.lang.String-java.util.List-">findValues</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName, <a href="https://docs.oracle.com/javase/8/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> </tr> <tr id="i35" class="rowColor"> <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#findValuesAsText-java.lang.String-">findValuesAsText</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</code> <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 values into Strings, calling <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#asText--"><code>asText()</code></a>.</div> </td> </tr> <tr id="i36" class="altColor"> <td class="colFirst"><code>abstract <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#findValuesAsText-java.lang.String-java.util.List-">findValuesAsText</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> foundSoFar)</code> </td> </tr> <tr id="i37" class="rowColor"> <td class="colFirst"><code>float</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#floatValue--">floatValue</a></span>()</code> <div class="block">Returns 32-bit floating value for this node, <b>if and only if</b> this node is numeric (<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>isNumber()</code></a> returns true).</div> </td> </tr> <tr id="i38" class="altColor"> <td class="colFirst"><code>abstract <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#get-int-">get</a></span>(int index)</code> <div class="block">Method for accessing value of the specified element of an array node.</div> </td> </tr> <tr id="i39" class="rowColor"> <td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#get-java.lang.String-">get</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</code> <div class="block">Method for accessing value of the specified field of an object node.</div> </td> </tr> <tr id="i40" class="altColor"> <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> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#getNodeType--">getNodeType</a></span>()</code> <div class="block">Return the type of this node</div> </td> </tr> <tr id="i41" class="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#has-int-">has</a></span>(int index)</code> <div class="block">Method that allows checking whether this node is JSON Array node and contains a value for specified index If this is the case (including case of specified indexing having null as value), returns true; otherwise returns false.</div> </td> </tr> <tr id="i42" class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#has-java.lang.String-">has</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</code> <div class="block">Method that allows checking whether this node is JSON Object node and contains value for specified property.</div> </td> </tr> <tr id="i43" class="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#hasNonNull-int-">hasNonNull</a></span>(int index)</code> <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 return <code>false</code> for explicitly added nulls.</div> </td> </tr> <tr id="i44" class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#hasNonNull-java.lang.String-">hasNonNull</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</code> <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 return <code>false</code> for explicitly added nulls.</div> </td> </tr> <tr id="i45" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#intValue--">intValue</a></span>()</code> <div class="block">Returns integer value for this node, <b>if and only if</b> this node is numeric (<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>isNumber()</code></a> returns true).</div> </td> </tr> <tr id="i46" class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isArray--">isArray</a></span>()</code> </td> </tr> <tr id="i47" class="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isBigDecimal--">isBigDecimal</a></span>()</code> </td> </tr> <tr id="i48" class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isBigInteger--">isBigInteger</a></span>()</code> </td> </tr> <tr id="i49" class="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isBinary--">isBinary</a></span>()</code> <div class="block">Method that can be used to check if this node represents binary data (Base64 encoded).</div> </td> </tr> <tr id="i50" class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isBoolean--">isBoolean</a></span>()</code> <div class="block">Method that can be used to check if this node was created from JSON boolean value (literals "true" and "false").</div> </td> </tr> <tr id="i51" class="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isContainerNode--">isContainerNode</a></span>()</code> </td> </tr> <tr id="i52" class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isDouble--">isDouble</a></span>()</code> </td> </tr> <tr id="i53" class="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isEmpty--">isEmpty</a></span>()</code> <div class="block">Convenience method that is functionally same as:</div> </td> </tr> <tr id="i54" class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isFloat--">isFloat</a></span>()</code> </td> </tr> <tr id="i55" class="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isFloatingPointNumber--">isFloatingPointNumber</a></span>()</code> </td> </tr> <tr id="i56" class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isInt--">isInt</a></span>()</code> <div class="block">Method that can be used to check whether contained value is a number represented as Java <code>int</code>.</div> </td> </tr> <tr id="i57" class="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isIntegralNumber--">isIntegralNumber</a></span>()</code> </td> </tr> <tr id="i58" class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isLong--">isLong</a></span>()</code> <div class="block">Method that can be used to check whether contained value is a number represented as Java <code>long</code>.</div> </td> </tr> <tr id="i59" class="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode--">isMissingNode</a></span>()</code> </td> </tr> <tr id="i60" class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNull--">isNull</a></span>()</code> <div class="block">Method that can be used to check if this node was created from JSON literal null value.</div> </td> </tr> <tr id="i61" class="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--">isNumber</a></span>()</code> </td> </tr> <tr id="i62" class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isObject--">isObject</a></span>()</code> </td> </tr> <tr id="i63" class="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isPojo--">isPojo</a></span>()</code> <div class="block">Method that can be used to check if the node is a wrapper for a POJO ("Plain Old Java Object" aka "bean".</div> </td> </tr> <tr id="i64" class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isShort--">isShort</a></span>()</code> <div class="block">Method that can be used to check whether contained value is a number represented as Java <code>short</code>.</div> </td> </tr> <tr id="i65" class="rowColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isTextual--">isTextual</a></span>()</code> <div class="block">Method that checks whether this node represents basic JSON String value.</div> </td> </tr> <tr id="i66" class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isValueNode--">isValueNode</a></span>()</code> </td> </tr> <tr id="i67" class="rowColor"> <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/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> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#iterator--">iterator</a></span>()</code> <div class="block">Same as calling <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#elements--"><code>elements()</code></a>; implemented so that convenience "for-each" loop can be used for looping over elements of JSON Array constructs.</div> </td> </tr> <tr id="i68" class="altColor"> <td class="colFirst"><code>long</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#longValue--">longValue</a></span>()</code> <div class="block">Returns 64-bit long value for this node, <b>if and only if</b> this node is numeric (<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>isNumber()</code></a> returns true).</div> </td> </tr> <tr id="i69" class="rowColor"> <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Number.html?is-external=true" title="class or interface in java.lang">Number</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#numberValue--">numberValue</a></span>()</code> <div class="block">Returns numeric value for this node, <b>if and only if</b> this node is numeric (<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>isNumber()</code></a> returns true); otherwise returns null</div> </td> </tr> <tr id="i70" class="altColor"> <td class="colFirst"><code>abstract <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#path-int-">path</a></span>(int index)</code> <div class="block">This method is similar to <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#get-int-"><code>get(int)</code></a>, except that instead of returning null if no such element exists (due to index being out of range, or this node not being an array), a "missing node" (node that returns true for <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode--"><code>isMissingNode()</code></a>) will be returned.</div> </td> </tr> <tr id="i71" class="rowColor"> <td class="colFirst"><code>abstract <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#path-java.lang.String-">path</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</code> <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 that instead of returning null if no such value exists (due to this node not being an object, or object not having value for the specified field), a "missing node" (node that returns true for <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode--"><code>isMissingNode()</code></a>) will be returned.</div> </td> </tr> <tr id="i72" class="altColor"> <td class="colFirst"><code><T extends <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>><br>T</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#require--">require</a></span>()</code> <div class="block">Method that may be called to verify that <code>this</code> node is NOT so-called "missing node": that is, one for which <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode--"><code>isMissingNode()</code></a> returns <code>true</code>.</div> </td> </tr> <tr id="i73" class="rowColor"> <td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#required-int-">required</a></span>(int index)</code> <div class="block">Method is functionally equivalent to <code>path(index).required() </code> and can be used to check that this node is an <code>ArrayNode</code> (that is, represents JSON Array value) and has value for specified <code>index</code> (but note that value may be explicit JSON null value).</div> </td> </tr> <tr id="i74" class="altColor"> <td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#required-java.lang.String-">required</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</code> <div class="block">Method is functionally equivalent to <code>path(fieldName).required() </code> and can be used to check that this node is an <code>ObjectNode</code> (that is, represents JSON Object value) and has value for specified property with key <code>fieldName</code> (but note that value may be explicit JSON null value).</div> </td> </tr> <tr id="i75" class="rowColor"> <td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#requiredAt-com.fasterxml.jackson.core.JsonPointer-">requiredAt</a></span>(<a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonPointer.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonPointer</a> path)</code> <div class="block">Method is functionally equivalent to <code>at(path).required() </code> and can be used to check that there is an actual value node at specified <a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonPointer.html?is-external=true" title="class or interface in com.fasterxml.jackson.core"><code>JsonPointer</code></a> starting from <code>this</code> node (but note that value may be explicit JSON null value).</div> </td> </tr> <tr id="i76" class="altColor"> <td class="colFirst"><code><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#requiredAt-java.lang.String-">requiredAt</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> pathExpr)</code> <div class="block">Method is functionally equivalent to <code>at(pathExpr).required() </code> and can be used to check that there is an actual value node at specified <a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonPointer.html?is-external=true" title="class or interface in com.fasterxml.jackson.core"><code>JsonPointer</code></a> starting from <code>this</code> node (but note that value may be explicit JSON null value).</div> </td> </tr> <tr id="i77" class="rowColor"> <td class="colFirst"><code><T extends <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>><br>T</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#requireNonNull--">requireNonNull</a></span>()</code> <div class="block">Method that may be called to verify that <code>this</code> node is neither so-called "missing node" (that is, one for which <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode--"><code>isMissingNode()</code></a> returns <code>true</code>) nor "null node" (one for which <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNull--"><code>isNull()</code></a> returns <code>true</code>).</div> </td> </tr> <tr id="i78" class="altColor"> <td class="colFirst"><code>short</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#shortValue--">shortValue</a></span>()</code> <div class="block">Returns 16-bit short value for this node, <b>if and only if</b> this node is numeric (<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>isNumber()</code></a> returns true).</div> </td> </tr> <tr id="i79" class="rowColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#size--">size</a></span>()</code> </td> </tr> <tr id="i80" class="altColor"> <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#textValue--">textValue</a></span>()</code> <div class="block">Method to use for accessing String values.</div> </td> </tr> <tr id="i81" class="rowColor"> <td class="colFirst"><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#toPrettyString--">toPrettyString</a></span>()</code> <div class="block">Alternative to <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#toString--"><code>toString()</code></a> that will serialize this node using Jackson default pretty-printer.</div> </td> </tr> <tr id="i82" class="altColor"> <td class="colFirst"><code>abstract <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a></code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#toString--">toString</a></span>()</code> <div class="block">Method that will produce (as of Jackson 2.10) valid JSON using default settings of databind, as String.</div> </td> </tr> <tr id="i83" class="rowColor"> <td class="colFirst"><code><T extends <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>><br>T</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#with-java.lang.String-">with</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> propertyName)</code> <div class="block">Method that can be called on Object nodes, to access a property that has Object value; or if no such property exists, to create, add and return such Object node.</div> </td> </tr> <tr id="i84" class="altColor"> <td class="colFirst"><code><T extends <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>><br>T</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#withArray-java.lang.String-">withArray</a></span>(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> propertyName)</code> <div class="block">Method that can be called on Object nodes, to access a property that has <code>Array</code> value; or if no such property exists, to create, add and return such Array node.</div> </td> </tr> </table> <ul class="blockList"> <li class="blockList"><a name="methods.inherited.from.class.com.fasterxml.jackson.databind.JsonSerializable.Base"> <!-- --> </a> <h3>Methods inherited from class com.fasterxml.jackson.databind.<a href="../../../../com/fasterxml/jackson/databind/JsonSerializable.Base.html" title="class in com.fasterxml.jackson.databind">JsonSerializable.Base</a></h3> <code><a href="../../../../com/fasterxml/jackson/databind/JsonSerializable.Base.html#isEmpty-com.fasterxml.jackson.databind.SerializerProvider-">isEmpty</a></code></li> </ul> <ul class="blockList"> <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> <!-- --> </a> <h3>Methods inherited from class java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> <code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li> </ul> <ul class="blockList"> <li class="blockList"><a name="methods.inherited.from.class.com.fasterxml.jackson.core.TreeNode"> <!-- --> </a> <h3>Methods inherited from interface com.fasterxml.jackson.core.<a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a></h3> <code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/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.io/jackson-core/javadoc/2.10/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.io/jackson-core/javadoc/2.10/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.io/jackson-core/javadoc/2.10/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> </ul> <ul class="blockList"> <li class="blockList"><a name="methods.inherited.from.class.java.lang.Iterable"> <!-- --> </a> <h3>Methods inherited from interface java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a></h3> <code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true#forEach-java.util.function.Consumer-" title="class or interface in java.lang">forEach</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true#spliterator--" title="class or interface in java.lang">spliterator</a></code></li> </ul> <ul class="blockList"> <li class="blockList"><a name="methods.inherited.from.class.com.fasterxml.jackson.databind.JsonSerializable"> <!-- --> </a> <h3>Methods inherited from interface com.fasterxml.jackson.databind.<a href="../../../../com/fasterxml/jackson/databind/JsonSerializable.html" title="interface in com.fasterxml.jackson.databind">JsonSerializable</a></h3> <code><a href="../../../../com/fasterxml/jackson/databind/JsonSerializable.html#serialize-com.fasterxml.jackson.core.JsonGenerator-com.fasterxml.jackson.databind.SerializerProvider-">serialize</a>, <a href="../../../../com/fasterxml/jackson/databind/JsonSerializable.html#serializeWithType-com.fasterxml.jackson.core.JsonGenerator-com.fasterxml.jackson.databind.SerializerProvider-com.fasterxml.jackson.databind.jsontype.TypeSerializer-">serializeWithType</a></code></li> </ul> </li> </ul> </li> </ul> </div> <div class="details"> <ul class="blockList"> <li class="blockList"> <!-- ========= CONSTRUCTOR DETAIL ======== --> <ul class="blockList"> <li class="blockList"><a name="constructor.detail"> <!-- --> </a> <h3>Constructor Detail</h3> <a name="JsonNode--"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>JsonNode</h4> <pre>protected JsonNode()</pre> </li> </ul> </li> </ul> <!-- ============ METHOD DETAIL ========== --> <ul class="blockList"> <li class="blockList"><a name="method.detail"> <!-- --> </a> <h3>Method Detail</h3> <a name="deepCopy--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>deepCopy</h4> <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> <div class="block">Method that can be called to get a node that is guaranteed not to allow changing of this node through mutators on this node or any of its children. This means it can either make a copy of this node (and all mutable children and grand children nodes), or node itself if it is immutable. <p> Note: return type is guaranteed to have same type as the node method is called on; which is why method is declared with local generic type.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>Node that is either a copy of this node (and all non-leaf children); or, for immutable leaf nodes, node itself.</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>2.0</dd> </dl> </li> </ul> <a name="size--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>size</h4> <pre>public int size()</pre> <dl> <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> <dd><code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/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.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a></code></dd> </dl> </li> </ul> <a name="isEmpty--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>isEmpty</h4> <pre>public boolean isEmpty()</pre> <div class="block">Convenience method that is functionally same as: <pre> size() == 0 </pre> for all node types.</div> <dl> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>2.10</dd> </dl> </li> </ul> <a name="isValueNode--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>isValueNode</h4> <pre>public final boolean isValueNode()</pre> <dl> <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> <dd><code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/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.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a></code></dd> </dl> </li> </ul> <a name="isContainerNode--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>isContainerNode</h4> <pre>public final boolean isContainerNode()</pre> <dl> <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> <dd><code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/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.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a></code></dd> </dl> </li> </ul> <a name="isMissingNode--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>isMissingNode</h4> <pre>public boolean isMissingNode()</pre> <dl> <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> <dd><code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/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.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a></code></dd> </dl> </li> </ul> <a name="isArray--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>isArray</h4> <pre>public boolean isArray()</pre> <dl> <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> <dd><code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/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.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a></code></dd> </dl> </li> </ul> <a name="isObject--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>isObject</h4> <pre>public boolean isObject()</pre> <dl> <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> <dd><code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/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.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a></code></dd> </dl> </li> </ul> <a name="get-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>get</h4> <pre>public abstract <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a> get(int index)</pre> <div class="block">Method for accessing value of the specified element of an array node. For other nodes, null is always returned. <p> For array nodes, index specifies exact location within array and allows for efficient iteration over child elements (underlying storage is guaranteed to be efficiently indexable, i.e. has random-access to elements). If index is less than 0, or equal-or-greater than <code>node.size()</code>, null is returned; no exception is thrown for any index. <p> NOTE: if the element value has been explicitly set as <code>null</code> (which is different from removal!), 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, not null.</div> <dl> <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> <dd><code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/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.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a></code></dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>Node that represent value of the specified element, if this node is an array and has specified element. Null otherwise.</dd> </dl> </li> </ul> <a name="get-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>get</h4> <pre>public <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a> get(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</pre> <div class="block">Method for accessing value of the specified field of an object node. If this node is not an object (or it does not have a value for specified field name), or if there is no field with such name, null is returned. <p> NOTE: if the property value has been explicitly set as <code>null</code> (which is different from removal!), 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, not null.</div> <dl> <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> <dd><code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/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.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a></code></dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>Node that represent value of the specified field, if this node is an object and has value for the specified field. Null otherwise.</dd> </dl> </li> </ul> <a name="path-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>path</h4> <pre>public abstract <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a> path(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</pre> <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 that instead of returning null if no such value exists (due to this node not being an object, or object not having value for the specified field), a "missing node" (node that returns true for <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode--"><code>isMissingNode()</code></a>) will be returned. This allows for convenient and safe chained access via path calls.</div> <dl> <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> <dd><code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/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.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a></code></dd> </dl> </li> </ul> <a name="path-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>path</h4> <pre>public abstract <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a> path(int index)</pre> <div class="block">This method is similar to <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#get-int-"><code>get(int)</code></a>, except that instead of returning null if no such element exists (due to index being out of range, or this node not being an array), a "missing node" (node that returns true for <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode--"><code>isMissingNode()</code></a>) will be returned. This allows for convenient and safe chained access via path calls.</div> <dl> <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> <dd><code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/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.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a></code></dd> </dl> </li> </ul> <a name="fieldNames--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>fieldNames</h4> <pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> fieldNames()</pre> <dl> <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> <dd><code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/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.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a></code></dd> </dl> </li> </ul> <a name="at-com.fasterxml.jackson.core.JsonPointer-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>at</h4> <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.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonPointer.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonPointer</a> ptr)</pre> <div class="block">Method for locating node specified by given JSON pointer instances. Method will never return null; if no matching node exists, will return a node for which <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode--"><code>isMissingNode()</code></a> returns true.</div> <dl> <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> <dd><code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/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.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a></code></dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>Node that matches given JSON Pointer: if no match exists, 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="simpleTagLabel">Since:</span></dt> <dd>2.3</dd> </dl> </li> </ul> <a name="at-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>at</h4> <pre>public final <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a> at(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> jsonPtrExpr)</pre> <div class="block">Convenience method that is functionally equivalent to: <pre> return at(JsonPointer.valueOf(jsonPointerExpression)); </pre> <p> Note that if the same expression is used often, it is preferable to construct <a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/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 any caching of compiled expressions.</div> <dl> <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> <dd><code><a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/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.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a></code></dd> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>jsonPtrExpr</code> - Expression to compile as a <a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonPointer.html?is-external=true" title="class or interface in com.fasterxml.jackson.core"><code>JsonPointer</code></a> instance</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>Node that matches given JSON Pointer: if no match exists, will return a node for which <a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/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="simpleTagLabel">Since:</span></dt> <dd>2.3</dd> </dl> </li> </ul> <a name="Z:Z_at-com.fasterxml.jackson.core.JsonPointer-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>_at</h4> <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.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonPointer.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonPointer</a> ptr)</pre> </li> </ul> <a name="getNodeType--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getNodeType</h4> <pre>public abstract <a href="../../../../com/fasterxml/jackson/databind/node/JsonNodeType.html" title="enum in com.fasterxml.jackson.databind.node">JsonNodeType</a> getNodeType()</pre> <div class="block">Return the type of this node</div> <dl> <dt><span class="returnLabel">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="simpleTagLabel">Since:</span></dt> <dd>2.2</dd> </dl> </li> </ul> <a name="isPojo--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>isPojo</h4> <pre>public final boolean isPojo()</pre> <div class="block">Method that can be used to check if the node is a wrapper for a POJO ("Plain Old Java Object" aka "bean". Returns true only for instances of <code>POJONode</code>.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>True if this node wraps a POJO</dd> </dl> </li> </ul> <a name="isNumber--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>isNumber</h4> <pre>public final boolean isNumber()</pre> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>True if this node represents a numeric JSON value</dd> </dl> </li> </ul> <a name="isIntegralNumber--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>isIntegralNumber</h4> <pre>public boolean isIntegralNumber()</pre> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>True if this node represents an integral (integer) numeric JSON value</dd> </dl> </li> </ul> <a name="isFloatingPointNumber--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>isFloatingPointNumber</h4> <pre>public boolean isFloatingPointNumber()</pre> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>True if this node represents a non-integral numeric JSON value</dd> </dl> </li> </ul> <a name="isShort--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>isShort</h4> <pre>public boolean isShort()</pre> <div class="block">Method that can be used to check whether contained value is a number represented as Java <code>short</code>. Note, however, that even if this method returns false, it is possible that conversion would be possible from other numeric types -- to check if this is possible, use <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#canConvertToInt--"><code>canConvertToInt()</code></a> instead.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>True if the value contained by this node is stored as Java short</dd> </dl> </li> </ul> <a name="isInt--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>isInt</h4> <pre>public boolean isInt()</pre> <div class="block">Method that can be used to check whether contained value is a number represented as Java <code>int</code>. Note, however, that even if this method returns false, it is possible that conversion would be possible from other numeric types -- to check if this is possible, use <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#canConvertToInt--"><code>canConvertToInt()</code></a> instead.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>True if the value contained by this node is stored as Java int</dd> </dl> </li> </ul> <a name="isLong--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>isLong</h4> <pre>public boolean isLong()</pre> <div class="block">Method that can be used to check whether contained value is a number represented as Java <code>long</code>. Note, however, that even if this method returns false, it is possible that conversion would be possible from other numeric types -- to check if this is possible, use <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#canConvertToLong--"><code>canConvertToLong()</code></a> instead.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>True if the value contained by this node is stored as Java <code>long</code></dd> </dl> </li> </ul> <a name="isFloat--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>isFloat</h4> <pre>public boolean isFloat()</pre> <dl> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>2.2</dd> </dl> </li> </ul> <a name="isDouble--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>isDouble</h4> <pre>public boolean isDouble()</pre> </li> </ul> <a name="isBigDecimal--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>isBigDecimal</h4> <pre>public boolean isBigDecimal()</pre> </li> </ul> <a name="isBigInteger--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>isBigInteger</h4> <pre>public boolean isBigInteger()</pre> </li> </ul> <a name="isTextual--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>isTextual</h4> <pre>public final boolean isTextual()</pre> <div class="block">Method that checks whether this node represents basic JSON String value.</div> </li> </ul> <a name="isBoolean--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>isBoolean</h4> <pre>public final boolean isBoolean()</pre> <div class="block">Method that can be used to check if this node was created from JSON boolean value (literals "true" and "false").</div> </li> </ul> <a name="isNull--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>isNull</h4> <pre>public final boolean isNull()</pre> <div class="block">Method that can be used to check if this node was created from JSON literal null value.</div> </li> </ul> <a name="isBinary--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>isBinary</h4> <pre>public final boolean isBinary()</pre> <div class="block">Method that can be used to check if this node represents binary data (Base64 encoded). Although this will be externally written as JSON String value, <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isTextual--"><code>isTextual()</code></a> will return false if this method returns true.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>True if this node represents base64 encoded binary data</dd> </dl> </li> </ul> <a name="canConvertToInt--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>canConvertToInt</h4> <pre>public boolean canConvertToInt()</pre> <div class="block">Method that can be used to check whether this node is a numeric node (<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>isNumber()</code></a> would return true) AND its value fits within Java's 32-bit signed integer type, <code>int</code>. Note that floating-point numbers are convertible if the integral part fits without overflow (as per standard Java coercion rules) <p> NOTE: this method does not consider possible value type conversion from JSON String into Number; so even if this method returns false, it is possible that <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#asInt--"><code>asInt()</code></a> could still succeed if node is a JSON String representing integral number, or boolean.</div> <dl> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>2.0</dd> </dl> </li> </ul> <a name="canConvertToLong--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>canConvertToLong</h4> <pre>public boolean canConvertToLong()</pre> <div class="block">Method that can be used to check whether this node is a numeric node (<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>isNumber()</code></a> would return true) AND its value fits within Java's 64-bit signed integer type, <code>long</code>. Note that floating-point numbers are convertible if the integral part fits without overflow (as per standard Java coercion rules) <p> NOTE: this method does not consider possible value type conversion from JSON String into Number; so even if this method returns false, it is possible that <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#asLong--"><code>asLong()</code></a> could still succeed if node is a JSON String representing integral number, or boolean.</div> <dl> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>2.0</dd> </dl> </li> </ul> <a name="textValue--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>textValue</h4> <pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> textValue()</pre> <div class="block">Method to use for accessing String values. Does <b>NOT</b> do any conversions for non-String value nodes; for non-String values (ones for which <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isTextual--"><code>isTextual()</code></a> returns false) null will be returned. For String values, null is never returned (but empty Strings may be)</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>Textual value this node contains, iff it is a textual JSON node (comes from JSON String value entry)</dd> </dl> </li> </ul> <a name="binaryValue--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>binaryValue</h4> <pre>public byte[] binaryValue() throws <a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> <div class="block">Method to use for accessing binary content of binary nodes (nodes for which <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isBinary--"><code>isBinary()</code></a> returns true); or for Text Nodes (ones for which <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#textValue--"><code>textValue()</code></a> returns non-null value), to read decoded base64 data. For other types of nodes, returns null.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>Binary data this node contains, iff it is a binary node; null otherwise</dd> <dt><span class="throwsLabel">Throws:</span></dt> <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></code></dd> </dl> </li> </ul> <a name="booleanValue--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>booleanValue</h4> <pre>public boolean booleanValue()</pre> <div class="block">Method to use for accessing JSON boolean values (value literals 'true' and 'false'). For other types, always returns false.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>Textual value this node contains, iff it is a textual json node (comes from JSON String value entry)</dd> </dl> </li> </ul> <a name="numberValue--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>numberValue</h4> <pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Number.html?is-external=true" title="class or interface in java.lang">Number</a> numberValue()</pre> <div class="block">Returns numeric value for this node, <b>if and only if</b> this node is numeric (<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>isNumber()</code></a> returns true); otherwise returns null</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>Number value this node contains, if any (null for non-number nodes).</dd> </dl> </li> </ul> <a name="shortValue--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>shortValue</h4> <pre>public short shortValue()</pre> <div class="block">Returns 16-bit short value for this node, <b>if and only if</b> this node is numeric (<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>isNumber()</code></a> returns true). For other types returns 0. For floating-point numbers, value is truncated using default Java coercion, similar to how cast from double to short operates.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>Short value this node contains, if any; 0 for non-number nodes.</dd> </dl> </li> </ul> <a name="intValue--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>intValue</h4> <pre>public int intValue()</pre> <div class="block">Returns integer value for this node, <b>if and only if</b> this node is numeric (<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>isNumber()</code></a> returns true). For other types returns 0. For floating-point numbers, value is truncated using default Java coercion, similar to how cast from double to int operates.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>Integer value this node contains, if any; 0 for non-number nodes.</dd> </dl> </li> </ul> <a name="longValue--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>longValue</h4> <pre>public long longValue()</pre> <div class="block">Returns 64-bit long value for this node, <b>if and only if</b> this node is numeric (<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>isNumber()</code></a> returns true). For other types returns 0. For floating-point numbers, value is truncated using default Java coercion, similar to how cast from double to long operates.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>Long value this node contains, if any; 0 for non-number nodes.</dd> </dl> </li> </ul> <a name="floatValue--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>floatValue</h4> <pre>public float floatValue()</pre> <div class="block">Returns 32-bit floating value for this node, <b>if and only if</b> this node is numeric (<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>isNumber()</code></a> returns true). For other types returns 0.0. For integer values, conversion is done using coercion; this means that an overflow is possible for `long` values</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>32-bit float value this node contains, if any; 0.0 for non-number nodes.</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>2.2</dd> </dl> </li> </ul> <a name="doubleValue--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>doubleValue</h4> <pre>public double doubleValue()</pre> <div class="block">Returns 64-bit floating point (double) value for this node, <b>if and only if</b> this node is numeric (<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>isNumber()</code></a> returns true). For other types returns 0.0. For integer values, conversion is done using coercion; this may result in overflows with <a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigInteger.html?is-external=true" title="class or interface in java.math"><code>BigInteger</code></a> values.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>64-bit double value this node contains, if any; 0.0 for non-number nodes.</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>2.2</dd> </dl> </li> </ul> <a name="decimalValue--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>decimalValue</h4> <pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math">BigDecimal</a> decimalValue()</pre> <div class="block">Returns floating point value for this node (as <a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math"><code>BigDecimal</code></a>), <b>if and only if</b> this node is numeric (<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>isNumber()</code></a> returns true). For other types returns <code>BigDecimal.ZERO</code>.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd><a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math"><code>BigDecimal</code></a> value this node contains, if numeric node; <code>BigDecimal.ZERO</code> for non-number nodes.</dd> </dl> </li> </ul> <a name="bigIntegerValue--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>bigIntegerValue</h4> <pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigInteger.html?is-external=true" title="class or interface in java.math">BigInteger</a> bigIntegerValue()</pre> <div class="block">Returns integer value for this node (as <a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math"><code>BigDecimal</code></a>), <b>if and only if</b> this node is numeric (<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber--"><code>isNumber()</code></a> returns true). For other types returns <code>BigInteger.ZERO</code>.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd><a href="https://docs.oracle.com/javase/8/docs/api/java/math/BigInteger.html?is-external=true" title="class or interface in java.math"><code>BigInteger</code></a> value this node contains, if numeric node; <code>BigInteger.ZERO</code> for non-number nodes.</dd> </dl> </li> </ul> <a name="asText--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>asText</h4> <pre>public abstract <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> asText()</pre> <div class="block">Method that will return a valid String representation of the container value, if the node is a value node (method <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isValueNode--"><code>isValueNode()</code></a> returns true), otherwise empty String.</div> </li> </ul> <a name="asText-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>asText</h4> <pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> asText(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> defaultValue)</pre> <div class="block">Method similar to <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#asText--"><code>asText()</code></a>, except that it will return <code>defaultValue</code> in cases where null value would be returned; either for missing nodes (trying to access missing property, or element at invalid item for array) or explicit nulls.</div> <dl> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>2.4</dd> </dl> </li> </ul> <a name="asInt--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>asInt</h4> <pre>public int asInt()</pre> <div class="block">Method that will try to convert value of this node to a Java <b>int</b>. Numbers are coerced using default Java rules; booleans convert to 0 (false) and 1 (true), and Strings are parsed using default Java language integer parsing rules. <p> If representation cannot be converted to an int (including structured types like Objects and Arrays), default value of <b>0</b> will be returned; no exceptions are thrown.</div> </li> </ul> <a name="asInt-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>asInt</h4> <pre>public int asInt(int defaultValue)</pre> <div class="block">Method that will try to convert value of this node to a Java <b>int</b>. Numbers are coerced using default Java rules; booleans convert to 0 (false) and 1 (true), and Strings are parsed using default Java language integer parsing rules. <p> If representation cannot be converted to an int (including structured types like Objects and Arrays), specified <b>defaultValue</b> will be returned; no exceptions are thrown.</div> </li> </ul> <a name="asLong--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>asLong</h4> <pre>public long asLong()</pre> <div class="block">Method that will try to convert value of this node to a Java <b>long</b>. Numbers are coerced using default Java rules; booleans convert to 0 (false) and 1 (true), and Strings are parsed using default Java language integer parsing rules. <p> If representation cannot be converted to an long (including structured types like Objects and Arrays), default value of <b>0</b> will be returned; no exceptions are thrown.</div> </li> </ul> <a name="asLong-long-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>asLong</h4> <pre>public long asLong(long defaultValue)</pre> <div class="block">Method that will try to convert value of this node to a Java <b>long</b>. Numbers are coerced using default Java rules; booleans convert to 0 (false) and 1 (true), and Strings are parsed using default Java language integer parsing rules. <p> If representation cannot be converted to an long (including structured types like Objects and Arrays), specified <b>defaultValue</b> will be returned; no exceptions are thrown.</div> </li> </ul> <a name="asDouble--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>asDouble</h4> <pre>public double asDouble()</pre> <div class="block">Method that will try to convert value of this node to a Java <b>double</b>. Numbers are coerced using default Java rules; booleans convert to 0.0 (false) and 1.0 (true), and Strings are parsed using default Java language integer parsing rules. <p> If representation cannot be converted to an int (including structured types like Objects and Arrays), default value of <b>0.0</b> will be returned; no exceptions are thrown.</div> </li> </ul> <a name="asDouble-double-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>asDouble</h4> <pre>public double asDouble(double defaultValue)</pre> <div class="block">Method that will try to convert value of this node to a Java <b>double</b>. Numbers are coerced using default Java rules; booleans convert to 0.0 (false) and 1.0 (true), and Strings are parsed using default Java language integer parsing rules. <p> If representation cannot be converted to an int (including structured types like Objects and Arrays), specified <b>defaultValue</b> will be returned; no exceptions are thrown.</div> </li> </ul> <a name="asBoolean--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>asBoolean</h4> <pre>public boolean asBoolean()</pre> <div class="block">Method that will try to convert value of this node to a Java <b>boolean</b>. JSON booleans map naturally; integer numbers other than 0 map to true, and 0 maps to false and Strings 'true' and 'false' map to corresponding values. <p> If representation cannot be converted to a boolean value (including structured types like Objects and Arrays), default value of <b>false</b> will be returned; no exceptions are thrown.</div> </li> </ul> <a name="asBoolean-boolean-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>asBoolean</h4> <pre>public boolean asBoolean(boolean defaultValue)</pre> <div class="block">Method that will try to convert value of this node to a Java <b>boolean</b>. JSON booleans map naturally; integer numbers other than 0 map to true, and 0 maps to false and Strings 'true' and 'false' map to corresponding values. <p> If representation cannot be converted to a boolean value (including structured types like Objects and Arrays), specified <b>defaultValue</b> will be returned; no exceptions are thrown.</div> </li> </ul> <a name="require--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>require</h4> <pre>public <T extends <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>> T require() throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></pre> <div class="block">Method that may be called to verify that <code>this</code> node is NOT so-called "missing node": that is, one for which <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode--"><code>isMissingNode()</code></a> returns <code>true</code>. If not missing node, <code>this</code> is returned to allow chaining; otherwise <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang"><code>IllegalArgumentException</code></a> is thrown.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd><code>this</code> node to allow chaining</dd> <dt><span class="throwsLabel">Throws:</span></dt> <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if this node is "missing node"</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>2.10</dd> </dl> </li> </ul> <a name="requireNonNull--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>requireNonNull</h4> <pre>public <T extends <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>> T requireNonNull() throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></pre> <div class="block">Method that may be called to verify that <code>this</code> node is neither so-called "missing node" (that is, one for which <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode--"><code>isMissingNode()</code></a> returns <code>true</code>) nor "null node" (one for which <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNull--"><code>isNull()</code></a> returns <code>true</code>). If non-null non-missing node, <code>this</code> is returned to allow chaining; otherwise <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang"><code>IllegalArgumentException</code></a> is thrown.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd><code>this</code> node to allow chaining</dd> <dt><span class="throwsLabel">Throws:</span></dt> <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if this node is either "missing node" or "null node"</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>2.10</dd> </dl> </li> </ul> <a name="required-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>required</h4> <pre>public <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a> required(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName) throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></pre> <div class="block">Method is functionally equivalent to <code>path(fieldName).required() </code> and can be used to check that this node is an <code>ObjectNode</code> (that is, represents JSON Object value) and has value for specified property with key <code>fieldName</code> (but note that value may be explicit JSON null value). If this node is Object Node and has value for specified property, <code>this</code> is returned to allow chaining; otherwise <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang"><code>IllegalArgumentException</code></a> is thrown.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd><code>this</code> node to allow chaining</dd> <dt><span class="throwsLabel">Throws:</span></dt> <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if this node is not an Object node or if it does not have value for specified property</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>2.10</dd> </dl> </li> </ul> <a name="required-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>required</h4> <pre>public <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a> required(int index) throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></pre> <div class="block">Method is functionally equivalent to <code>path(index).required() </code> and can be used to check that this node is an <code>ArrayNode</code> (that is, represents JSON Array value) and has value for specified <code>index</code> (but note that value may be explicit JSON null value). If this node is Array Node and has value for specified index, <code>this</code> is returned to allow chaining; otherwise <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang"><code>IllegalArgumentException</code></a> is thrown.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd><code>this</code> node to allow chaining</dd> <dt><span class="throwsLabel">Throws:</span></dt> <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if this node is not an Array node or if it does not have value for specified index</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>2.10</dd> </dl> </li> </ul> <a name="requiredAt-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>requiredAt</h4> <pre>public <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a> requiredAt(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> pathExpr) throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></pre> <div class="block">Method is functionally equivalent to <code>at(pathExpr).required() </code> and can be used to check that there is an actual value node at specified <a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonPointer.html?is-external=true" title="class or interface in com.fasterxml.jackson.core"><code>JsonPointer</code></a> starting from <code>this</code> node (but note that value may be explicit JSON null value). If such value node exists <code>this</code> is returned to allow chaining; otherwise <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang"><code>IllegalArgumentException</code></a> is thrown.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd><code>this</code> node to allow chaining</dd> <dt><span class="throwsLabel">Throws:</span></dt> <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if no value node exists at given <code>JSON Pointer</code> path</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>2.10</dd> </dl> </li> </ul> <a name="requiredAt-com.fasterxml.jackson.core.JsonPointer-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>requiredAt</h4> <pre>public final <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a> requiredAt(<a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonPointer.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonPointer</a> path) throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></pre> <div class="block">Method is functionally equivalent to <code>at(path).required() </code> and can be used to check that there is an actual value node at specified <a href="http://fasterxml.github.io/jackson-core/javadoc/2.10/com/fasterxml/jackson/core/JsonPointer.html?is-external=true" title="class or interface in com.fasterxml.jackson.core"><code>JsonPointer</code></a> starting from <code>this</code> node (but note that value may be explicit JSON null value). If such value node exists <code>this</code> is returned to allow chaining; otherwise <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang"><code>IllegalArgumentException</code></a> is thrown.</div> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd><code>this</code> node to allow chaining</dd> <dt><span class="throwsLabel">Throws:</span></dt> <dd><code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</a></code> - if no value node exists at given <code>JSON Pointer</code> path</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>2.10</dd> </dl> </li> </ul> <a name="has-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>has</h4> <pre>public boolean has(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</pre> <div class="block">Method that allows checking whether this node is JSON Object node and contains value for specified property. If this is the case (including properties with explicit null values), returns true; otherwise returns false. <p> This method is equivalent to: <pre> node.get(fieldName) != null </pre> (since return value of get() is node, not value node contains) <p> NOTE: when explicit <code>null</code> values are added, this method will return <code>true</code> for such properties.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>fieldName</code> - Name of element to check</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>True if this node is a JSON Object node, and has a property entry with specified name (with any value, including null value)</dd> </dl> </li> </ul> <a name="has-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>has</h4> <pre>public boolean has(int index)</pre> <div class="block">Method that allows checking whether this node is JSON Array node and contains a value for specified index If this is the case (including case of specified indexing having null as value), returns true; otherwise returns false. <p> Note: array element indexes are 0-based. <p> This method is equivalent to: <pre> node.get(index) != null </pre> <p> NOTE: this method will return <code>true</code> for explicitly added null values.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>index</code> - Index to check</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>True if this node is a JSON Object node, and has a property entry with specified name (with any value, including null value)</dd> </dl> </li> </ul> <a name="hasNonNull-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>hasNonNull</h4> <pre>public boolean hasNonNull(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</pre> <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 return <code>false</code> for explicitly added nulls. <p> This method is functionally equivalent to: <pre> node.get(fieldName) != null && !node.get(fieldName).isNull() </pre></div> <dl> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>2.1</dd> </dl> </li> </ul> <a name="hasNonNull-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>hasNonNull</h4> <pre>public boolean hasNonNull(int index)</pre> <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 return <code>false</code> for explicitly added nulls. <p> This method is equivalent to: <pre> node.get(index) != null && !node.get(index).isNull() </pre></div> <dl> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>2.1</dd> </dl> </li> </ul> <a name="iterator--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>iterator</h4> <pre>public final <a href="https://docs.oracle.com/javase/8/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> <div class="block">Same as calling <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#elements--"><code>elements()</code></a>; implemented so that convenience "for-each" loop can be used for looping over elements of JSON Array constructs.</div> <dl> <dt><span class="overrideSpecifyLabel">Specified by:</span></dt> <dd><code><a href="https://docs.oracle.com/javase/8/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="https://docs.oracle.com/javase/8/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> </dl> </li> </ul> <a name="elements--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>elements</h4> <pre>public <a href="https://docs.oracle.com/javase/8/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> <div class="block">Method for accessing all value nodes of this Node, iff this node is a JSON Array or Object node. In case of Object node, field names (keys) are not included, only values. For other types of nodes, returns empty iterator.</div> </li> </ul> <a name="fields--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>fields</h4> <pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.Entry.html?is-external=true" title="class or interface in java.util">Map.Entry</a><<a href="https://docs.oracle.com/javase/8/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> <dl> <dt><span class="returnLabel">Returns:</span></dt> <dd>Iterator that can be used to traverse all key/value pairs for object nodes; empty iterator (no contents) for other types</dd> </dl> </li> </ul> <a name="findValue-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>findValue</h4> <pre>public abstract <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a> findValue(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</pre> <div class="block">Method for finding a JSON Object field with specified name in this node or its child nodes, and returning value it has. If no matching field is found in this node or its descendants, returns null.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>fieldName</code> - Name of field to look for</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>Value of first matching node found, if any; null if none</dd> </dl> </li> </ul> <a name="findValues-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>findValues</h4> <pre>public final <a href="https://docs.oracle.com/javase/8/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="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</pre> <div class="block">Method for finding JSON Object fields with specified name, and returning found ones as a List. Note that sub-tree search ends if a field is found, so possible children of result nodes are <b>not</b> included. If no matching fields are found in this node or its descendants, returns an empty List.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>fieldName</code> - Name of field to look for</dd> </dl> </li> </ul> <a name="findValuesAsText-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>findValuesAsText</h4> <pre>public final <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> findValuesAsText(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</pre> <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 values into Strings, calling <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#asText--"><code>asText()</code></a>.</div> </li> </ul> <a name="findPath-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>findPath</h4> <pre>public abstract <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a> findPath(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</pre> <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 "missing node" instead of null if no field is found. Missing node is a specific kind of node for which <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode--"><code>isMissingNode()</code></a> returns true; and all value access methods return empty or missing value.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>fieldName</code> - Name of field to look for</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>Value of first matching node found; or if not found, a "missing node" (non-null instance that has no value)</dd> </dl> </li> </ul> <a name="findParent-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>findParent</h4> <pre>public abstract <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a> findParent(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</pre> <div class="block">Method for finding a JSON Object that contains specified field, within this node or its descendants. If no matching field is found in this node or its descendants, returns null.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>fieldName</code> - Name of field to look for</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>Value of first matching node found, if any; null if none</dd> </dl> </li> </ul> <a name="findParents-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>findParents</h4> <pre>public final <a href="https://docs.oracle.com/javase/8/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="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</pre> <div class="block">Method for finding a JSON Object that contains specified field, within this node or its descendants. If no matching field is found in this node or its descendants, returns null.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>fieldName</code> - Name of field to look for</dd> <dt><span class="returnLabel">Returns:</span></dt> <dd>Value of first matching node found, if any; null if none</dd> </dl> </li> </ul> <a name="findValues-java.lang.String-java.util.List-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>findValues</h4> <pre>public abstract <a href="https://docs.oracle.com/javase/8/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="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName, <a href="https://docs.oracle.com/javase/8/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> </li> </ul> <a name="findValuesAsText-java.lang.String-java.util.List-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>findValuesAsText</h4> <pre>public abstract <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> findValuesAsText(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName, <a href="https://docs.oracle.com/javase/8/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> foundSoFar)</pre> </li> </ul> <a name="findParents-java.lang.String-java.util.List-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>findParents</h4> <pre>public abstract <a href="https://docs.oracle.com/javase/8/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="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName, <a href="https://docs.oracle.com/javase/8/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> </li> </ul> <a name="with-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>with</h4> <pre>public <T extends <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>> T with(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> propertyName)</pre> <div class="block">Method that can be called on Object nodes, to access a property that has Object value; or if no such property exists, to create, add and return such Object node. If the node method is called on is not Object node, or if property exists and has value that is not Object node, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/UnsupportedOperationException.html?is-external=true" title="class or interface in java.lang"><code>UnsupportedOperationException</code></a> is thrown <p> NOTE: since 2.10 has had co-variant return type</div> </li> </ul> <a name="withArray-java.lang.String-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>withArray</h4> <pre>public <T extends <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>> T withArray(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> propertyName)</pre> <div class="block">Method that can be called on Object nodes, to access a property that has <code>Array</code> value; or if no such property exists, to create, add and return such Array node. If the node method is called on is not Object node, or if property exists and has value that is not Array node, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/UnsupportedOperationException.html?is-external=true" title="class or interface in java.lang"><code>UnsupportedOperationException</code></a> is thrown <p> NOTE: since 2.10 has had co-variant return type</div> </li> </ul> <a name="equals-java.util.Comparator-com.fasterxml.jackson.databind.JsonNode-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>equals</h4> <pre>public boolean equals(<a href="https://docs.oracle.com/javase/8/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util">Comparator</a><<a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>> comparator, <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a> other)</pre> <div class="block">Entry method for invoking customizable comparison, using passed-in <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util"><code>Comparator</code></a> object. Nodes will handle traversal of structured types (arrays, objects), but defer to comparator for scalar value comparisons. If a "natural" <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Comparator.html?is-external=true" title="class or interface in java.util"><code>Comparator</code></a> is passed -- one that simply calls <code>equals()</code> on one of arguments, passing the other -- implementation is the same as directly calling <code>equals()</code> on node. <p> Default implementation simply delegates to passed in <code>comparator</code>, with <code>this</code> as the first argument, and <code>other</code> as the second argument.</div> <dl> <dt><span class="paramLabel">Parameters:</span></dt> <dd><code>comparator</code> - Object called to compare two scalar <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind"><code>JsonNode</code></a> instances, and return either 0 (are equals) or non-zero (not equal)</dd> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>2.6</dd> </dl> </li> </ul> <a name="toString--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>toString</h4> <pre>public abstract <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> toString()</pre> <div class="block">Method that will produce (as of Jackson 2.10) valid JSON using default settings of databind, as String. If you want other kinds of JSON output (or output formatted using one of other Jackson-supported data formats) make sure to use <a href="../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind"><code>ObjectMapper</code></a> or <a href="../../../../com/fasterxml/jackson/databind/ObjectWriter.html" title="class in com.fasterxml.jackson.databind"><code>ObjectWriter</code></a> to serialize an instance, for example: <pre> String json = objectMapper.writeValueAsString(rootNode); </pre> <p> Note: method defined as abstract to ensure all implementation classes explicitly implement method, instead of relying on <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang"><code>Object.toString()</code></a> definition.</div> <dl> <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> <dd><code><a href="https://docs.oracle.com/javase/8/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="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd> </dl> </li> </ul> <a name="toPrettyString--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>toPrettyString</h4> <pre>public <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> toPrettyString()</pre> <div class="block">Alternative to <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#toString--"><code>toString()</code></a> that will serialize this node using Jackson default pretty-printer.</div> <dl> <dt><span class="simpleTagLabel">Since:</span></dt> <dd>2.10</dd> </dl> </li> </ul> <a name="equals-java.lang.Object-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>equals</h4> <pre>public abstract boolean equals(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> o)</pre> <div class="block">Equality for node objects is defined as full (deep) value equality. This means that it is possible to compare complete JSON trees for equality by comparing equality of root nodes. <p> Note: marked as abstract to ensure all implementation classes define it properly and not rely on definition from <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang"><code>Object</code></a>.</div> <dl> <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> <dd><code><a href="https://docs.oracle.com/javase/8/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="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd> </dl> </li> </ul> <a name="Z:Z_this--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>_this</h4> <pre>protected <T extends <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>> T _this()</pre> </li> </ul> <a name="Z:Z_reportRequiredViolation-java.lang.String-java.lang.Object...-"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>_reportRequiredViolation</h4> <pre>protected <T> T _reportRequiredViolation(<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> msgTemplate, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>... args)</pre> <div class="block">Helper method that throws <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang"><code>IllegalArgumentException</code></a> as a result of violating "required-constraint" for this node (for <a href="../../../../com/fasterxml/jackson/databind/JsonNode.html#required-java.lang.String-"><code>required(java.lang.String)</code></a> or related methods).</div> </li> </ul> </li> </ul> </li> </ul> </div> </div> <!-- ========= END OF CLASS DATA ========= --> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a name="navbar.bottom"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.bottom.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="class-use/JsonNode.html">Use</a></li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../index-all.html">Index</a></li> <li><a href="../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../../com/fasterxml/jackson/databind/JsonMappingException.Reference.html" title="class in com.fasterxml.jackson.databind"><span class="typeNameLink">Prev Class</span></a></li> <li><a href="../../../../com/fasterxml/jackson/databind/JsonSerializable.html" title="interface in com.fasterxml.jackson.databind"><span class="typeNameLink">Next Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../../index.html?com/fasterxml/jackson/databind/JsonNode.html" target="_top">Frames</a></li> <li><a href="JsonNode.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="../../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_bottom"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <div> <ul class="subNavList"> <li>Summary: </li> <li>Nested | </li> <li>Field | </li> <li><a href="#constructor.summary">Constr</a> | </li> <li><a href="#method.summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail: </li> <li>Field | </li> <li><a href="#constructor.detail">Constr</a> | </li> <li><a href="#method.detail">Method</a></li> </ul> </div> <a name="skip.navbar.bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> <p class="legalCopy"><small>Copyright © 2008–2019 <a href="http://fasterxml.com/">FasterXML</a>. All rights reserved.</small></p> </body> </html>