<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc (build 1.6.0_35) on Tue Oct 09 17:08:06 PDT 2012 --> <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> <TITLE> JsonNode (jackson-databind 2.1.0 API) </TITLE> <META NAME="date" CONTENT="2012-10-09"> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> <SCRIPT type="text/javascript"> function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="JsonNode (jackson-databind 2.1.0 API)"; } } </SCRIPT> <NOSCRIPT> </NOSCRIPT> </HEAD> <BODY BGCOLOR="white" onload="windowTitle();"> <HR> <!-- ========= START OF TOP NAVBAR ======= --> <A NAME="navbar_top"><!-- --></A> <A HREF="#skip-navbar_top" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/JsonNode.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../com/fasterxml/jackson/databind/JsonMappingException.Reference.html" title="class in com.fasterxml.jackson.databind"><B>PREV CLASS</B></A> <A HREF="../../../../com/fasterxml/jackson/databind/JsonSerializable.html" title="interface in com.fasterxml.jackson.databind"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?com/fasterxml/jackson/databind/JsonNode.html" target="_top"><B>FRAMES</B></A> <A HREF="JsonNode.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_top"></A> <!-- ========= END OF TOP NAVBAR ========= --> <HR> <!-- ======== START OF CLASS DATA ======== --> <H2> <FONT SIZE="-1"> com.fasterxml.jackson.databind</FONT> <BR> Class JsonNode</H2> <PRE> <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> <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.fasterxml.jackson.databind.JsonNode</B> </PRE> <DL> <DT><B>All Implemented Interfaces:</B> <DD><A HREF="http://fasterxml.github.com/jackson-core/javadoc/2.1.0/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</A><<A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A>></DD> </DL> <DL> <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> </DL> <HR> <DL> <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 <A HREF="http://fasterxml.github.com/jackson-core/javadoc/2.1.0/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</A>, <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</A><<A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A>></DL> </PRE> <P> Base class for all JSON nodes, which form the basis of JSON Tree Model that Jackson implements. One way to think of these nodes is to consider them similar to DOM nodes in XML DOM trees. <p> As a general design rule, most accessors ("getters") are included in this base class, to allow for traversing structure without type casts. Most mutators, however, need to be accessed through specific sub-classes (such as <code>ObjectNode</code> and <code>ArrayNode</code>). This seems sensible because proper type information is generally available when building or modifying trees, but less often when reading a tree (newly built from parsed JSON content). <p> Actual concrete sub-classes can be found from package <A HREF="../../../../com/fasterxml/jackson/databind/node/package-summary.html"><CODE>com.fasterxml.jackson.databind.node</CODE></A>. <P> <P> <HR> <P> <!-- =========== FIELD SUMMARY =========== --> <A NAME="field_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Field Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <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> <TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#NO_NODES">NO_NODES</A></B></CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <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> <TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#NO_STRINGS">NO_STRINGS</A></B></CODE> <BR> </TD> </TR> </TABLE> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <A NAME="constructor_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Constructor Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected </CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#JsonNode()">JsonNode</A></B>()</CODE> <BR> </TD> </TR> </TABLE> <!-- ========== METHOD SUMMARY =========== --> <A NAME="method_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Method Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#asBoolean()">asBoolean</A></B>()</CODE> <BR> Method that will try to convert value of this node to a Java <b>boolean</b>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#asBoolean(boolean)">asBoolean</A></B>(boolean defaultValue)</CODE> <BR> Method that will try to convert value of this node to a Java <b>boolean</b>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> double</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#asDouble()">asDouble</A></B>()</CODE> <BR> Method that will try to convert value of this node to a Java <b>double</b>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> double</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#asDouble(double)">asDouble</A></B>(double defaultValue)</CODE> <BR> Method that will try to convert value of this node to a Java <b>double</b>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#asInt()">asInt</A></B>()</CODE> <BR> Method that will try to convert value of this node to a Java <b>int</b>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#asInt(int)">asInt</A></B>(int defaultValue)</CODE> <BR> Method that will try to convert value of this node to a Java <b>int</b>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> long</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#asLong()">asLong</A></B>()</CODE> <BR> Method that will try to convert value of this node to a Java <b>long</b>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> long</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#asLong(long)">asLong</A></B>(long defaultValue)</CODE> <BR> Method that will try to convert value of this node to a Java <b>long</b>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <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> <TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#asText()">asText</A></B>()</CODE> <BR> Method that will return a valid String representation of the container value, if the node is a value node (method <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isValueNode()"><CODE>isValueNode()</CODE></A> returns true), otherwise empty String.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>abstract <A HREF="http://fasterxml.github.com/jackson-core/javadoc/2.1.0/com/fasterxml/jackson/core/JsonToken.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonToken</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#asToken()">asToken</A></B>()</CODE> <BR> Method that can be used for efficient type detection when using stream abstraction for traversing nodes.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <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> <TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#bigIntegerValue()">bigIntegerValue</A></B>()</CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> byte[]</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#binaryValue()">binaryValue</A></B>()</CODE> <BR> Method to use for accessing binary content of binary nodes (nodes for which <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isBinary()"><CODE>isBinary()</CODE></A> returns true); or for Text Nodes (ones for which <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#textValue()"><CODE>textValue()</CODE></A> returns non-null value), to read decoded base64 data.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#booleanValue()">booleanValue</A></B>()</CODE> <BR> Method to use for accessing JSON boolean values (value literals 'true' and 'false').</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#canConvertToInt()">canConvertToInt</A></B>()</CODE> <BR> Method that can be used to check whether this node is a numeric node (<A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><CODE>isNumber()</CODE></A> would return true) AND its value fits within Java's 32-bit signed integer type, <code>int</code>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#canConvertToLong()">canConvertToLong</A></B>()</CODE> <BR> Method that can be used to check whether this node is a numeric node (<A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><CODE>isNumber()</CODE></A> would return true) AND its value fits within Java's 64-bit signed integer type, <code>long</code>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <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> <TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#decimalValue()">decimalValue</A></B>()</CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>abstract <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" SUMMARY=""> <TR ALIGN="right" VALIGN=""> <TD NOWRAP><FONT SIZE="-1"> <CODE><T extends <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A>> <BR> T</CODE></FONT></TD> </TR> </TABLE> </CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#deepCopy()">deepCopy</A></B>()</CODE> <BR> Method that can be called to get a node that is guaranteed not to allow changing of this node through mutators on this node or any of its children.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> double</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#doubleValue()">doubleValue</A></B>()</CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <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> <TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#elements()">elements</A></B>()</CODE> <BR> Method for accessing all value nodes of this Node, iff this node is a JSON Array or Object node.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>abstract boolean</CODE></FONT></TD> <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> <BR> Equality for node objects is defined as full (deep) value equality.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <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> <TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#fieldNames()">fieldNames</A></B>()</CODE> <BR> Method for accessing names of all fields for this Node, iff this node is a JSON Object node.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <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> <TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#fields()">fields</A></B>()</CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>abstract <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A></CODE></FONT></TD> <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> <BR> Method for finding a JSON Object that contains specified field, within this node or its descendants.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <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> <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> <BR> Method for finding a JSON Object that contains specified field, within this node or its descendants.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <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> <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, <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> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>abstract <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A></CODE></FONT></TD> <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> <BR> Method similar to <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#findValue(java.lang.String)"><CODE>findValue(java.lang.String)</CODE></A>, but that will return a "missing node" instead of null if no field is found.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>abstract <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A></CODE></FONT></TD> <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> <BR> Method for finding a JSON Object field with specified name in this node or its child nodes, and returning value it has.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <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> <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> <BR> Method for finding JSON Object fields with specified name, and returning found ones as a List.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <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> <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, <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> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <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> <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> <BR> Similar to <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#findValues(java.lang.String)"><CODE>findValues(java.lang.String)</CODE></A>, but will additionally convert values into Strings, calling <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#asText()"><CODE>asText()</CODE></A>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <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> <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, <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> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#get(int)">get</A></B>(int index)</CODE> <BR> Method for accessing value of the specified element of an array node.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A></CODE></FONT></TD> <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> <BR> Method for accessing value of the specified field of an object node.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#has(int)">has</A></B>(int index)</CODE> <BR> Method that allows checking whether this node is JSON Array node and contains a value for specified index If this is the case (including case of specified indexing having null as value), returns true; otherwise returns false.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <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> <BR> Method that allows checking whether this node is JSON Object node and contains value for specified property.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#hasNonNull(int)">hasNonNull</A></B>(int index)</CODE> <BR> Method that is similar to <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#has(int)"><CODE>has(int)</CODE></A>, but that will return <code>false</code> for explicitly added nulls.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#hasNonNull(java.lang.String)">hasNonNull</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> <BR> Method that is similar to <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#has(java.lang.String)"><CODE>has(String)</CODE></A>, but that will return <code>false</code> for explicitly added nulls.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#intValue()">intValue</A></B>()</CODE> <BR> Returns integer value for this node, <b>if and only if</b> this node is numeric (<A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><CODE>isNumber()</CODE></A> returns true).</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isArray()">isArray</A></B>()</CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isBigDecimal()">isBigDecimal</A></B>()</CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isBigInteger()">isBigInteger</A></B>()</CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isBinary()">isBinary</A></B>()</CODE> <BR> Method that can be used to check if this node represents binary data (Base64 encoded).</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isBoolean()">isBoolean</A></B>()</CODE> <BR> Method that can be used to check if this node was created from JSON boolean value (literals "true" and "false").</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isContainerNode()">isContainerNode</A></B>()</CODE> <BR> Method that returns true for container nodes: Arrays and Objects.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isDouble()">isDouble</A></B>()</CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isFloatingPointNumber()">isFloatingPointNumber</A></B>()</CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isInt()">isInt</A></B>()</CODE> <BR> Method that can be used to check whether contained value is a number represented as Java <code>int</code>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isIntegralNumber()">isIntegralNumber</A></B>()</CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isLong()">isLong</A></B>()</CODE> <BR> Method that can be used to check whether contained value is a number represented as Java <code>long</code>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode()">isMissingNode</A></B>()</CODE> <BR> Method that returns true for "virtual" nodes which represent missing entries constructed by path accessor methods when there is no actual node matching given criteria.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNull()">isNull</A></B>()</CODE> <BR> Method that can be used to check if this node was created from JSON literal null value.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()">isNumber</A></B>()</CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isObject()">isObject</A></B>()</CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isPojo()">isPojo</A></B>()</CODE> <BR> Method that can be used to check if the node is a wrapper for a POJO ("Plain Old Java Object" aka "bean".</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isTextual()">isTextual</A></B>()</CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isValueNode()">isValueNode</A></B>()</CODE> <BR> Method that returns true for all value nodes: ones that are not containers, and that do not represent "missing" nodes in the path.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <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> <TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#iterator()">iterator</A></B>()</CODE> <BR> Same as calling <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#elements()"><CODE>elements()</CODE></A>; implemented so that convenience "for-each" loop can be used for looping over elements of JSON Array constructs.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> long</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#longValue()">longValue</A></B>()</CODE> <BR> </TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>abstract <A HREF="http://fasterxml.github.com/jackson-core/javadoc/2.1.0/com/fasterxml/jackson/core/JsonParser.NumberType.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonParser.NumberType</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#numberType()">numberType</A></B>()</CODE> <BR> If this node is a numeric type (as per <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><CODE>isNumber()</CODE></A>), returns native type that node uses to store the numeric value; otherwise returns null.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <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> <TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#numberValue()">numberValue</A></B>()</CODE> <BR> Returns numeric value for this node, <b>if and only if</b> this node is numeric (<A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><CODE>isNumber()</CODE></A> returns true); otherwise returns null</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>abstract <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#path(int)">path</A></B>(int index)</CODE> <BR> This method is similar to <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#get(int)"><CODE>get(int)</CODE></A>, except that instead of returning null if no such element exists (due to index being out of range, or this node not being an array), a "missing node" (node that returns true for <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode()"><CODE>isMissingNode()</CODE></A>) will be returned.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>abstract <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A></CODE></FONT></TD> <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> <BR> This method is similar to <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#get(java.lang.String)"><CODE>get(String)</CODE></A>, except that instead of returning null if no such value exists (due to this node not being an object, or object not having value for the specified field), a "missing node" (node that returns true for <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode()"><CODE>isMissingNode()</CODE></A>) will be returned.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> int</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#size()">size</A></B>()</CODE> <BR> Method that returns number of child nodes this node contains: for Array nodes, number of child elements, for Object nodes, number of fields, and for all other nodes 0.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <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> <TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#textValue()">textValue</A></B>()</CODE> <BR> Method to use for accessing String values.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <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> <TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#toString()">toString</A></B>()</CODE> <BR> Note: marked as abstract to ensure all implementation classes define it properly.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>abstract <A HREF="http://fasterxml.github.com/jackson-core/javadoc/2.1.0/com/fasterxml/jackson/core/JsonParser.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonParser</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#traverse()">traverse</A></B>()</CODE> <BR> Method for constructing a <A HREF="http://fasterxml.github.com/jackson-core/javadoc/2.1.0/com/fasterxml/jackson/core/JsonParser.html?is-external=true" title="class or interface in com.fasterxml.jackson.core"><CODE>JsonParser</CODE></A> instance for iterating over contents of the tree that this node is root of.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A></CODE></FONT></TD> <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> <BR> Method that can be called on Object nodes, to access a property that has Object value; or if no such property exists, to create, add and return such Object node.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A></CODE></FONT></TD> <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> <BR> Method that can be called on Object nodes, to access a property that has <code>Array</code> value; or if no such property exists, to create, add and return such Array node.</TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <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> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <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> </TR> </TABLE> <P> <!-- ============ FIELD DETAIL =========== --> <A NAME="field_detail"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> <B>Field Detail</B></FONT></TH> </TR> </TABLE> <A NAME="NO_NODES"><!-- --></A><H3> NO_NODES</H3> <PRE> protected 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> <DL> <DL> </DL> </DL> <HR> <A NAME="NO_STRINGS"><!-- --></A><H3> NO_STRINGS</H3> <PRE> protected 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> <DL> <DL> </DL> </DL> <!-- ========= CONSTRUCTOR DETAIL ======== --> <A NAME="constructor_detail"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> <B>Constructor Detail</B></FONT></TH> </TR> </TABLE> <A NAME="JsonNode()"><!-- --></A><H3> JsonNode</H3> <PRE> protected <B>JsonNode</B>()</PRE> <DL> </DL> <!-- ============ METHOD DETAIL ========== --> <A NAME="method_detail"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> <B>Method Detail</B></FONT></TH> </TR> </TABLE> <A NAME="deepCopy()"><!-- --></A><H3> deepCopy</H3> <PRE> public 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> <DL> <DD>Method that can be called to get a node that is guaranteed not to allow changing of this node through mutators on this node or any of its children. This means it can either make a copy of this node (and all mutable children and grand children nodes), or node itself if it is immutable. <p> Note: return type is guaranteed to have same type as the node method is called on; which is why method is declared with local generic type. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>Node that is either a copy of this node (and all non-leaf children); or, for immutable leaf nodes, node itself.<DT><B>Since:</B></DT> <DD>2.0</DD> </DL> </DD> </DL> <HR> <A NAME="isValueNode()"><!-- --></A><H3> isValueNode</H3> <PRE> public boolean <B>isValueNode</B>()</PRE> <DL> <DD>Method that returns true for all value nodes: ones that are not containers, and that do not represent "missing" nodes in the path. Such value nodes represent String, Number, Boolean and null values from JSON. <p> Note: one and only one of methods <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isValueNode()"><CODE>isValueNode()</CODE></A>, <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 returns true for any given node. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="isContainerNode()"><!-- --></A><H3> isContainerNode</H3> <PRE> public boolean <B>isContainerNode</B>()</PRE> <DL> <DD>Method that returns true for container nodes: Arrays and Objects. <p> Note: one and only one of methods <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isValueNode()"><CODE>isValueNode()</CODE></A>, <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 returns true for any given node. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="isMissingNode()"><!-- --></A><H3> isMissingNode</H3> <PRE> public boolean <B>isMissingNode</B>()</PRE> <DL> <DD>Method that returns true for "virtual" nodes which represent missing entries constructed by path accessor methods when there is no actual node matching given criteria. <p> Note: one and only one of methods <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isValueNode()"><CODE>isValueNode()</CODE></A>, <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 returns true for any given node. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="isArray()"><!-- --></A><H3> isArray</H3> <PRE> public boolean <B>isArray</B>()</PRE> <DL> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>True if this node represents JSON Array</DL> </DD> </DL> <HR> <A NAME="isObject()"><!-- --></A><H3> isObject</H3> <PRE> public boolean <B>isObject</B>()</PRE> <DL> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>True if this node represents JSON Object</DL> </DD> </DL> <HR> <A NAME="isPojo()"><!-- --></A><H3> isPojo</H3> <PRE> public boolean <B>isPojo</B>()</PRE> <DL> <DD>Method that can be used to check if the node is a wrapper for a POJO ("Plain Old Java Object" aka "bean". Returns true only for instances of <code>POJONode</code>. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>True if this node wraps a POJO</DL> </DD> </DL> <HR> <A NAME="isNumber()"><!-- --></A><H3> isNumber</H3> <PRE> public boolean <B>isNumber</B>()</PRE> <DL> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>True if this node represents a numeric JSON value</DL> </DD> </DL> <HR> <A NAME="isIntegralNumber()"><!-- --></A><H3> isIntegralNumber</H3> <PRE> public boolean <B>isIntegralNumber</B>()</PRE> <DL> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>True if this node represents an integral (integer) numeric JSON value</DL> </DD> </DL> <HR> <A NAME="isFloatingPointNumber()"><!-- --></A><H3> isFloatingPointNumber</H3> <PRE> public boolean <B>isFloatingPointNumber</B>()</PRE> <DL> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>True if this node represents a non-integral numeric JSON value</DL> </DD> </DL> <HR> <A NAME="isInt()"><!-- --></A><H3> isInt</H3> <PRE> public boolean <B>isInt</B>()</PRE> <DL> <DD>Method that can be used to check whether contained value is a number represented as Java <code>int</code>. Note, however, that even if this method returns false, it is possible that conversion would be possible from other numeric types -- to check if this is possible, use <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#canConvertToInt()"><CODE>canConvertToInt()</CODE></A> instead. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>True if the value contained by this node is stored as Java int</DL> </DD> </DL> <HR> <A NAME="isLong()"><!-- --></A><H3> isLong</H3> <PRE> public boolean <B>isLong</B>()</PRE> <DL> <DD>Method that can be used to check whether contained value is a number represented as Java <code>long</code>. Note, however, that even if this method returns false, it is possible that conversion would be possible from other numeric types -- to check if this is possible, use <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#canConvertToInt()"><CODE>canConvertToInt()</CODE></A> instead. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>True if the value contained by this node is stored as Java <code>long</code></DL> </DD> </DL> <HR> <A NAME="isDouble()"><!-- --></A><H3> isDouble</H3> <PRE> public boolean <B>isDouble</B>()</PRE> <DL> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="isBigDecimal()"><!-- --></A><H3> isBigDecimal</H3> <PRE> public boolean <B>isBigDecimal</B>()</PRE> <DL> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="isBigInteger()"><!-- --></A><H3> isBigInteger</H3> <PRE> public boolean <B>isBigInteger</B>()</PRE> <DL> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="isTextual()"><!-- --></A><H3> isTextual</H3> <PRE> public boolean <B>isTextual</B>()</PRE> <DL> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="isBoolean()"><!-- --></A><H3> isBoolean</H3> <PRE> public boolean <B>isBoolean</B>()</PRE> <DL> <DD>Method that can be used to check if this node was created from JSON boolean value (literals "true" and "false"). <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="isNull()"><!-- --></A><H3> isNull</H3> <PRE> public boolean <B>isNull</B>()</PRE> <DL> <DD>Method that can be used to check if this node was created from JSON literal null value. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="isBinary()"><!-- --></A><H3> isBinary</H3> <PRE> public boolean <B>isBinary</B>()</PRE> <DL> <DD>Method that can be used to check if this node represents binary data (Base64 encoded). Although this will be externally written as JSON String value, <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isTextual()"><CODE>isTextual()</CODE></A> will return false if this method returns true. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>True if this node represents base64 encoded binary data</DL> </DD> </DL> <HR> <A NAME="asToken()"><!-- --></A><H3> asToken</H3> <PRE> public abstract <A HREF="http://fasterxml.github.com/jackson-core/javadoc/2.1.0/com/fasterxml/jackson/core/JsonToken.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonToken</A> <B>asToken</B>()</PRE> <DL> <DD>Method that can be used for efficient type detection when using stream abstraction for traversing nodes. Will return the first <A HREF="http://fasterxml.github.com/jackson-core/javadoc/2.1.0/com/fasterxml/jackson/core/JsonToken.html?is-external=true" title="class or interface in com.fasterxml.jackson.core"><CODE>JsonToken</CODE></A> that equivalent stream event would produce (for most nodes there is just one token but for structured/container types multiple) <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="http://fasterxml.github.com/jackson-core/javadoc/2.1.0/com/fasterxml/jackson/core/TreeNode.html?is-external=true#asToken()" title="class or interface in com.fasterxml.jackson.core">asToken</A></CODE> in interface <CODE><A HREF="http://fasterxml.github.com/jackson-core/javadoc/2.1.0/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</A></CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="numberType()"><!-- --></A><H3> numberType</H3> <PRE> public abstract <A HREF="http://fasterxml.github.com/jackson-core/javadoc/2.1.0/com/fasterxml/jackson/core/JsonParser.NumberType.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonParser.NumberType</A> <B>numberType</B>()</PRE> <DL> <DD>If this node is a numeric type (as per <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><CODE>isNumber()</CODE></A>), returns native type that node uses to store the numeric value; otherwise returns null. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="http://fasterxml.github.com/jackson-core/javadoc/2.1.0/com/fasterxml/jackson/core/TreeNode.html?is-external=true#numberType()" title="class or interface in com.fasterxml.jackson.core">numberType</A></CODE> in interface <CODE><A HREF="http://fasterxml.github.com/jackson-core/javadoc/2.1.0/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</A></CODE></DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>Type of number contained, if any; or null if node does not contain numeric value.</DL> </DD> </DL> <HR> <A NAME="canConvertToInt()"><!-- --></A><H3> canConvertToInt</H3> <PRE> public boolean <B>canConvertToInt</B>()</PRE> <DL> <DD>Method that can be used to check whether this node is a numeric node (<A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><CODE>isNumber()</CODE></A> would return true) AND its value fits within Java's 32-bit signed integer type, <code>int</code>. Note that floating-point numbers are convertible if the integral part fits without overflow (as per standard Java coercion rules) <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Since:</B></DT> <DD>2.0</DD> </DL> </DD> </DL> <HR> <A NAME="canConvertToLong()"><!-- --></A><H3> canConvertToLong</H3> <PRE> public boolean <B>canConvertToLong</B>()</PRE> <DL> <DD>Method that can be used to check whether this node is a numeric node (<A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><CODE>isNumber()</CODE></A> would return true) AND its value fits within Java's 64-bit signed integer type, <code>long</code>. Note that floating-point numbers are convertible if the integral part fits without overflow (as per standard Java coercion rules) <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Since:</B></DT> <DD>2.0</DD> </DL> </DD> </DL> <HR> <A NAME="textValue()"><!-- --></A><H3> textValue</H3> <PRE> public <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>textValue</B>()</PRE> <DL> <DD>Method to use for accessing String values. Does <b>NOT</b> do any conversions for non-String value nodes; for non-String values (ones for which <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isTextual()"><CODE>isTextual()</CODE></A> returns false) null will be returned. For String values, null is never returned (but empty Strings may be) <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>Textual value this node contains, iff it is a textual JSON node (comes from JSON String value entry)</DL> </DD> </DL> <HR> <A NAME="binaryValue()"><!-- --></A><H3> binaryValue</H3> <PRE> public byte[] <B>binaryValue</B>() 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> <DL> <DD>Method to use for accessing binary content of binary nodes (nodes for which <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isBinary()"><CODE>isBinary()</CODE></A> returns true); or for Text Nodes (ones for which <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#textValue()"><CODE>textValue()</CODE></A> returns non-null value), to read decoded base64 data. For other types of nodes, returns null. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>Binary data this node contains, iff it is a binary node; null otherwise <DT><B>Throws:</B> <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> </DD> </DL> <HR> <A NAME="booleanValue()"><!-- --></A><H3> booleanValue</H3> <PRE> public boolean <B>booleanValue</B>()</PRE> <DL> <DD>Method to use for accessing JSON boolean values (value literals 'true' and 'false'). For other types, always returns false. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>Textual value this node contains, iff it is a textual json node (comes from JSON String value entry)</DL> </DD> </DL> <HR> <A NAME="numberValue()"><!-- --></A><H3> numberValue</H3> <PRE> public <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Number.html?is-external=true" title="class or interface in java.lang">Number</A> <B>numberValue</B>()</PRE> <DL> <DD>Returns numeric value for this node, <b>if and only if</b> this node is numeric (<A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><CODE>isNumber()</CODE></A> returns true); otherwise returns null <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>Number value this node contains, if any (null for non-number nodes).</DL> </DD> </DL> <HR> <A NAME="intValue()"><!-- --></A><H3> intValue</H3> <PRE> public int <B>intValue</B>()</PRE> <DL> <DD>Returns integer value for this node, <b>if and only if</b> this node is numeric (<A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()"><CODE>isNumber()</CODE></A> returns true). For other types returns 0. For floating-point numbers, value is truncated using default Java coercion, similar to how cast from double to int operates. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>Integer value this node contains, if any; 0 for non-number nodes.</DL> </DD> </DL> <HR> <A NAME="longValue()"><!-- --></A><H3> longValue</H3> <PRE> public long <B>longValue</B>()</PRE> <DL> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="doubleValue()"><!-- --></A><H3> doubleValue</H3> <PRE> public double <B>doubleValue</B>()</PRE> <DL> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="decimalValue()"><!-- --></A><H3> decimalValue</H3> <PRE> public <A HREF="http://docs.oracle.com/javase/6/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math">BigDecimal</A> <B>decimalValue</B>()</PRE> <DL> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="bigIntegerValue()"><!-- --></A><H3> bigIntegerValue</H3> <PRE> public <A HREF="http://docs.oracle.com/javase/6/docs/api/java/math/BigInteger.html?is-external=true" title="class or interface in java.math">BigInteger</A> <B>bigIntegerValue</B>()</PRE> <DL> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="get(int)"><!-- --></A><H3> get</H3> <PRE> public <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A> <B>get</B>(int index)</PRE> <DL> <DD>Method for accessing value of the specified element of an array node. For other nodes, null is always returned. <p> For array nodes, index specifies exact location within array and allows for efficient iteration over child elements (underlying storage is guaranteed to be efficiently indexable, i.e. has random-access to elements). If index is less than 0, or equal-or-greater than <code>node.size()</code>, null is returned; no exception is thrown for any index. <p> NOTE: if the element value has been explicitly set as <code>null</code> (which is different from removal!), a <A HREF="../../../../com/fasterxml/jackson/databind/node/NullNode.html" title="class in com.fasterxml.jackson.databind.node"><CODE>NullNode</CODE></A> will be returned, not null. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>Node that represent value of the specified element, if this node is an array and has specified element. Null otherwise.</DL> </DD> </DL> <HR> <A NAME="get(java.lang.String)"><!-- --></A><H3> get</H3> <PRE> public <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> <DL> <DD>Method for accessing value of the specified field of an object node. If this node is not an object (or it does not have a value for specified field name), or if there is no field with such name, null is returned. <p> NOTE: if the property value has been explicitly set as <code>null</code> (which is different from removal!), a <A HREF="../../../../com/fasterxml/jackson/databind/node/NullNode.html" title="class in com.fasterxml.jackson.databind.node"><CODE>NullNode</CODE></A> will be returned, not null. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>Node that represent value of the specified field, if this node is an object and has value for the specified field. Null otherwise.</DL> </DD> </DL> <HR> <A NAME="asText()"><!-- --></A><H3> asText</H3> <PRE> public abstract <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>asText</B>()</PRE> <DL> <DD>Method that will return a valid String representation of the container value, if the node is a value node (method <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isValueNode()"><CODE>isValueNode()</CODE></A> returns true), otherwise empty String. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="asInt()"><!-- --></A><H3> asInt</H3> <PRE> public int <B>asInt</B>()</PRE> <DL> <DD>Method that will try to convert value of this node to a Java <b>int</b>. Numbers are coerced using default Java rules; booleans convert to 0 (false) and 1 (true), and Strings are parsed using default Java language integer parsing rules. <p> If representation can not be converted to an int (including structured types like Objects and Arrays), default value of <b>0</b> will be returned; no exceptions are thrown. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="asInt(int)"><!-- --></A><H3> asInt</H3> <PRE> public int <B>asInt</B>(int defaultValue)</PRE> <DL> <DD>Method that will try to convert value of this node to a Java <b>int</b>. Numbers are coerced using default Java rules; booleans convert to 0 (false) and 1 (true), and Strings are parsed using default Java language integer parsing rules. <p> If representation can not be converted to an int (including structured types like Objects and Arrays), specified <b>defaultValue</b> will be returned; no exceptions are thrown. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="asLong()"><!-- --></A><H3> asLong</H3> <PRE> public long <B>asLong</B>()</PRE> <DL> <DD>Method that will try to convert value of this node to a Java <b>long</b>. Numbers are coerced using default Java rules; booleans convert to 0 (false) and 1 (true), and Strings are parsed using default Java language integer parsing rules. <p> If representation can not be converted to an long (including structured types like Objects and Arrays), default value of <b>0</b> will be returned; no exceptions are thrown. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="asLong(long)"><!-- --></A><H3> asLong</H3> <PRE> public long <B>asLong</B>(long defaultValue)</PRE> <DL> <DD>Method that will try to convert value of this node to a Java <b>long</b>. Numbers are coerced using default Java rules; booleans convert to 0 (false) and 1 (true), and Strings are parsed using default Java language integer parsing rules. <p> If representation can not be converted to an long (including structured types like Objects and Arrays), specified <b>defaultValue</b> will be returned; no exceptions are thrown. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="asDouble()"><!-- --></A><H3> asDouble</H3> <PRE> public double <B>asDouble</B>()</PRE> <DL> <DD>Method that will try to convert value of this node to a Java <b>double</b>. Numbers are coerced using default Java rules; booleans convert to 0.0 (false) and 1.0 (true), and Strings are parsed using default Java language integer parsing rules. <p> If representation can not be converted to an int (including structured types like Objects and Arrays), default value of <b>0.0</b> will be returned; no exceptions are thrown. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="asDouble(double)"><!-- --></A><H3> asDouble</H3> <PRE> public double <B>asDouble</B>(double defaultValue)</PRE> <DL> <DD>Method that will try to convert value of this node to a Java <b>double</b>. Numbers are coerced using default Java rules; booleans convert to 0.0 (false) and 1.0 (true), and Strings are parsed using default Java language integer parsing rules. <p> If representation can not be converted to an int (including structured types like Objects and Arrays), specified <b>defaultValue</b> will be returned; no exceptions are thrown. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="asBoolean()"><!-- --></A><H3> asBoolean</H3> <PRE> public boolean <B>asBoolean</B>()</PRE> <DL> <DD>Method that will try to convert value of this node to a Java <b>boolean</b>. JSON booleans map naturally; integer numbers other than 0 map to true, and 0 maps to false and Strings 'true' and 'false' map to corresponding values. <p> If representation can not be converted to a boolean value (including structured types like Objects and Arrays), default value of <b>false</b> will be returned; no exceptions are thrown. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="asBoolean(boolean)"><!-- --></A><H3> asBoolean</H3> <PRE> public boolean <B>asBoolean</B>(boolean defaultValue)</PRE> <DL> <DD>Method that will try to convert value of this node to a Java <b>boolean</b>. JSON booleans map naturally; integer numbers other than 0 map to true, and 0 maps to false and Strings 'true' and 'false' map to corresponding values. <p> If representation can not be converted to a boolean value (including structured types like Objects and Arrays), specified <b>defaultValue</b> will be returned; no exceptions are thrown. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="has(java.lang.String)"><!-- --></A><H3> has</H3> <PRE> public 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> <DL> <DD>Method that allows checking whether this node is JSON Object node and contains value for specified property. If this is the case (including properties with explicit null values), returns true; otherwise returns false. <p> This method is equivalent to: <pre> node.get(fieldName) != null </pre> (since return value of get() is node, not value node contains) <p> NOTE: when explicit <code>null</code> values are added, this method will return <code>true</code> for such properties. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>fieldName</CODE> - Name of element to check <DT><B>Returns:</B><DD>True if this node is a JSON Object node, and has a property entry with specified name (with any value, including null value)</DL> </DD> </DL> <HR> <A NAME="has(int)"><!-- --></A><H3> has</H3> <PRE> public boolean <B>has</B>(int index)</PRE> <DL> <DD>Method that allows checking whether this node is JSON Array node and contains a value for specified index If this is the case (including case of specified indexing having null as value), returns true; otherwise returns false. <p> Note: array element indexes are 0-based. <p> This method is equivalent to: <pre> node.get(index) != null </pre> <p> NOTE: this method will return <code>true</code> for explicitly added null values. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>index</CODE> - Index to check <DT><B>Returns:</B><DD>True if this node is a JSON Object node, and has a property entry with specified name (with any value, including null value)</DL> </DD> </DL> <HR> <A NAME="hasNonNull(java.lang.String)"><!-- --></A><H3> hasNonNull</H3> <PRE> public boolean <B>hasNonNull</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> <DL> <DD>Method that is similar to <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#has(java.lang.String)"><CODE>has(String)</CODE></A>, but that will return <code>false</code> for explicitly added nulls. <p> This method is functionally equivalent to: <pre> node.get(fieldName) != null && !node.get(fieldName).isNull() </pre> <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Since:</B></DT> <DD>2.1</DD> </DL> </DD> </DL> <HR> <A NAME="hasNonNull(int)"><!-- --></A><H3> hasNonNull</H3> <PRE> public boolean <B>hasNonNull</B>(int index)</PRE> <DL> <DD>Method that is similar to <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#has(int)"><CODE>has(int)</CODE></A>, but that will return <code>false</code> for explicitly added nulls. <p> This method is equivalent to: <pre> node.get(index) != null && !node.get(index).isNull() </pre> <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Since:</B></DT> <DD>2.1</DD> </DL> </DD> </DL> <HR> <A NAME="findValue(java.lang.String)"><!-- --></A><H3> findValue</H3> <PRE> public 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> <DL> <DD>Method for finding a JSON Object field with specified name in this node or its child nodes, and returning value it has. If no matching field is found in this node or its descendants, returns null. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>fieldName</CODE> - Name of field to look for <DT><B>Returns:</B><DD>Value of first matching node found, if any; null if none</DL> </DD> </DL> <HR> <A NAME="findValues(java.lang.String)"><!-- --></A><H3> findValues</H3> <PRE> public final <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A>> <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> <DL> <DD>Method for finding JSON Object fields with specified name, and returning found ones as a List. Note that sub-tree search ends if a field is found, so possible children of result nodes are <b>not</b> included. If no matching fields are found in this node or its descendants, returns an empty List. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>fieldName</CODE> - Name of field to look for</DL> </DD> </DL> <HR> <A NAME="findValuesAsText(java.lang.String)"><!-- --></A><H3> findValuesAsText</H3> <PRE> public final <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>> <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> <DL> <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 values into Strings, calling <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#asText()"><CODE>asText()</CODE></A>. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="findPath(java.lang.String)"><!-- --></A><H3> findPath</H3> <PRE> public 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> <DL> <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 "missing node" instead of null if no field is found. Missing node is a specific kind of node for which <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode()"><CODE>isMissingNode()</CODE></A> returns true; and all value access methods return empty or missing value. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>fieldName</CODE> - Name of field to look for <DT><B>Returns:</B><DD>Value of first matching node found; or if not found, a "missing node" (non-null instance that has no value)</DL> </DD> </DL> <HR> <A NAME="findParent(java.lang.String)"><!-- --></A><H3> findParent</H3> <PRE> public 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> <DL> <DD>Method for finding a JSON Object that contains specified field, within this node or its descendants. If no matching field is found in this node or its descendants, returns null. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>fieldName</CODE> - Name of field to look for <DT><B>Returns:</B><DD>Value of first matching node found, if any; null if none</DL> </DD> </DL> <HR> <A NAME="findParents(java.lang.String)"><!-- --></A><H3> findParents</H3> <PRE> public final <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A>> <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> <DL> <DD>Method for finding a JSON Object that contains specified field, within this node or its descendants. If no matching field is found in this node or its descendants, returns null. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>fieldName</CODE> - Name of field to look for <DT><B>Returns:</B><DD>Value of first matching node found, if any; null if none</DL> </DD> </DL> <HR> <A NAME="findValues(java.lang.String, java.util.List)"><!-- --></A><H3> findValues</H3> <PRE> public abstract <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A>> <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, <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> <DL> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="findValuesAsText(java.lang.String, java.util.List)"><!-- --></A><H3> findValuesAsText</H3> <PRE> public abstract <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>> <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, <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> <DL> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="findParents(java.lang.String, java.util.List)"><!-- --></A><H3> findParents</H3> <PRE> public abstract <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</A><<A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A>> <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, <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> <DL> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="size()"><!-- --></A><H3> size</H3> <PRE> public int <B>size</B>()</PRE> <DL> <DD>Method that returns number of child nodes this node contains: for Array nodes, number of child elements, for Object nodes, number of fields, and for all other nodes 0. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>For non-container nodes returns 0; for arrays number of contained elements, and for objects number of fields.</DL> </DD> </DL> <HR> <A NAME="iterator()"><!-- --></A><H3> iterator</H3> <PRE> public final <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</A><<A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A>> <B>iterator</B>()</PRE> <DL> <DD>Same as calling <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#elements()"><CODE>elements()</CODE></A>; implemented so that convenience "for-each" loop can be used for looping over elements of JSON Array constructs. <P> <DD><DL> <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> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="elements()"><!-- --></A><H3> elements</H3> <PRE> public <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</A><<A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A>> <B>elements</B>()</PRE> <DL> <DD>Method for accessing all value nodes of this Node, iff this node is a JSON Array or Object node. In case of Object node, field names (keys) are not included, only values. For other types of nodes, returns empty iterator. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="fieldNames()"><!-- --></A><H3> fieldNames</H3> <PRE> public <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</A><<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>> <B>fieldNames</B>()</PRE> <DL> <DD>Method for accessing names of all fields for this Node, iff this node is a JSON Object node. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="fields()"><!-- --></A><H3> fields</H3> <PRE> public <A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/Iterator.html?is-external=true" title="class or interface in java.util">Iterator</A><<A HREF="http://docs.oracle.com/javase/6/docs/api/java/util/Map.Entry.html?is-external=true" title="class or interface in java.util">Map.Entry</A><<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A>,<A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A>>> <B>fields</B>()</PRE> <DL> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Returns:</B><DD>Iterator that can be used to traverse all key/value pairs for object nodes; empty iterator (no contents) for other types</DL> </DD> </DL> <HR> <A NAME="path(java.lang.String)"><!-- --></A><H3> path</H3> <PRE> public 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> <DL> <DD>This method is similar to <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#get(java.lang.String)"><CODE>get(String)</CODE></A>, except that instead of returning null if no such value exists (due to this node not being an object, or object not having value for the specified field), a "missing node" (node that returns true for <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode()"><CODE>isMissingNode()</CODE></A>) will be returned. This allows for convenient and safe chained access via path calls. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="path(int)"><!-- --></A><H3> path</H3> <PRE> public abstract <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A> <B>path</B>(int index)</PRE> <DL> <DD>This method is similar to <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#get(int)"><CODE>get(int)</CODE></A>, except that instead of returning null if no such element exists (due to index being out of range, or this node not being an array), a "missing node" (node that returns true for <A HREF="../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode()"><CODE>isMissingNode()</CODE></A>) will be returned. This allows for convenient and safe chained access via path calls. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="with(java.lang.String)"><!-- --></A><H3> with</H3> <PRE> public <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> <DL> <DD>Method that can be called on Object nodes, to access a property that has Object value; or if no such property exists, to create, add and return such Object node. If the node method is called on is not Object node, or if property exists and has value that is not Object node, <A HREF="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 <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="withArray(java.lang.String)"><!-- --></A><H3> withArray</H3> <PRE> public <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> <DL> <DD>Method that can be called on Object nodes, to access a property that has <code>Array</code> value; or if no such property exists, to create, add and return such Array node. If the node method is called on is not Object node, or if property exists and has value that is not Array node, <A HREF="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 <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="traverse()"><!-- --></A><H3> traverse</H3> <PRE> public abstract <A HREF="http://fasterxml.github.com/jackson-core/javadoc/2.1.0/com/fasterxml/jackson/core/JsonParser.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonParser</A> <B>traverse</B>()</PRE> <DL> <DD>Method for constructing a <A HREF="http://fasterxml.github.com/jackson-core/javadoc/2.1.0/com/fasterxml/jackson/core/JsonParser.html?is-external=true" title="class or interface in com.fasterxml.jackson.core"><CODE>JsonParser</CODE></A> instance for iterating over contents of the tree that this node is root of. Functionally equivalent to first serializing tree using <A HREF="http://fasterxml.github.com/jackson-core/javadoc/2.1.0/com/fasterxml/jackson/core/ObjectCodec.html?is-external=true" title="class or interface in com.fasterxml.jackson.core"><CODE>ObjectCodec</CODE></A> and then re-parsing but more efficient. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="http://fasterxml.github.com/jackson-core/javadoc/2.1.0/com/fasterxml/jackson/core/TreeNode.html?is-external=true#traverse()" title="class or interface in com.fasterxml.jackson.core">traverse</A></CODE> in interface <CODE><A HREF="http://fasterxml.github.com/jackson-core/javadoc/2.1.0/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</A></CODE></DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="toString()"><!-- --></A><H3> toString</H3> <PRE> public abstract <A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</A> <B>toString</B>()</PRE> <DL> <DD><p> Note: marked as abstract to ensure all implementation classes define it properly. <P> <DD><DL> <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> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="equals(java.lang.Object)"><!-- --></A><H3> equals</H3> <PRE> public 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> <DL> <DD>Equality for node objects is defined as full (deep) value equality. This means that it is possible to compare complete JSON trees for equality by comparing equality of root nodes. <p> Note: marked as abstract to ensure all implementation classes define it properly and not rely on definition from <A HREF="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>. <P> <DD><DL> <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> </DD> <DD><DL> </DL> </DD> </DL> <!-- ========= END OF CLASS DATA ========= --> <HR> <!-- ======= START OF BOTTOM NAVBAR ====== --> <A NAME="navbar_bottom"><!-- --></A> <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_bottom_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/JsonNode.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../com/fasterxml/jackson/databind/JsonMappingException.Reference.html" title="class in com.fasterxml.jackson.databind"><B>PREV CLASS</B></A> <A HREF="../../../../com/fasterxml/jackson/databind/JsonSerializable.html" title="interface in com.fasterxml.jackson.databind"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html?com/fasterxml/jackson/databind/JsonNode.html" target="_top"><B>FRAMES</B></A> <A HREF="JsonNode.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_bottom"></A> <!-- ======== END OF BOTTOM NAVBAR ======= --> <HR> Copyright © 2012 <a href="http://fasterxml.com/">FasterXML</a>. All Rights Reserved. </BODY> </HTML>