1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2<!--NewPage--> 3<HTML> 4<HEAD> 5<!-- Generated by javadoc (build 1.6.0_29) on Mon Mar 26 19:07:10 PDT 2012 --> 6<META http-equiv="Content-Type" content="text/html; charset=UTF-8"> 7<TITLE> 8JsonNode (jackson-databind 2.0.0 API) 9</TITLE> 10 11<META NAME="date" CONTENT="2012-03-26"> 12 13<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> 14 15<SCRIPT type="text/javascript"> 16function windowTitle() 17{ 18 if (location.href.indexOf('is-external=true') == -1) { 19 parent.document.title="JsonNode (jackson-databind 2.0.0 API)"; 20 } 21} 22</SCRIPT> 23<NOSCRIPT> 24</NOSCRIPT> 25 26</HEAD> 27 28<BODY BGCOLOR="white" onload="windowTitle();"> 29<HR> 30 31 32<!-- ========= START OF TOP NAVBAR ======= --> 33<A NAME="navbar_top"><!-- --></A> 34<A HREF="#skip-navbar_top" title="Skip navigation links"></A> 35<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 36<TR> 37<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 38<A NAME="navbar_top_firstrow"><!-- --></A> 39<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 40 <TR ALIGN="center" VALIGN="top"> 41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 43 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/JsonNode.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> 45 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 46 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 47 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 48 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 49 </TR> 50</TABLE> 51</TD> 52<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 53</EM> 54</TD> 55</TR> 56 57<TR> 58<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 59 <A HREF="../../../../com/fasterxml/jackson/databind/JsonMappingException.Reference.html" title="class in com.fasterxml.jackson.databind"><B>PREV CLASS</B></A> 60 <A HREF="../../../../com/fasterxml/jackson/databind/JsonSerializable.html" title="interface in com.fasterxml.jackson.databind"><B>NEXT CLASS</B></A></FONT></TD> 61<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 62 <A HREF="../../../../index.html?com/fasterxml/jackson/databind/JsonNode.html" target="_top"><B>FRAMES</B></A> 63 <A HREF="JsonNode.html" target="_top"><B>NO FRAMES</B></A> 64 <SCRIPT type="text/javascript"> 65 <!-- 66 if(window==top) { 67 document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); 68 } 69 //--> 70</SCRIPT> 71<NOSCRIPT> 72 <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> 73</NOSCRIPT> 74 75 76</FONT></TD> 77</TR> 78<TR> 79<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 80 SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> 81<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 82DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> 83</TR> 84</TABLE> 85<A NAME="skip-navbar_top"></A> 86<!-- ========= END OF TOP NAVBAR ========= --> 87 88<HR> 89<!-- ======== START OF CLASS DATA ======== --> 90<H2> 91<FONT SIZE="-1"> 92com.fasterxml.jackson.databind</FONT> 93<BR> 94Class JsonNode</H2> 95<PRE> 96<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A> 97 <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.fasterxml.jackson.databind.JsonNode</B> 98</PRE> 99<DL> 100<DT><B>All Implemented Interfaces:</B> <DD>com.fasterxml.jackson.core.TreeNode, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</A><<A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A>></DD> 101</DL> 102<DL> 103<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html" title="class in com.fasterxml.jackson.databind.node">BaseJsonNode</A></DD> 104</DL> 105<HR> 106<DL> 107<DT><PRE>public abstract class <B>JsonNode</B><DT>extends <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A><DT>implements com.fasterxml.jackson.core.TreeNode, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</A><<A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A>></DL> 108</PRE> 109 110<P> 111Base class for all JSON nodes, which form the basis of JSON 112 Tree Model that Jackson implements. 113 One way to think of these nodes is to consider them 114 similar to DOM nodes in XML DOM trees. 115<p> 116 As a general design rule, most accessors ("getters") are included 117 in this base class, to allow for traversing structure without 118 type casts. Most mutators, however, need to be accessed through 119 specific sub-classes (such as <code>ObjectNode</code> 120 and <code>ArrayNode</code>). 121 This seems sensible because proper type 122 information is generally available when building or modifying 123 trees, but less often when reading a tree (newly built from 124 parsed JSON content). 125<p> 126 Actual concrete sub-classes can be found from package 127 <A HREF="../../../../com/fasterxml/jackson/databind/node/package-summary.html"><CODE>com.fasterxml.jackson.databind.node</CODE></A>. 128<P> 129 130<P> 131<HR> 132 133<P> 134<!-- =========== FIELD SUMMARY =========== --> 135 136<A NAME="field_summary"><!-- --></A> 137<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 138<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 139<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 140<B>Field Summary</B></FONT></TH> 141</TR> 142<TR BGCOLOR="white" CLASS="TableRowColor"> 143<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 144<CODE>protected static <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A>></CODE></FONT></TD> 145<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#NO_NODES">NO_NODES</A></B></CODE> 146 147<BR> 148 </TD> 149</TR> 150<TR BGCOLOR="white" CLASS="TableRowColor"> 151<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 152<CODE>protected static <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>></CODE></FONT></TD> 153<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#NO_STRINGS">NO_STRINGS</A></B></CODE> 154 155<BR> 156 </TD> 157</TR> 158</TABLE> 159 160<!-- ======== CONSTRUCTOR SUMMARY ======== --> 161 162<A NAME="constructor_summary"><!-- --></A> 163<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 164<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 165<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 166<B>Constructor Summary</B></FONT></TH> 167</TR> 168<TR BGCOLOR="white" CLASS="TableRowColor"> 169<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 170<CODE>protected </CODE></FONT></TD> 171<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#JsonNode()">JsonNode</A></B>()</CODE> 172 173<BR> 174 </TD> 175</TR> 176</TABLE> 177 178<!-- ========== METHOD SUMMARY =========== --> 179 180<A NAME="method_summary"><!-- --></A> 181<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 182<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 183<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 184<B>Method Summary</B></FONT></TH> 185</TR> 186<TR BGCOLOR="white" CLASS="TableRowColor"> 187<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 188<CODE> boolean</CODE></FONT></TD> 189<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#asBoolean()">asBoolean</A></B>()</CODE> 190 191<BR> 192 Method that will try to convert value of this node to a Java <b>boolean</b>.</TD> 193</TR> 194<TR BGCOLOR="white" CLASS="TableRowColor"> 195<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 196<CODE> boolean</CODE></FONT></TD> 197<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#asBoolean(boolean)">asBoolean</A></B>(boolean defaultValue)</CODE> 198 199<BR> 200 Method that will try to convert value of this node to a Java <b>boolean</b>.</TD> 201</TR> 202<TR BGCOLOR="white" CLASS="TableRowColor"> 203<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 204<CODE> double</CODE></FONT></TD> 205<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#asDouble()">asDouble</A></B>()</CODE> 206 207<BR> 208 Method that will try to convert value of this node to a Java <b>double</b>.</TD> 209</TR> 210<TR BGCOLOR="white" CLASS="TableRowColor"> 211<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 212<CODE> double</CODE></FONT></TD> 213<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#asDouble(double)">asDouble</A></B>(double defaultValue)</CODE> 214 215<BR> 216 Method that will try to convert value of this node to a Java <b>double</b>.</TD> 217</TR> 218<TR BGCOLOR="white" CLASS="TableRowColor"> 219<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 220<CODE> int</CODE></FONT></TD> 221<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#asInt()">asInt</A></B>()</CODE> 222 223<BR> 224 Method that will try to convert value of this node to a Java <b>int</b>.</TD> 225</TR> 226<TR BGCOLOR="white" CLASS="TableRowColor"> 227<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 228<CODE> int</CODE></FONT></TD> 229<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#asInt(int)">asInt</A></B>(int defaultValue)</CODE> 230 231<BR> 232 Method that will try to convert value of this node to a Java <b>int</b>.</TD> 233</TR> 234<TR BGCOLOR="white" CLASS="TableRowColor"> 235<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 236<CODE> long</CODE></FONT></TD> 237<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#asLong()">asLong</A></B>()</CODE> 238 239<BR> 240 Method that will try to convert value of this node to a Java <b>long</b>.</TD> 241</TR> 242<TR BGCOLOR="white" CLASS="TableRowColor"> 243<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 244<CODE> long</CODE></FONT></TD> 245<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#asLong(long)">asLong</A></B>(long defaultValue)</CODE> 246 247<BR> 248 Method that will try to convert value of this node to a Java <b>long</b>.</TD> 249</TR> 250<TR BGCOLOR="white" CLASS="TableRowColor"> 251<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 252<CODE>abstract <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> 253<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#asText()">asText</A></B>()</CODE> 254 255<BR> 256 Method that will return a valid String representation of 257 the container value, if the node is a value node 258 (method <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isValueNode()"><CODE>isValueNode()</CODE></A> returns true), 259 otherwise empty String.</TD> 260</TR> 261<TR BGCOLOR="white" CLASS="TableRowColor"> 262<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 263<CODE>abstract com.fasterxml.jackson.core.JsonToken</CODE></FONT></TD> 264<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#asToken()">asToken</A></B>()</CODE> 265 266<BR> 267 Method that can be used for efficient type detection 268 when using stream abstraction for traversing nodes.</TD> 269</TR> 270<TR BGCOLOR="white" CLASS="TableRowColor"> 271<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 272<CODE> <A HREF="http://docs.oracle.com/javase/6/docs/api/java/math/BigInteger.html?is-external=true" title="class or interface in java.math">BigInteger</A></CODE></FONT></TD> 273<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#bigIntegerValue()">bigIntegerValue</A></B>()</CODE> 274 275<BR> 276 </TD> 277</TR> 278<TR BGCOLOR="white" CLASS="TableRowColor"> 279<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 280<CODE> byte[]</CODE></FONT></TD> 281<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#binaryValue()">binaryValue</A></B>()</CODE> 282 283<BR> 284 Method to use for accessing binary content of binary nodes (nodes 285 for which <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isBinary()"><CODE>isBinary()</CODE></A> returns true); or for Text Nodes 286 (ones for which <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#textValue()"><CODE>textValue()</CODE></A> returns non-null value), 287 to read decoded base64 data.</TD> 288</TR> 289<TR BGCOLOR="white" CLASS="TableRowColor"> 290<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 291<CODE> boolean</CODE></FONT></TD> 292<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#booleanValue()">booleanValue</A></B>()</CODE> 293 294<BR> 295 Method to use for accessing JSON boolean values (value 296 literals 'true' and 'false').</TD> 297</TR> 298<TR BGCOLOR="white" CLASS="TableRowColor"> 299<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 300<CODE> boolean</CODE></FONT></TD> 301<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#canConvertToInt()">canConvertToInt</A></B>()</CODE> 302 303<BR> 304 Method that can be used to check whether this node is a numeric 305 node (<A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><CODE>isNumber()</CODE></A> would return true) AND its value fits 306 within Java's 32-bit signed integer type, <code>int</code>.</TD> 307</TR> 308<TR BGCOLOR="white" CLASS="TableRowColor"> 309<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 310<CODE> boolean</CODE></FONT></TD> 311<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#canConvertToLong()">canConvertToLong</A></B>()</CODE> 312 313<BR> 314 Method that can be used to check whether this node is a numeric 315 node (<A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><CODE>isNumber()</CODE></A> would return true) AND its value fits 316 within Java's 64-bit signed integer type, <code>long</code>.</TD> 317</TR> 318<TR BGCOLOR="white" CLASS="TableRowColor"> 319<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 320<CODE> <A HREF="http://docs.oracle.com/javase/6/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math">BigDecimal</A></CODE></FONT></TD> 321<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#decimalValue()">decimalValue</A></B>()</CODE> 322 323<BR> 324 </TD> 325</TR> 326<TR BGCOLOR="white" CLASS="TableRowColor"> 327<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 328<CODE>abstract 329<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> 330<TR ALIGN="right" VALIGN=""> 331<TD NOWRAP><FONT SIZE="-1"> 332<CODE><T extends <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A>> 333<BR> 334T</CODE></FONT></TD> 335</TR> 336</TABLE> 337</CODE></FONT></TD> 338<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#deepCopy()">deepCopy</A></B>()</CODE> 339 340<BR> 341 Method that can be called to get a node that is guaranteed 342 not to allow changing of this node through mutators on 343 this node or any of its children.</TD> 344</TR> 345<TR BGCOLOR="white" CLASS="TableRowColor"> 346<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 347<CODE> double</CODE></FONT></TD> 348<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#doubleValue()">doubleValue</A></B>()</CODE> 349 350<BR> 351 </TD> 352</TR> 353<TR BGCOLOR="white" CLASS="TableRowColor"> 354<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 355<CODE> <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</A><<A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A>></CODE></FONT></TD> 356<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#elements()">elements</A></B>()</CODE> 357 358<BR> 359 Method for accessing all value nodes of this Node, iff 360 this node is a JSON Array or Object node.</TD> 361</TR> 362<TR BGCOLOR="white" CLASS="TableRowColor"> 363<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 364<CODE>abstract boolean</CODE></FONT></TD> 365<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#equals(java.lang.Object)">equals</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> o)</CODE> 366 367<BR> 368 Equality for node objects is defined as full (deep) value 369 equality.</TD> 370</TR> 371<TR BGCOLOR="white" CLASS="TableRowColor"> 372<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 373<CODE> <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</A><<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>></CODE></FONT></TD> 374<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#fieldNames()">fieldNames</A></B>()</CODE> 375 376<BR> 377 Method for accessing names of all fields for this Node, iff 378 this node is a JSON Object node.</TD> 379</TR> 380<TR BGCOLOR="white" CLASS="TableRowColor"> 381<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 382<CODE> <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</A><<A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/Map.Entry.html?is-external=true" title="class or interface in java.util">Map.Entry</A><<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>,<A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A>>></CODE></FONT></TD> 383<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#fields()">fields</A></B>()</CODE> 384 385<BR> 386 </TD> 387</TR> 388<TR BGCOLOR="white" CLASS="TableRowColor"> 389<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 390<CODE>abstract <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A></CODE></FONT></TD> 391<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#findParent(java.lang.String)">findParent</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> fieldName)</CODE> 392 393<BR> 394 Method for finding a JSON Object that contains specified field, 395 within this node or its descendants.</TD> 396</TR> 397<TR BGCOLOR="white" CLASS="TableRowColor"> 398<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 399<CODE> <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A>></CODE></FONT></TD> 400<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#findParents(java.lang.String)">findParents</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> fieldName)</CODE> 401 402<BR> 403 Method for finding a JSON Object that contains specified field, 404 within this node or its descendants.</TD> 405</TR> 406<TR BGCOLOR="white" CLASS="TableRowColor"> 407<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 408<CODE>abstract <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A>></CODE></FONT></TD> 409<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#findParents(java.lang.String, java.util.List)">findParents</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> fieldName, 410 <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A>> foundSoFar)</CODE> 411 412<BR> 413 </TD> 414</TR> 415<TR BGCOLOR="white" CLASS="TableRowColor"> 416<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 417<CODE>abstract <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A></CODE></FONT></TD> 418<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#findPath(java.lang.String)">findPath</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> fieldName)</CODE> 419 420<BR> 421 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 422 "missing node" instead of null if no field is found.</TD> 423</TR> 424<TR BGCOLOR="white" CLASS="TableRowColor"> 425<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 426<CODE>abstract <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A></CODE></FONT></TD> 427<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#findValue(java.lang.String)">findValue</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> fieldName)</CODE> 428 429<BR> 430 Method for finding a JSON Object field with specified name in this 431 node or its child nodes, and returning value it has.</TD> 432</TR> 433<TR BGCOLOR="white" CLASS="TableRowColor"> 434<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 435<CODE> <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A>></CODE></FONT></TD> 436<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#findValues(java.lang.String)">findValues</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> fieldName)</CODE> 437 438<BR> 439 Method for finding JSON Object fields with specified name, and returning 440 found ones as a List.</TD> 441</TR> 442<TR BGCOLOR="white" CLASS="TableRowColor"> 443<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 444<CODE>abstract <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A>></CODE></FONT></TD> 445<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#findValues(java.lang.String, java.util.List)">findValues</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> fieldName, 446 <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A>> foundSoFar)</CODE> 447 448<BR> 449 </TD> 450</TR> 451<TR BGCOLOR="white" CLASS="TableRowColor"> 452<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 453<CODE> <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>></CODE></FONT></TD> 454<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#findValuesAsText(java.lang.String)">findValuesAsText</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> fieldName)</CODE> 455 456<BR> 457 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 458 values into Strings, calling <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#asText()"><CODE>asText()</CODE></A>.</TD> 459</TR> 460<TR BGCOLOR="white" CLASS="TableRowColor"> 461<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 462<CODE>abstract <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>></CODE></FONT></TD> 463<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#findValuesAsText(java.lang.String, java.util.List)">findValuesAsText</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> fieldName, 464 <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>> foundSoFar)</CODE> 465 466<BR> 467 </TD> 468</TR> 469<TR BGCOLOR="white" CLASS="TableRowColor"> 470<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 471<CODE> <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A></CODE></FONT></TD> 472<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#get(int)">get</A></B>(int index)</CODE> 473 474<BR> 475 Method for accessing value of the specified element of 476 an array node.</TD> 477</TR> 478<TR BGCOLOR="white" CLASS="TableRowColor"> 479<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 480<CODE> <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A></CODE></FONT></TD> 481<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#get(java.lang.String)">get</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> fieldName)</CODE> 482 483<BR> 484 Method for accessing value of the specified field of 485 an object node.</TD> 486</TR> 487<TR BGCOLOR="white" CLASS="TableRowColor"> 488<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 489<CODE> boolean</CODE></FONT></TD> 490<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#has(int)">has</A></B>(int index)</CODE> 491 492<BR> 493 Method that allows checking whether this node is JSON Array node 494 and contains a value for specified index 495 If this is the case 496 (including case of specified indexing having null as value), returns true; 497 otherwise returns false.</TD> 498</TR> 499<TR BGCOLOR="white" CLASS="TableRowColor"> 500<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 501<CODE> boolean</CODE></FONT></TD> 502<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#has(java.lang.String)">has</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> fieldName)</CODE> 503 504<BR> 505 Method that allows checking whether this node is JSON Object node 506 and contains value for specified property.</TD> 507</TR> 508<TR BGCOLOR="white" CLASS="TableRowColor"> 509<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 510<CODE> int</CODE></FONT></TD> 511<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#intValue()">intValue</A></B>()</CODE> 512 513<BR> 514 Returns integer value for this node, <b>if and only if</b> 515 this node is numeric (<A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><CODE>isNumber()</CODE></A> returns true).</TD> 516</TR> 517<TR BGCOLOR="white" CLASS="TableRowColor"> 518<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 519<CODE> boolean</CODE></FONT></TD> 520<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isArray()">isArray</A></B>()</CODE> 521 522<BR> 523 </TD> 524</TR> 525<TR BGCOLOR="white" CLASS="TableRowColor"> 526<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 527<CODE> boolean</CODE></FONT></TD> 528<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isBigDecimal()">isBigDecimal</A></B>()</CODE> 529 530<BR> 531 </TD> 532</TR> 533<TR BGCOLOR="white" CLASS="TableRowColor"> 534<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 535<CODE> boolean</CODE></FONT></TD> 536<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isBigInteger()">isBigInteger</A></B>()</CODE> 537 538<BR> 539 </TD> 540</TR> 541<TR BGCOLOR="white" CLASS="TableRowColor"> 542<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 543<CODE> boolean</CODE></FONT></TD> 544<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isBinary()">isBinary</A></B>()</CODE> 545 546<BR> 547 Method that can be used to check if this node represents 548 binary data (Base64 encoded).</TD> 549</TR> 550<TR BGCOLOR="white" CLASS="TableRowColor"> 551<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 552<CODE> boolean</CODE></FONT></TD> 553<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isBoolean()">isBoolean</A></B>()</CODE> 554 555<BR> 556 Method that can be used to check if this node was created from 557 JSON boolean value (literals "true" and "false").</TD> 558</TR> 559<TR BGCOLOR="white" CLASS="TableRowColor"> 560<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 561<CODE> boolean</CODE></FONT></TD> 562<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isContainerNode()">isContainerNode</A></B>()</CODE> 563 564<BR> 565 Method that returns true for container nodes: Arrays and Objects.</TD> 566</TR> 567<TR BGCOLOR="white" CLASS="TableRowColor"> 568<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 569<CODE> boolean</CODE></FONT></TD> 570<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isDouble()">isDouble</A></B>()</CODE> 571 572<BR> 573 </TD> 574</TR> 575<TR BGCOLOR="white" CLASS="TableRowColor"> 576<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 577<CODE> boolean</CODE></FONT></TD> 578<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isFloatingPointNumber()">isFloatingPointNumber</A></B>()</CODE> 579 580<BR> 581 </TD> 582</TR> 583<TR BGCOLOR="white" CLASS="TableRowColor"> 584<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 585<CODE> boolean</CODE></FONT></TD> 586<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isInt()">isInt</A></B>()</CODE> 587 588<BR> 589 Method that can be used to check whether contained value 590 is a number represented as Java <code>int</code>.</TD> 591</TR> 592<TR BGCOLOR="white" CLASS="TableRowColor"> 593<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 594<CODE> boolean</CODE></FONT></TD> 595<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isIntegralNumber()">isIntegralNumber</A></B>()</CODE> 596 597<BR> 598 </TD> 599</TR> 600<TR BGCOLOR="white" CLASS="TableRowColor"> 601<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 602<CODE> boolean</CODE></FONT></TD> 603<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isLong()">isLong</A></B>()</CODE> 604 605<BR> 606 Method that can be used to check whether contained value 607 is a number represented as Java <code>long</code>.</TD> 608</TR> 609<TR BGCOLOR="white" CLASS="TableRowColor"> 610<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 611<CODE> boolean</CODE></FONT></TD> 612<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode()">isMissingNode</A></B>()</CODE> 613 614<BR> 615 Method that returns true for "virtual" nodes which represent 616 missing entries constructed by path accessor methods when 617 there is no actual node matching given criteria.</TD> 618</TR> 619<TR BGCOLOR="white" CLASS="TableRowColor"> 620<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 621<CODE> boolean</CODE></FONT></TD> 622<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNull()">isNull</A></B>()</CODE> 623 624<BR> 625 Method that can be used to check if this node was created from 626 JSON literal null value.</TD> 627</TR> 628<TR BGCOLOR="white" CLASS="TableRowColor"> 629<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 630<CODE> boolean</CODE></FONT></TD> 631<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()">isNumber</A></B>()</CODE> 632 633<BR> 634 </TD> 635</TR> 636<TR BGCOLOR="white" CLASS="TableRowColor"> 637<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 638<CODE> boolean</CODE></FONT></TD> 639<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isObject()">isObject</A></B>()</CODE> 640 641<BR> 642 </TD> 643</TR> 644<TR BGCOLOR="white" CLASS="TableRowColor"> 645<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 646<CODE> boolean</CODE></FONT></TD> 647<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isPojo()">isPojo</A></B>()</CODE> 648 649<BR> 650 Method that can be used to check if the node is a wrapper 651 for a POJO ("Plain Old Java Object" aka "bean".</TD> 652</TR> 653<TR BGCOLOR="white" CLASS="TableRowColor"> 654<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 655<CODE> boolean</CODE></FONT></TD> 656<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isTextual()">isTextual</A></B>()</CODE> 657 658<BR> 659 </TD> 660</TR> 661<TR BGCOLOR="white" CLASS="TableRowColor"> 662<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 663<CODE> boolean</CODE></FONT></TD> 664<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isValueNode()">isValueNode</A></B>()</CODE> 665 666<BR> 667 Method that returns true for all value nodes: ones that 668 are not containers, and that do not represent "missing" nodes 669 in the path.</TD> 670</TR> 671<TR BGCOLOR="white" CLASS="TableRowColor"> 672<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 673<CODE> <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</A><<A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A>></CODE></FONT></TD> 674<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#iterator()">iterator</A></B>()</CODE> 675 676<BR> 677 Same as calling <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#elements()"><CODE>elements()</CODE></A>; implemented so that 678 convenience "for-each" loop can be used for looping over elements 679 of JSON Array constructs.</TD> 680</TR> 681<TR BGCOLOR="white" CLASS="TableRowColor"> 682<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 683<CODE> long</CODE></FONT></TD> 684<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#longValue()">longValue</A></B>()</CODE> 685 686<BR> 687 </TD> 688</TR> 689<TR BGCOLOR="white" CLASS="TableRowColor"> 690<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 691<CODE>abstract com.fasterxml.jackson.core.JsonParser.NumberType</CODE></FONT></TD> 692<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#numberType()">numberType</A></B>()</CODE> 693 694<BR> 695 If this node is a numeric type (as per <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><CODE>isNumber()</CODE></A>), 696 returns native type that node uses to store the numeric value; 697 otherwise returns null.</TD> 698</TR> 699<TR BGCOLOR="white" CLASS="TableRowColor"> 700<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 701<CODE> <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Number.html?is-external=true" title="class or interface in java.lang">Number</A></CODE></FONT></TD> 702<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#numberValue()">numberValue</A></B>()</CODE> 703 704<BR> 705 Returns numeric value for this node, <b>if and only if</b> 706 this node is numeric (<A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><CODE>isNumber()</CODE></A> returns true); otherwise 707 returns null</TD> 708</TR> 709<TR BGCOLOR="white" CLASS="TableRowColor"> 710<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 711<CODE>abstract <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A></CODE></FONT></TD> 712<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#path(int)">path</A></B>(int index)</CODE> 713 714<BR> 715 This method is similar to <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#get(int)"><CODE>get(int)</CODE></A>, except 716 that instead of returning null if no such element exists (due 717 to index being out of range, or this node not being an array), 718 a "missing node" (node that returns true for 719 <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode()"><CODE>isMissingNode()</CODE></A>) will be returned.</TD> 720</TR> 721<TR BGCOLOR="white" CLASS="TableRowColor"> 722<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 723<CODE>abstract <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A></CODE></FONT></TD> 724<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#path(java.lang.String)">path</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> fieldName)</CODE> 725 726<BR> 727 This method is similar to <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#get(java.lang.String)"><CODE>get(String)</CODE></A>, except 728 that instead of returning null if no such value exists (due 729 to this node not being an object, or object not having value 730 for the specified field), 731 a "missing node" (node that returns true for 732 <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode()"><CODE>isMissingNode()</CODE></A>) will be returned.</TD> 733</TR> 734<TR BGCOLOR="white" CLASS="TableRowColor"> 735<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 736<CODE> int</CODE></FONT></TD> 737<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#size()">size</A></B>()</CODE> 738 739<BR> 740 Method that returns number of child nodes this node contains: 741 for Array nodes, number of child elements, for Object nodes, 742 number of fields, and for all other nodes 0.</TD> 743</TR> 744<TR BGCOLOR="white" CLASS="TableRowColor"> 745<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 746<CODE> <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> 747<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#textValue()">textValue</A></B>()</CODE> 748 749<BR> 750 Method to use for accessing String values.</TD> 751</TR> 752<TR BGCOLOR="white" CLASS="TableRowColor"> 753<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 754<CODE>abstract <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A></CODE></FONT></TD> 755<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#toString()">toString</A></B>()</CODE> 756 757<BR> 758 759 Note: marked as abstract to ensure all implementation 760 classes define it properly.</TD> 761</TR> 762<TR BGCOLOR="white" CLASS="TableRowColor"> 763<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 764<CODE>abstract com.fasterxml.jackson.core.JsonParser</CODE></FONT></TD> 765<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#traverse()">traverse</A></B>()</CODE> 766 767<BR> 768 Method for constructing a <CODE>JsonParser</CODE> instance for 769 iterating over contents of the tree that this 770 node is root of.</TD> 771</TR> 772<TR BGCOLOR="white" CLASS="TableRowColor"> 773<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 774<CODE> <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A></CODE></FONT></TD> 775<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#with(java.lang.String)">with</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> propertyName)</CODE> 776 777<BR> 778 Method that can be called on Object nodes, to access a property 779 that has Object value; or if no such property exists, to create, 780 add and return such Object node.</TD> 781</TR> 782<TR BGCOLOR="white" CLASS="TableRowColor"> 783<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 784<CODE> <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A></CODE></FONT></TD> 785<TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#withArray(java.lang.String)">withArray</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> propertyName)</CODE> 786 787<BR> 788 Method that can be called on Object nodes, to access a property 789 that has <code>Array</code> value; or if no such property exists, to create, 790 add and return such Array node.</TD> 791</TR> 792</TABLE> 793 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> 794<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 795<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 796<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH> 797</TR> 798<TR BGCOLOR="white" CLASS="TableRowColor"> 799<TD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD> 800</TR> 801</TABLE> 802 803<P> 804 805<!-- ============ FIELD DETAIL =========== --> 806 807<A NAME="field_detail"><!-- --></A> 808<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 809<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 810<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 811<B>Field Detail</B></FONT></TH> 812</TR> 813</TABLE> 814 815<A NAME="NO_NODES"><!-- --></A><H3> 816NO_NODES</H3> 817<PRE> 818protected static final <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A>> <B>NO_NODES</B></PRE> 819<DL> 820<DL> 821</DL> 822</DL> 823<HR> 824 825<A NAME="NO_STRINGS"><!-- --></A><H3> 826NO_STRINGS</H3> 827<PRE> 828protected static final <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>> <B>NO_STRINGS</B></PRE> 829<DL> 830<DL> 831</DL> 832</DL> 833 834<!-- ========= CONSTRUCTOR DETAIL ======== --> 835 836<A NAME="constructor_detail"><!-- --></A> 837<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 838<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 839<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 840<B>Constructor Detail</B></FONT></TH> 841</TR> 842</TABLE> 843 844<A NAME="JsonNode()"><!-- --></A><H3> 845JsonNode</H3> 846<PRE> 847protected <B>JsonNode</B>()</PRE> 848<DL> 849</DL> 850 851<!-- ============ METHOD DETAIL ========== --> 852 853<A NAME="method_detail"><!-- --></A> 854<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 855<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 856<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 857<B>Method Detail</B></FONT></TH> 858</TR> 859</TABLE> 860 861<A NAME="deepCopy()"><!-- --></A><H3> 862deepCopy</H3> 863<PRE> 864public abstract <T extends <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A>> T <B>deepCopy</B>()</PRE> 865<DL> 866<DD>Method that can be called to get a node that is guaranteed 867 not to allow changing of this node through mutators on 868 this node or any of its children. 869 This means it can either make a copy of this node (and all 870 mutable children and grand children nodes), or node itself 871 if it is immutable. 872<p> 873 Note: return type is guaranteed to have same type as the 874 node method is called on; which is why method is declared 875 with local generic type. 876<P> 877<DD><DL> 878</DL> 879</DD> 880<DD><DL> 881 882<DT><B>Returns:</B><DD>Node that is either a copy of this node (and all non-leaf 883 children); or, for immutable leaf nodes, node itself.<DT><B>Since:</B></DT> 884 <DD>2.0</DD> 885</DL> 886</DD> 887</DL> 888<HR> 889 890<A NAME="isValueNode()"><!-- --></A><H3> 891isValueNode</H3> 892<PRE> 893public boolean <B>isValueNode</B>()</PRE> 894<DL> 895<DD>Method that returns true for all value nodes: ones that 896 are not containers, and that do not represent "missing" nodes 897 in the path. Such value nodes represent String, Number, Boolean 898 and null values from JSON. 899<p> 900 Note: one and only one of methods <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isValueNode()"><CODE>isValueNode()</CODE></A>, 901 <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isContainerNode()"><CODE>isContainerNode()</CODE></A> and <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode()"><CODE>isMissingNode()</CODE></A> ever 902 returns true for any given node. 903<P> 904<DD><DL> 905</DL> 906</DD> 907<DD><DL> 908</DL> 909</DD> 910</DL> 911<HR> 912 913<A NAME="isContainerNode()"><!-- --></A><H3> 914isContainerNode</H3> 915<PRE> 916public boolean <B>isContainerNode</B>()</PRE> 917<DL> 918<DD>Method that returns true for container nodes: Arrays and Objects. 919<p> 920 Note: one and only one of methods <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isValueNode()"><CODE>isValueNode()</CODE></A>, 921 <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isContainerNode()"><CODE>isContainerNode()</CODE></A> and <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode()"><CODE>isMissingNode()</CODE></A> ever 922 returns true for any given node. 923<P> 924<DD><DL> 925</DL> 926</DD> 927<DD><DL> 928</DL> 929</DD> 930</DL> 931<HR> 932 933<A NAME="isMissingNode()"><!-- --></A><H3> 934isMissingNode</H3> 935<PRE> 936public boolean <B>isMissingNode</B>()</PRE> 937<DL> 938<DD>Method that returns true for "virtual" nodes which represent 939 missing entries constructed by path accessor methods when 940 there is no actual node matching given criteria. 941<p> 942 Note: one and only one of methods <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isValueNode()"><CODE>isValueNode()</CODE></A>, 943 <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isContainerNode()"><CODE>isContainerNode()</CODE></A> and <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode()"><CODE>isMissingNode()</CODE></A> ever 944 returns true for any given node. 945<P> 946<DD><DL> 947</DL> 948</DD> 949<DD><DL> 950</DL> 951</DD> 952</DL> 953<HR> 954 955<A NAME="isArray()"><!-- --></A><H3> 956isArray</H3> 957<PRE> 958public boolean <B>isArray</B>()</PRE> 959<DL> 960<DD><DL> 961</DL> 962</DD> 963<DD><DL> 964 965<DT><B>Returns:</B><DD>True if this node represents JSON Array</DL> 966</DD> 967</DL> 968<HR> 969 970<A NAME="isObject()"><!-- --></A><H3> 971isObject</H3> 972<PRE> 973public boolean <B>isObject</B>()</PRE> 974<DL> 975<DD><DL> 976</DL> 977</DD> 978<DD><DL> 979 980<DT><B>Returns:</B><DD>True if this node represents JSON Object</DL> 981</DD> 982</DL> 983<HR> 984 985<A NAME="isPojo()"><!-- --></A><H3> 986isPojo</H3> 987<PRE> 988public boolean <B>isPojo</B>()</PRE> 989<DL> 990<DD>Method that can be used to check if the node is a wrapper 991 for a POJO ("Plain Old Java Object" aka "bean". 992 Returns true only for 993 instances of <code>POJONode</code>. 994<P> 995<DD><DL> 996</DL> 997</DD> 998<DD><DL> 999 1000<DT><B>Returns:</B><DD>True if this node wraps a POJO</DL> 1001</DD> 1002</DL> 1003<HR> 1004 1005<A NAME="isNumber()"><!-- --></A><H3> 1006isNumber</H3> 1007<PRE> 1008public boolean <B>isNumber</B>()</PRE> 1009<DL> 1010<DD><DL> 1011</DL> 1012</DD> 1013<DD><DL> 1014 1015<DT><B>Returns:</B><DD>True if this node represents a numeric JSON 1016 value</DL> 1017</DD> 1018</DL> 1019<HR> 1020 1021<A NAME="isIntegralNumber()"><!-- --></A><H3> 1022isIntegralNumber</H3> 1023<PRE> 1024public boolean <B>isIntegralNumber</B>()</PRE> 1025<DL> 1026<DD><DL> 1027</DL> 1028</DD> 1029<DD><DL> 1030 1031<DT><B>Returns:</B><DD>True if this node represents an integral (integer) 1032 numeric JSON value</DL> 1033</DD> 1034</DL> 1035<HR> 1036 1037<A NAME="isFloatingPointNumber()"><!-- --></A><H3> 1038isFloatingPointNumber</H3> 1039<PRE> 1040public boolean <B>isFloatingPointNumber</B>()</PRE> 1041<DL> 1042<DD><DL> 1043</DL> 1044</DD> 1045<DD><DL> 1046 1047<DT><B>Returns:</B><DD>True if this node represents a non-integral 1048 numeric JSON value</DL> 1049</DD> 1050</DL> 1051<HR> 1052 1053<A NAME="isInt()"><!-- --></A><H3> 1054isInt</H3> 1055<PRE> 1056public boolean <B>isInt</B>()</PRE> 1057<DL> 1058<DD>Method that can be used to check whether contained value 1059 is a number represented as Java <code>int</code>. 1060 Note, however, that even if this method returns false, it 1061 is possible that conversion would be possible from other numeric 1062 types -- to check if this is possible, use 1063 <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#canConvertToInt()"><CODE>canConvertToInt()</CODE></A> instead. 1064<P> 1065<DD><DL> 1066</DL> 1067</DD> 1068<DD><DL> 1069 1070<DT><B>Returns:</B><DD>True if the value contained by this node is stored as Java int</DL> 1071</DD> 1072</DL> 1073<HR> 1074 1075<A NAME="isLong()"><!-- --></A><H3> 1076isLong</H3> 1077<PRE> 1078public boolean <B>isLong</B>()</PRE> 1079<DL> 1080<DD>Method that can be used to check whether contained value 1081 is a number represented as Java <code>long</code>. 1082 Note, however, that even if this method returns false, it 1083 is possible that conversion would be possible from other numeric 1084 types -- to check if this is possible, use 1085 <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#canConvertToInt()"><CODE>canConvertToInt()</CODE></A> instead. 1086<P> 1087<DD><DL> 1088</DL> 1089</DD> 1090<DD><DL> 1091 1092<DT><B>Returns:</B><DD>True if the value contained by this node is stored as Java <code>long</code></DL> 1093</DD> 1094</DL> 1095<HR> 1096 1097<A NAME="isDouble()"><!-- --></A><H3> 1098isDouble</H3> 1099<PRE> 1100public boolean <B>isDouble</B>()</PRE> 1101<DL> 1102<DD><DL> 1103</DL> 1104</DD> 1105<DD><DL> 1106</DL> 1107</DD> 1108</DL> 1109<HR> 1110 1111<A NAME="isBigDecimal()"><!-- --></A><H3> 1112isBigDecimal</H3> 1113<PRE> 1114public boolean <B>isBigDecimal</B>()</PRE> 1115<DL> 1116<DD><DL> 1117</DL> 1118</DD> 1119<DD><DL> 1120</DL> 1121</DD> 1122</DL> 1123<HR> 1124 1125<A NAME="isBigInteger()"><!-- --></A><H3> 1126isBigInteger</H3> 1127<PRE> 1128public boolean <B>isBigInteger</B>()</PRE> 1129<DL> 1130<DD><DL> 1131</DL> 1132</DD> 1133<DD><DL> 1134</DL> 1135</DD> 1136</DL> 1137<HR> 1138 1139<A NAME="isTextual()"><!-- --></A><H3> 1140isTextual</H3> 1141<PRE> 1142public boolean <B>isTextual</B>()</PRE> 1143<DL> 1144<DD><DL> 1145</DL> 1146</DD> 1147<DD><DL> 1148</DL> 1149</DD> 1150</DL> 1151<HR> 1152 1153<A NAME="isBoolean()"><!-- --></A><H3> 1154isBoolean</H3> 1155<PRE> 1156public boolean <B>isBoolean</B>()</PRE> 1157<DL> 1158<DD>Method that can be used to check if this node was created from 1159 JSON boolean value (literals "true" and "false"). 1160<P> 1161<DD><DL> 1162</DL> 1163</DD> 1164<DD><DL> 1165</DL> 1166</DD> 1167</DL> 1168<HR> 1169 1170<A NAME="isNull()"><!-- --></A><H3> 1171isNull</H3> 1172<PRE> 1173public boolean <B>isNull</B>()</PRE> 1174<DL> 1175<DD>Method that can be used to check if this node was created from 1176 JSON literal null value. 1177<P> 1178<DD><DL> 1179</DL> 1180</DD> 1181<DD><DL> 1182</DL> 1183</DD> 1184</DL> 1185<HR> 1186 1187<A NAME="isBinary()"><!-- --></A><H3> 1188isBinary</H3> 1189<PRE> 1190public boolean <B>isBinary</B>()</PRE> 1191<DL> 1192<DD>Method that can be used to check if this node represents 1193 binary data (Base64 encoded). Although this will be externally 1194 written as JSON String value, <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isTextual()"><CODE>isTextual()</CODE></A> will 1195 return false if this method returns true. 1196<P> 1197<DD><DL> 1198</DL> 1199</DD> 1200<DD><DL> 1201 1202<DT><B>Returns:</B><DD>True if this node represents base64 encoded binary data</DL> 1203</DD> 1204</DL> 1205<HR> 1206 1207<A NAME="asToken()"><!-- --></A><H3> 1208asToken</H3> 1209<PRE> 1210public abstract com.fasterxml.jackson.core.JsonToken <B>asToken</B>()</PRE> 1211<DL> 1212<DD>Method that can be used for efficient type detection 1213 when using stream abstraction for traversing nodes. 1214 Will return the first <CODE>JsonToken</CODE> that equivalent 1215 stream event would produce (for most nodes there is just 1216 one token but for structured/container types multiple) 1217<P> 1218<DD><DL> 1219<DT><B>Specified by:</B><DD><CODE>asToken</CODE> in interface <CODE>com.fasterxml.jackson.core.TreeNode</CODE></DL> 1220</DD> 1221<DD><DL> 1222</DL> 1223</DD> 1224</DL> 1225<HR> 1226 1227<A NAME="numberType()"><!-- --></A><H3> 1228numberType</H3> 1229<PRE> 1230public abstract com.fasterxml.jackson.core.JsonParser.NumberType <B>numberType</B>()</PRE> 1231<DL> 1232<DD>If this node is a numeric type (as per <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><CODE>isNumber()</CODE></A>), 1233 returns native type that node uses to store the numeric value; 1234 otherwise returns null. 1235<P> 1236<DD><DL> 1237<DT><B>Specified by:</B><DD><CODE>numberType</CODE> in interface <CODE>com.fasterxml.jackson.core.TreeNode</CODE></DL> 1238</DD> 1239<DD><DL> 1240 1241<DT><B>Returns:</B><DD>Type of number contained, if any; or null if node does not 1242 contain numeric value.</DL> 1243</DD> 1244</DL> 1245<HR> 1246 1247<A NAME="canConvertToInt()"><!-- --></A><H3> 1248canConvertToInt</H3> 1249<PRE> 1250public boolean <B>canConvertToInt</B>()</PRE> 1251<DL> 1252<DD>Method that can be used to check whether this node is a numeric 1253 node (<A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><CODE>isNumber()</CODE></A> would return true) AND its value fits 1254 within Java's 32-bit signed integer type, <code>int</code>. 1255 Note that floating-point numbers are convertible if the integral 1256 part fits without overflow (as per standard Java coercion rules) 1257<P> 1258<DD><DL> 1259</DL> 1260</DD> 1261<DD><DL> 1262<DT><B>Since:</B></DT> 1263 <DD>2.0</DD> 1264</DL> 1265</DD> 1266</DL> 1267<HR> 1268 1269<A NAME="canConvertToLong()"><!-- --></A><H3> 1270canConvertToLong</H3> 1271<PRE> 1272public boolean <B>canConvertToLong</B>()</PRE> 1273<DL> 1274<DD>Method that can be used to check whether this node is a numeric 1275 node (<A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><CODE>isNumber()</CODE></A> would return true) AND its value fits 1276 within Java's 64-bit signed integer type, <code>long</code>. 1277 Note that floating-point numbers are convertible if the integral 1278 part fits without overflow (as per standard Java coercion rules) 1279<P> 1280<DD><DL> 1281</DL> 1282</DD> 1283<DD><DL> 1284<DT><B>Since:</B></DT> 1285 <DD>2.0</DD> 1286</DL> 1287</DD> 1288</DL> 1289<HR> 1290 1291<A NAME="textValue()"><!-- --></A><H3> 1292textValue</H3> 1293<PRE> 1294public <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>textValue</B>()</PRE> 1295<DL> 1296<DD>Method to use for accessing String values. 1297 Does <b>NOT</b> do any conversions for non-String value nodes; 1298 for non-String values (ones for which <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isTextual()"><CODE>isTextual()</CODE></A> returns 1299 false) null will be returned. 1300 For String values, null is never returned (but empty Strings may be) 1301<P> 1302<DD><DL> 1303</DL> 1304</DD> 1305<DD><DL> 1306 1307<DT><B>Returns:</B><DD>Textual value this node contains, iff it is a textual 1308 JSON node (comes from JSON String value entry)</DL> 1309</DD> 1310</DL> 1311<HR> 1312 1313<A NAME="binaryValue()"><!-- --></A><H3> 1314binaryValue</H3> 1315<PRE> 1316public byte[] <B>binaryValue</B>() 1317 throws <A HREF="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></PRE> 1318<DL> 1319<DD>Method to use for accessing binary content of binary nodes (nodes 1320 for which <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isBinary()"><CODE>isBinary()</CODE></A> returns true); or for Text Nodes 1321 (ones for which <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#textValue()"><CODE>textValue()</CODE></A> returns non-null value), 1322 to read decoded base64 data. 1323 For other types of nodes, returns null. 1324<P> 1325<DD><DL> 1326</DL> 1327</DD> 1328<DD><DL> 1329 1330<DT><B>Returns:</B><DD>Binary data this node contains, iff it is a binary 1331 node; null otherwise 1332<DT><B>Throws:</B> 1333<DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</A></CODE></DL> 1334</DD> 1335</DL> 1336<HR> 1337 1338<A NAME="booleanValue()"><!-- --></A><H3> 1339booleanValue</H3> 1340<PRE> 1341public boolean <B>booleanValue</B>()</PRE> 1342<DL> 1343<DD>Method to use for accessing JSON boolean values (value 1344 literals 'true' and 'false'). 1345 For other types, always returns false. 1346<P> 1347<DD><DL> 1348</DL> 1349</DD> 1350<DD><DL> 1351 1352<DT><B>Returns:</B><DD>Textual value this node contains, iff it is a textual 1353 json node (comes from JSON String value entry)</DL> 1354</DD> 1355</DL> 1356<HR> 1357 1358<A NAME="numberValue()"><!-- --></A><H3> 1359numberValue</H3> 1360<PRE> 1361public <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Number.html?is-external=true" title="class or interface in java.lang">Number</A> <B>numberValue</B>()</PRE> 1362<DL> 1363<DD>Returns numeric value for this node, <b>if and only if</b> 1364 this node is numeric (<A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><CODE>isNumber()</CODE></A> returns true); otherwise 1365 returns null 1366<P> 1367<DD><DL> 1368</DL> 1369</DD> 1370<DD><DL> 1371 1372<DT><B>Returns:</B><DD>Number value this node contains, if any (null for non-number 1373 nodes).</DL> 1374</DD> 1375</DL> 1376<HR> 1377 1378<A NAME="intValue()"><!-- --></A><H3> 1379intValue</H3> 1380<PRE> 1381public int <B>intValue</B>()</PRE> 1382<DL> 1383<DD>Returns integer value for this node, <b>if and only if</b> 1384 this node is numeric (<A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><CODE>isNumber()</CODE></A> returns true). For other 1385 types returns 0. 1386 For floating-point numbers, value is truncated using default 1387 Java coercion, similar to how cast from double to int operates. 1388<P> 1389<DD><DL> 1390</DL> 1391</DD> 1392<DD><DL> 1393 1394<DT><B>Returns:</B><DD>Integer value this node contains, if any; 0 for non-number 1395 nodes.</DL> 1396</DD> 1397</DL> 1398<HR> 1399 1400<A NAME="longValue()"><!-- --></A><H3> 1401longValue</H3> 1402<PRE> 1403public long <B>longValue</B>()</PRE> 1404<DL> 1405<DD><DL> 1406</DL> 1407</DD> 1408<DD><DL> 1409</DL> 1410</DD> 1411</DL> 1412<HR> 1413 1414<A NAME="doubleValue()"><!-- --></A><H3> 1415doubleValue</H3> 1416<PRE> 1417public double <B>doubleValue</B>()</PRE> 1418<DL> 1419<DD><DL> 1420</DL> 1421</DD> 1422<DD><DL> 1423</DL> 1424</DD> 1425</DL> 1426<HR> 1427 1428<A NAME="decimalValue()"><!-- --></A><H3> 1429decimalValue</H3> 1430<PRE> 1431public <A HREF="http://docs.oracle.com/javase/6/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math">BigDecimal</A> <B>decimalValue</B>()</PRE> 1432<DL> 1433<DD><DL> 1434</DL> 1435</DD> 1436<DD><DL> 1437</DL> 1438</DD> 1439</DL> 1440<HR> 1441 1442<A NAME="bigIntegerValue()"><!-- --></A><H3> 1443bigIntegerValue</H3> 1444<PRE> 1445public <A HREF="http://docs.oracle.com/javase/6/docs/api/java/math/BigInteger.html?is-external=true" title="class or interface in java.math">BigInteger</A> <B>bigIntegerValue</B>()</PRE> 1446<DL> 1447<DD><DL> 1448</DL> 1449</DD> 1450<DD><DL> 1451</DL> 1452</DD> 1453</DL> 1454<HR> 1455 1456<A NAME="get(int)"><!-- --></A><H3> 1457get</H3> 1458<PRE> 1459public <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A> <B>get</B>(int index)</PRE> 1460<DL> 1461<DD>Method for accessing value of the specified element of 1462 an array node. For other nodes, null is always returned. 1463<p> 1464 For array nodes, index specifies 1465 exact location within array and allows for efficient iteration 1466 over child elements (underlying storage is guaranteed to 1467 be efficiently indexable, i.e. has random-access to elements). 1468 If index is less than 0, or equal-or-greater than 1469 <code>node.size()</code>, null is returned; no exception is 1470 thrown for any index. 1471<P> 1472<DD><DL> 1473</DL> 1474</DD> 1475<DD><DL> 1476 1477<DT><B>Returns:</B><DD>Node that represent value of the specified element, 1478 if this node is an array and has specified element. 1479 Null otherwise.</DL> 1480</DD> 1481</DL> 1482<HR> 1483 1484<A NAME="get(java.lang.String)"><!-- --></A><H3> 1485get</H3> 1486<PRE> 1487public <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A> <B>get</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> fieldName)</PRE> 1488<DL> 1489<DD>Method for accessing value of the specified field of 1490 an object node. If this node is not an object (or it 1491 does not have a value for specified field name), or 1492 if there is no field with such name, null is returned. 1493<P> 1494<DD><DL> 1495</DL> 1496</DD> 1497<DD><DL> 1498 1499<DT><B>Returns:</B><DD>Node that represent value of the specified field, 1500 if this node is an object and has value for the specified 1501 field. Null otherwise.</DL> 1502</DD> 1503</DL> 1504<HR> 1505 1506<A NAME="asText()"><!-- --></A><H3> 1507asText</H3> 1508<PRE> 1509public abstract <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>asText</B>()</PRE> 1510<DL> 1511<DD>Method that will return a valid String representation of 1512 the container value, if the node is a value node 1513 (method <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isValueNode()"><CODE>isValueNode()</CODE></A> returns true), 1514 otherwise empty String. 1515<P> 1516<DD><DL> 1517</DL> 1518</DD> 1519<DD><DL> 1520</DL> 1521</DD> 1522</DL> 1523<HR> 1524 1525<A NAME="asInt()"><!-- --></A><H3> 1526asInt</H3> 1527<PRE> 1528public int <B>asInt</B>()</PRE> 1529<DL> 1530<DD>Method that will try to convert value of this node to a Java <b>int</b>. 1531 Numbers are coerced using default Java rules; booleans convert to 0 (false) 1532 and 1 (true), and Strings are parsed using default Java language integer 1533 parsing rules. 1534<p> 1535 If representation can not be converted to an int (including structured types 1536 like Objects and Arrays), 1537 default value of <b>0</b> will be returned; no exceptions are thrown. 1538<P> 1539<DD><DL> 1540</DL> 1541</DD> 1542<DD><DL> 1543</DL> 1544</DD> 1545</DL> 1546<HR> 1547 1548<A NAME="asInt(int)"><!-- --></A><H3> 1549asInt</H3> 1550<PRE> 1551public int <B>asInt</B>(int defaultValue)</PRE> 1552<DL> 1553<DD>Method that will try to convert value of this node to a Java <b>int</b>. 1554 Numbers are coerced using default Java rules; booleans convert to 0 (false) 1555 and 1 (true), and Strings are parsed using default Java language integer 1556 parsing rules. 1557<p> 1558 If representation can not be converted to an int (including structured types 1559 like Objects and Arrays), 1560 specified <b>defaultValue</b> will be returned; no exceptions are thrown. 1561<P> 1562<DD><DL> 1563</DL> 1564</DD> 1565<DD><DL> 1566</DL> 1567</DD> 1568</DL> 1569<HR> 1570 1571<A NAME="asLong()"><!-- --></A><H3> 1572asLong</H3> 1573<PRE> 1574public long <B>asLong</B>()</PRE> 1575<DL> 1576<DD>Method that will try to convert value of this node to a Java <b>long</b>. 1577 Numbers are coerced using default Java rules; booleans convert to 0 (false) 1578 and 1 (true), and Strings are parsed using default Java language integer 1579 parsing rules. 1580<p> 1581 If representation can not be converted to an long (including structured types 1582 like Objects and Arrays), 1583 default value of <b>0</b> will be returned; no exceptions are thrown. 1584<P> 1585<DD><DL> 1586</DL> 1587</DD> 1588<DD><DL> 1589</DL> 1590</DD> 1591</DL> 1592<HR> 1593 1594<A NAME="asLong(long)"><!-- --></A><H3> 1595asLong</H3> 1596<PRE> 1597public long <B>asLong</B>(long defaultValue)</PRE> 1598<DL> 1599<DD>Method that will try to convert value of this node to a Java <b>long</b>. 1600 Numbers are coerced using default Java rules; booleans convert to 0 (false) 1601 and 1 (true), and Strings are parsed using default Java language integer 1602 parsing rules. 1603<p> 1604 If representation can not be converted to an long (including structured types 1605 like Objects and Arrays), 1606 specified <b>defaultValue</b> will be returned; no exceptions are thrown. 1607<P> 1608<DD><DL> 1609</DL> 1610</DD> 1611<DD><DL> 1612</DL> 1613</DD> 1614</DL> 1615<HR> 1616 1617<A NAME="asDouble()"><!-- --></A><H3> 1618asDouble</H3> 1619<PRE> 1620public double <B>asDouble</B>()</PRE> 1621<DL> 1622<DD>Method that will try to convert value of this node to a Java <b>double</b>. 1623 Numbers are coerced using default Java rules; booleans convert to 0.0 (false) 1624 and 1.0 (true), and Strings are parsed using default Java language integer 1625 parsing rules. 1626<p> 1627 If representation can not be converted to an int (including structured types 1628 like Objects and Arrays), 1629 default value of <b>0.0</b> will be returned; no exceptions are thrown. 1630<P> 1631<DD><DL> 1632</DL> 1633</DD> 1634<DD><DL> 1635</DL> 1636</DD> 1637</DL> 1638<HR> 1639 1640<A NAME="asDouble(double)"><!-- --></A><H3> 1641asDouble</H3> 1642<PRE> 1643public double <B>asDouble</B>(double defaultValue)</PRE> 1644<DL> 1645<DD>Method that will try to convert value of this node to a Java <b>double</b>. 1646 Numbers are coerced using default Java rules; booleans convert to 0.0 (false) 1647 and 1.0 (true), and Strings are parsed using default Java language integer 1648 parsing rules. 1649<p> 1650 If representation can not be converted to an int (including structured types 1651 like Objects and Arrays), 1652 specified <b>defaultValue</b> will be returned; no exceptions are thrown. 1653<P> 1654<DD><DL> 1655</DL> 1656</DD> 1657<DD><DL> 1658</DL> 1659</DD> 1660</DL> 1661<HR> 1662 1663<A NAME="asBoolean()"><!-- --></A><H3> 1664asBoolean</H3> 1665<PRE> 1666public boolean <B>asBoolean</B>()</PRE> 1667<DL> 1668<DD>Method that will try to convert value of this node to a Java <b>boolean</b>. 1669 JSON booleans map naturally; integer numbers other than 0 map to true, and 1670 0 maps to false 1671 and Strings 'true' and 'false' map to corresponding values. 1672<p> 1673 If representation can not be converted to a boolean value (including structured types 1674 like Objects and Arrays), 1675 default value of <b>false</b> will be returned; no exceptions are thrown. 1676<P> 1677<DD><DL> 1678</DL> 1679</DD> 1680<DD><DL> 1681</DL> 1682</DD> 1683</DL> 1684<HR> 1685 1686<A NAME="asBoolean(boolean)"><!-- --></A><H3> 1687asBoolean</H3> 1688<PRE> 1689public boolean <B>asBoolean</B>(boolean defaultValue)</PRE> 1690<DL> 1691<DD>Method that will try to convert value of this node to a Java <b>boolean</b>. 1692 JSON booleans map naturally; integer numbers other than 0 map to true, and 1693 0 maps to false 1694 and Strings 'true' and 'false' map to corresponding values. 1695<p> 1696 If representation can not be converted to a boolean value (including structured types 1697 like Objects and Arrays), 1698 specified <b>defaultValue</b> will be returned; no exceptions are thrown. 1699<P> 1700<DD><DL> 1701</DL> 1702</DD> 1703<DD><DL> 1704</DL> 1705</DD> 1706</DL> 1707<HR> 1708 1709<A NAME="has(java.lang.String)"><!-- --></A><H3> 1710has</H3> 1711<PRE> 1712public boolean <B>has</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> fieldName)</PRE> 1713<DL> 1714<DD>Method that allows checking whether this node is JSON Object node 1715 and contains value for specified property. If this is the case 1716 (including properties with explicit null values), returns true; 1717 otherwise returns false. 1718<p> 1719 This method is equivalent to: 1720<pre> 1721 node.get(fieldName) != null 1722</pre> 1723 (since return value of get() is node, not value node contains) 1724<P> 1725<DD><DL> 1726</DL> 1727</DD> 1728<DD><DL> 1729<DT><B>Parameters:</B><DD><CODE>fieldName</CODE> - Name of element to check 1730<DT><B>Returns:</B><DD>True if this node is a JSON Object node, and has a property 1731 entry with specified name (with any value, including null value)</DL> 1732</DD> 1733</DL> 1734<HR> 1735 1736<A NAME="has(int)"><!-- --></A><H3> 1737has</H3> 1738<PRE> 1739public boolean <B>has</B>(int index)</PRE> 1740<DL> 1741<DD>Method that allows checking whether this node is JSON Array node 1742 and contains a value for specified index 1743 If this is the case 1744 (including case of specified indexing having null as value), returns true; 1745 otherwise returns false. 1746<p> 1747 Note: array element indexes are 0-based. 1748<p> 1749 This method is equivalent to: 1750<pre> 1751 node.get(index) != null 1752</pre> 1753<P> 1754<DD><DL> 1755</DL> 1756</DD> 1757<DD><DL> 1758<DT><B>Parameters:</B><DD><CODE>index</CODE> - Index to check 1759<DT><B>Returns:</B><DD>True if this node is a JSON Object node, and has a property 1760 entry with specified name (with any value, including null value)</DL> 1761</DD> 1762</DL> 1763<HR> 1764 1765<A NAME="findValue(java.lang.String)"><!-- --></A><H3> 1766findValue</H3> 1767<PRE> 1768public abstract <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A> <B>findValue</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> fieldName)</PRE> 1769<DL> 1770<DD>Method for finding a JSON Object field with specified name in this 1771 node or its child nodes, and returning value it has. 1772 If no matching field is found in this node or its descendants, returns null. 1773<P> 1774<DD><DL> 1775</DL> 1776</DD> 1777<DD><DL> 1778<DT><B>Parameters:</B><DD><CODE>fieldName</CODE> - Name of field to look for 1779<DT><B>Returns:</B><DD>Value of first matching node found, if any; null if none</DL> 1780</DD> 1781</DL> 1782<HR> 1783 1784<A NAME="findValues(java.lang.String)"><!-- --></A><H3> 1785findValues</H3> 1786<PRE> 1787public final <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A>> <B>findValues</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> fieldName)</PRE> 1788<DL> 1789<DD>Method for finding JSON Object fields with specified name, and returning 1790 found ones as a List. Note that sub-tree search ends if a field is found, 1791 so possible children of result nodes are <b>not</b> included. 1792 If no matching fields are found in this node or its descendants, returns 1793 an empty List. 1794<P> 1795<DD><DL> 1796</DL> 1797</DD> 1798<DD><DL> 1799<DT><B>Parameters:</B><DD><CODE>fieldName</CODE> - Name of field to look for</DL> 1800</DD> 1801</DL> 1802<HR> 1803 1804<A NAME="findValuesAsText(java.lang.String)"><!-- --></A><H3> 1805findValuesAsText</H3> 1806<PRE> 1807public final <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>> <B>findValuesAsText</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> fieldName)</PRE> 1808<DL> 1809<DD>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 1810 values into Strings, calling <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#asText()"><CODE>asText()</CODE></A>. 1811<P> 1812<DD><DL> 1813</DL> 1814</DD> 1815<DD><DL> 1816</DL> 1817</DD> 1818</DL> 1819<HR> 1820 1821<A NAME="findPath(java.lang.String)"><!-- --></A><H3> 1822findPath</H3> 1823<PRE> 1824public abstract <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A> <B>findPath</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> fieldName)</PRE> 1825<DL> 1826<DD>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 1827 "missing node" instead of null if no field is found. Missing node 1828 is a specific kind of node for which <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode()"><CODE>isMissingNode()</CODE></A> 1829 returns true; and all value access methods return empty or 1830 missing value. 1831<P> 1832<DD><DL> 1833</DL> 1834</DD> 1835<DD><DL> 1836<DT><B>Parameters:</B><DD><CODE>fieldName</CODE> - Name of field to look for 1837<DT><B>Returns:</B><DD>Value of first matching node found; or if not found, a 1838 "missing node" (non-null instance that has no value)</DL> 1839</DD> 1840</DL> 1841<HR> 1842 1843<A NAME="findParent(java.lang.String)"><!-- --></A><H3> 1844findParent</H3> 1845<PRE> 1846public abstract <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A> <B>findParent</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> fieldName)</PRE> 1847<DL> 1848<DD>Method for finding a JSON Object that contains specified field, 1849 within this node or its descendants. 1850 If no matching field is found in this node or its descendants, returns null. 1851<P> 1852<DD><DL> 1853</DL> 1854</DD> 1855<DD><DL> 1856<DT><B>Parameters:</B><DD><CODE>fieldName</CODE> - Name of field to look for 1857<DT><B>Returns:</B><DD>Value of first matching node found, if any; null if none</DL> 1858</DD> 1859</DL> 1860<HR> 1861 1862<A NAME="findParents(java.lang.String)"><!-- --></A><H3> 1863findParents</H3> 1864<PRE> 1865public final <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A>> <B>findParents</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> fieldName)</PRE> 1866<DL> 1867<DD>Method for finding a JSON Object that contains specified field, 1868 within this node or its descendants. 1869 If no matching field is found in this node or its descendants, returns null. 1870<P> 1871<DD><DL> 1872</DL> 1873</DD> 1874<DD><DL> 1875<DT><B>Parameters:</B><DD><CODE>fieldName</CODE> - Name of field to look for 1876<DT><B>Returns:</B><DD>Value of first matching node found, if any; null if none</DL> 1877</DD> 1878</DL> 1879<HR> 1880 1881<A NAME="findValues(java.lang.String, java.util.List)"><!-- --></A><H3> 1882findValues</H3> 1883<PRE> 1884public abstract <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A>> <B>findValues</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> fieldName, 1885 <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A>> foundSoFar)</PRE> 1886<DL> 1887<DD><DL> 1888</DL> 1889</DD> 1890<DD><DL> 1891</DL> 1892</DD> 1893</DL> 1894<HR> 1895 1896<A NAME="findValuesAsText(java.lang.String, java.util.List)"><!-- --></A><H3> 1897findValuesAsText</H3> 1898<PRE> 1899public abstract <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>> <B>findValuesAsText</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> fieldName, 1900 <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>> foundSoFar)</PRE> 1901<DL> 1902<DD><DL> 1903</DL> 1904</DD> 1905<DD><DL> 1906</DL> 1907</DD> 1908</DL> 1909<HR> 1910 1911<A NAME="findParents(java.lang.String, java.util.List)"><!-- --></A><H3> 1912findParents</H3> 1913<PRE> 1914public abstract <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A>> <B>findParents</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> fieldName, 1915 <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A>> foundSoFar)</PRE> 1916<DL> 1917<DD><DL> 1918</DL> 1919</DD> 1920<DD><DL> 1921</DL> 1922</DD> 1923</DL> 1924<HR> 1925 1926<A NAME="size()"><!-- --></A><H3> 1927size</H3> 1928<PRE> 1929public int <B>size</B>()</PRE> 1930<DL> 1931<DD>Method that returns number of child nodes this node contains: 1932 for Array nodes, number of child elements, for Object nodes, 1933 number of fields, and for all other nodes 0. 1934<P> 1935<DD><DL> 1936</DL> 1937</DD> 1938<DD><DL> 1939 1940<DT><B>Returns:</B><DD>For non-container nodes returns 0; for arrays number of 1941 contained elements, and for objects number of fields.</DL> 1942</DD> 1943</DL> 1944<HR> 1945 1946<A NAME="iterator()"><!-- --></A><H3> 1947iterator</H3> 1948<PRE> 1949public final <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</A><<A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A>> <B>iterator</B>()</PRE> 1950<DL> 1951<DD>Same as calling <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#elements()"><CODE>elements()</CODE></A>; implemented so that 1952 convenience "for-each" loop can be used for looping over elements 1953 of JSON Array constructs. 1954<P> 1955<DD><DL> 1956<DT><B>Specified by:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Iterable.html?is-external=true#iterator()" title="class or interface in java.lang">iterator</A></CODE> in interface <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</A><<A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A>></CODE></DL> 1957</DD> 1958<DD><DL> 1959</DL> 1960</DD> 1961</DL> 1962<HR> 1963 1964<A NAME="elements()"><!-- --></A><H3> 1965elements</H3> 1966<PRE> 1967public <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</A><<A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A>> <B>elements</B>()</PRE> 1968<DL> 1969<DD>Method for accessing all value nodes of this Node, iff 1970 this node is a JSON Array or Object node. In case of Object node, 1971 field names (keys) are not included, only values. 1972 For other types of nodes, returns empty iterator. 1973<P> 1974<DD><DL> 1975</DL> 1976</DD> 1977<DD><DL> 1978</DL> 1979</DD> 1980</DL> 1981<HR> 1982 1983<A NAME="fieldNames()"><!-- --></A><H3> 1984fieldNames</H3> 1985<PRE> 1986public <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</A><<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>> <B>fieldNames</B>()</PRE> 1987<DL> 1988<DD>Method for accessing names of all fields for this Node, iff 1989 this node is a JSON Object node. 1990<P> 1991<DD><DL> 1992</DL> 1993</DD> 1994<DD><DL> 1995</DL> 1996</DD> 1997</DL> 1998<HR> 1999 2000<A NAME="fields()"><!-- --></A><H3> 2001fields</H3> 2002<PRE> 2003public <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</A><<A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/Map.Entry.html?is-external=true" title="class or interface in java.util">Map.Entry</A><<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>,<A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A>>> <B>fields</B>()</PRE> 2004<DL> 2005<DD><DL> 2006</DL> 2007</DD> 2008<DD><DL> 2009 2010<DT><B>Returns:</B><DD>Iterator that can be used to traverse all key/value pairs for 2011 object nodes; empty iterator (no contents) for other types</DL> 2012</DD> 2013</DL> 2014<HR> 2015 2016<A NAME="path(java.lang.String)"><!-- --></A><H3> 2017path</H3> 2018<PRE> 2019public abstract <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A> <B>path</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> fieldName)</PRE> 2020<DL> 2021<DD>This method is similar to <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#get(java.lang.String)"><CODE>get(String)</CODE></A>, except 2022 that instead of returning null if no such value exists (due 2023 to this node not being an object, or object not having value 2024 for the specified field), 2025 a "missing node" (node that returns true for 2026 <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode()"><CODE>isMissingNode()</CODE></A>) will be returned. This allows for 2027 convenient and safe chained access via path calls. 2028<P> 2029<DD><DL> 2030</DL> 2031</DD> 2032<DD><DL> 2033</DL> 2034</DD> 2035</DL> 2036<HR> 2037 2038<A NAME="path(int)"><!-- --></A><H3> 2039path</H3> 2040<PRE> 2041public abstract <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A> <B>path</B>(int index)</PRE> 2042<DL> 2043<DD>This method is similar to <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#get(int)"><CODE>get(int)</CODE></A>, except 2044 that instead of returning null if no such element exists (due 2045 to index being out of range, or this node not being an array), 2046 a "missing node" (node that returns true for 2047 <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode()"><CODE>isMissingNode()</CODE></A>) will be returned. This allows for 2048 convenient and safe chained access via path calls. 2049<P> 2050<DD><DL> 2051</DL> 2052</DD> 2053<DD><DL> 2054</DL> 2055</DD> 2056</DL> 2057<HR> 2058 2059<A NAME="with(java.lang.String)"><!-- --></A><H3> 2060with</H3> 2061<PRE> 2062public <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A> <B>with</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> propertyName)</PRE> 2063<DL> 2064<DD>Method that can be called on Object nodes, to access a property 2065 that has Object value; or if no such property exists, to create, 2066 add and return such Object node. 2067 If the node method is called on is not Object node, 2068 or if property exists and has value that is not Object node, 2069 <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/UnsupportedOperationException.html?is-external=true" title="class or interface in java.lang"><CODE>UnsupportedOperationException</CODE></A> is thrown 2070<P> 2071<DD><DL> 2072</DL> 2073</DD> 2074<DD><DL> 2075</DL> 2076</DD> 2077</DL> 2078<HR> 2079 2080<A NAME="withArray(java.lang.String)"><!-- --></A><H3> 2081withArray</H3> 2082<PRE> 2083public <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A> <B>withArray</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> propertyName)</PRE> 2084<DL> 2085<DD>Method that can be called on Object nodes, to access a property 2086 that has <code>Array</code> value; or if no such property exists, to create, 2087 add and return such Array node. 2088 If the node method is called on is not Object node, 2089 or if property exists and has value that is not Array node, 2090 <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/UnsupportedOperationException.html?is-external=true" title="class or interface in java.lang"><CODE>UnsupportedOperationException</CODE></A> is thrown 2091<P> 2092<DD><DL> 2093</DL> 2094</DD> 2095<DD><DL> 2096</DL> 2097</DD> 2098</DL> 2099<HR> 2100 2101<A NAME="traverse()"><!-- --></A><H3> 2102traverse</H3> 2103<PRE> 2104public abstract com.fasterxml.jackson.core.JsonParser <B>traverse</B>()</PRE> 2105<DL> 2106<DD>Method for constructing a <CODE>JsonParser</CODE> instance for 2107 iterating over contents of the tree that this 2108 node is root of. 2109 Functionally equivalent to first serializing tree using 2110 <CODE>ObjectCodec</CODE> and then re-parsing but 2111 more efficient. 2112<P> 2113<DD><DL> 2114<DT><B>Specified by:</B><DD><CODE>traverse</CODE> in interface <CODE>com.fasterxml.jackson.core.TreeNode</CODE></DL> 2115</DD> 2116<DD><DL> 2117</DL> 2118</DD> 2119</DL> 2120<HR> 2121 2122<A NAME="toString()"><!-- --></A><H3> 2123toString</H3> 2124<PRE> 2125public abstract <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>toString</B>()</PRE> 2126<DL> 2127<DD><p> 2128 Note: marked as abstract to ensure all implementation 2129 classes define it properly. 2130<P> 2131<DD><DL> 2132<DT><B>Overrides:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></CODE></DL> 2133</DD> 2134<DD><DL> 2135</DL> 2136</DD> 2137</DL> 2138<HR> 2139 2140<A NAME="equals(java.lang.Object)"><!-- --></A><H3> 2141equals</H3> 2142<PRE> 2143public abstract boolean <B>equals</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> o)</PRE> 2144<DL> 2145<DD>Equality for node objects is defined as full (deep) value 2146 equality. This means that it is possible to compare complete 2147 JSON trees for equality by comparing equality of root nodes. 2148<p> 2149 Note: marked as abstract to ensure all implementation 2150 classes define it properly and not rely on definition 2151 from <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang"><CODE>Object</CODE></A>. 2152<P> 2153<DD><DL> 2154<DT><B>Overrides:</B><DD><CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A></CODE> in class <CODE><A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></CODE></DL> 2155</DD> 2156<DD><DL> 2157</DL> 2158</DD> 2159</DL> 2160<!-- ========= END OF CLASS DATA ========= --> 2161<HR> 2162 2163 2164<!-- ======= START OF BOTTOM NAVBAR ====== --> 2165<A NAME="navbar_bottom"><!-- --></A> 2166<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> 2167<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 2168<TR> 2169<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 2170<A NAME="navbar_bottom_firstrow"><!-- --></A> 2171<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 2172 <TR ALIGN="center" VALIGN="top"> 2173 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 2174 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 2175 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 2176 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/JsonNode.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> 2177 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 2178 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 2179 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 2180 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 2181 </TR> 2182</TABLE> 2183</TD> 2184<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 2185</EM> 2186</TD> 2187</TR> 2188 2189<TR> 2190<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 2191 <A HREF="../../../../com/fasterxml/jackson/databind/JsonMappingException.Reference.html" title="class in com.fasterxml.jackson.databind"><B>PREV CLASS</B></A> 2192 <A HREF="../../../../com/fasterxml/jackson/databind/JsonSerializable.html" title="interface in com.fasterxml.jackson.databind"><B>NEXT CLASS</B></A></FONT></TD> 2193<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 2194 <A HREF="../../../../index.html?com/fasterxml/jackson/databind/JsonNode.html" target="_top"><B>FRAMES</B></A> 2195 <A HREF="JsonNode.html" target="_top"><B>NO FRAMES</B></A> 2196 <SCRIPT type="text/javascript"> 2197 <!-- 2198 if(window==top) { 2199 document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); 2200 } 2201 //--> 2202</SCRIPT> 2203<NOSCRIPT> 2204 <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> 2205</NOSCRIPT> 2206 2207 2208</FONT></TD> 2209</TR> 2210<TR> 2211<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 2212 SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> 2213<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 2214DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> 2215</TR> 2216</TABLE> 2217<A NAME="skip-navbar_bottom"></A> 2218<!-- ======== END OF BOTTOM NAVBAR ======= --> 2219 2220<HR> 2221Copyright © 2012 <a href="http://fasterxml.com">fasterxml.com</a>. All Rights Reserved. 2222</BODY> 2223</HTML> 2224