1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2<!--NewPage--> 3<HTML> 4<HEAD> 5<!-- Generated by javadoc (build 1.6.0_35) on Tue Oct 09 17:08:19 PDT 2012 --> 6<META http-equiv="Content-Type" content="text/html; charset=UTF-8"> 7<TITLE> 8TextNode (jackson-databind 2.1.0 API) 9</TITLE> 10 11<META NAME="date" CONTENT="2012-10-09"> 12 13<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style"> 14 15<SCRIPT type="text/javascript"> 16function windowTitle() 17{ 18 if (location.href.indexOf('is-external=true') == -1) { 19 parent.document.title="TextNode (jackson-databind 2.1.0 API)"; 20 } 21} 22</SCRIPT> 23<NOSCRIPT> 24</NOSCRIPT> 25 26</HEAD> 27 28<BODY BGCOLOR="white" onload="windowTitle();"> 29<HR> 30 31 32<!-- ========= START OF TOP NAVBAR ======= --> 33<A NAME="navbar_top"><!-- --></A> 34<A HREF="#skip-navbar_top" title="Skip navigation links"></A> 35<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 36<TR> 37<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 38<A NAME="navbar_top_firstrow"><!-- --></A> 39<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 40 <TR ALIGN="center" VALIGN="top"> 41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 43 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/TextNode.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> 45 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 46 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 47 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 48 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 49 </TR> 50</TABLE> 51</TD> 52<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 53</EM> 54</TD> 55</TR> 56 57<TR> 58<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 59 <A HREF="../../../../../com/fasterxml/jackson/databind/node/POJONode.html" title="class in com.fasterxml.jackson.databind.node"><B>PREV CLASS</B></A> 60 <A HREF="../../../../../com/fasterxml/jackson/databind/node/TreeTraversingParser.html" title="class in com.fasterxml.jackson.databind.node"><B>NEXT CLASS</B></A></FONT></TD> 61<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 62 <A HREF="../../../../../index.html?com/fasterxml/jackson/databind/node/TextNode.html" target="_top"><B>FRAMES</B></A> 63 <A HREF="TextNode.html" target="_top"><B>NO FRAMES</B></A> 64 <SCRIPT type="text/javascript"> 65 <!-- 66 if(window==top) { 67 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); 68 } 69 //--> 70</SCRIPT> 71<NOSCRIPT> 72 <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> 73</NOSCRIPT> 74 75 76</FONT></TD> 77</TR> 78<TR> 79<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 80 SUMMARY: NESTED | <A HREF="#fields_inherited_from_class_com.fasterxml.jackson.databind.JsonNode">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> 81<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 82DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> 83</TR> 84</TABLE> 85<A NAME="skip-navbar_top"></A> 86<!-- ========= END OF TOP NAVBAR ========= --> 87 88<HR> 89<!-- ======== START OF CLASS DATA ======== --> 90<H2> 91<FONT SIZE="-1"> 92com.fasterxml.jackson.databind.node</FONT> 93<BR> 94Class TextNode</H2> 95<PRE> 96<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A> 97 <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">com.fasterxml.jackson.databind.JsonNode</A> 98 <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html" title="class in com.fasterxml.jackson.databind.node">com.fasterxml.jackson.databind.node.BaseJsonNode</A> 99 <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html" title="class in com.fasterxml.jackson.databind.node">com.fasterxml.jackson.databind.node.ValueNode</A> 100 <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>com.fasterxml.jackson.databind.node.TextNode</B> 101</PRE> 102<DL> 103<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="../../../../../com/fasterxml/jackson/databind/JsonSerializable.html" title="interface in com.fasterxml.jackson.databind">JsonSerializable</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> 104</DL> 105<HR> 106<DL> 107<DT><PRE>public final class <B>TextNode</B><DT>extends <A HREF="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html" title="class in com.fasterxml.jackson.databind.node">ValueNode</A></DL> 108</PRE> 109 110<P> 111Value node that contains a text value. 112<P> 113 114<P> 115<HR> 116 117<P> 118<!-- =========== FIELD SUMMARY =========== --> 119 120<A NAME="field_summary"><!-- --></A> 121<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 122<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 123<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 124<B>Field Summary</B></FONT></TH> 125</TR> 126</TABLE> 127 <A NAME="fields_inherited_from_class_com.fasterxml.jackson.databind.JsonNode"><!-- --></A> 128<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 129<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 130<TH ALIGN="left"><B>Fields inherited from class com.fasterxml.jackson.databind.<A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A></B></TH> 131</TR> 132<TR BGCOLOR="white" CLASS="TableRowColor"> 133<TD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#NO_NODES">NO_NODES</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#NO_STRINGS">NO_STRINGS</A></CODE></TD> 134</TR> 135</TABLE> 136 137<!-- ======== CONSTRUCTOR SUMMARY ======== --> 138 139<A NAME="constructor_summary"><!-- --></A> 140<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 141<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 142<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 143<B>Constructor Summary</B></FONT></TH> 144</TR> 145<TR BGCOLOR="white" CLASS="TableRowColor"> 146<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/node/TextNode.html#TextNode(java.lang.String)">TextNode</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> v)</CODE> 147 148<BR> 149 </TD> 150</TR> 151</TABLE> 152 153<!-- ========== METHOD SUMMARY =========== --> 154 155<A NAME="method_summary"><!-- --></A> 156<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 157<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 158<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 159<B>Method Summary</B></FONT></TH> 160</TR> 161<TR BGCOLOR="white" CLASS="TableRowColor"> 162<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 163<CODE>protected void</CODE></FONT></TD> 164<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/node/TextNode.html#_reportBase64EOF()">_reportBase64EOF</A></B>()</CODE> 165 166<BR> 167 </TD> 168</TR> 169<TR BGCOLOR="white" CLASS="TableRowColor"> 170<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 171<CODE>protected void</CODE></FONT></TD> 172<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/node/TextNode.html#_reportInvalidBase64(com.fasterxml.jackson.core.Base64Variant, char, int)">_reportInvalidBase64</A></B>(<A HREF="http://fasterxml.github.com/jackson-core/javadoc/2.1.0/com/fasterxml/jackson/core/Base64Variant.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">Base64Variant</A> b64variant, 173 char ch, 174 int bindex)</CODE> 175 176<BR> 177 </TD> 178</TR> 179<TR BGCOLOR="white" CLASS="TableRowColor"> 180<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 181<CODE>protected void</CODE></FONT></TD> 182<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/node/TextNode.html#_reportInvalidBase64(com.fasterxml.jackson.core.Base64Variant, char, int, java.lang.String)">_reportInvalidBase64</A></B>(<A HREF="http://fasterxml.github.com/jackson-core/javadoc/2.1.0/com/fasterxml/jackson/core/Base64Variant.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">Base64Variant</A> b64variant, 183 char ch, 184 int bindex, 185 <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> msg)</CODE> 186 187<BR> 188 </TD> 189</TR> 190<TR BGCOLOR="white" CLASS="TableRowColor"> 191<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 192<CODE>protected static void</CODE></FONT></TD> 193<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/node/TextNode.html#appendQuoted(java.lang.StringBuilder, java.lang.String)">appendQuoted</A></B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/StringBuilder.html?is-external=true" title="class or interface in java.lang">StringBuilder</A> sb, 194 <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> content)</CODE> 195 196<BR> 197 </TD> 198</TR> 199<TR BGCOLOR="white" CLASS="TableRowColor"> 200<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 201<CODE> boolean</CODE></FONT></TD> 202<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/node/TextNode.html#asBoolean(boolean)">asBoolean</A></B>(boolean defaultValue)</CODE> 203 204<BR> 205 Method that will try to convert value of this node to a Java <b>boolean</b>.</TD> 206</TR> 207<TR BGCOLOR="white" CLASS="TableRowColor"> 208<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 209<CODE> double</CODE></FONT></TD> 210<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/node/TextNode.html#asDouble(double)">asDouble</A></B>(double defaultValue)</CODE> 211 212<BR> 213 Method that will try to convert value of this node to a Java <b>double</b>.</TD> 214</TR> 215<TR BGCOLOR="white" CLASS="TableRowColor"> 216<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 217<CODE> int</CODE></FONT></TD> 218<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/node/TextNode.html#asInt(int)">asInt</A></B>(int defaultValue)</CODE> 219 220<BR> 221 Method that will try to convert value of this node to a Java <b>int</b>.</TD> 222</TR> 223<TR BGCOLOR="white" CLASS="TableRowColor"> 224<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 225<CODE> long</CODE></FONT></TD> 226<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/node/TextNode.html#asLong(long)">asLong</A></B>(long defaultValue)</CODE> 227 228<BR> 229 Method that will try to convert value of this node to a Java <b>long</b>.</TD> 230</TR> 231<TR BGCOLOR="white" CLASS="TableRowColor"> 232<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 233<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> 234<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/node/TextNode.html#asText()">asText</A></B>()</CODE> 235 236<BR> 237 Method that will return a valid String representation of 238 the container value, if the node is a value node 239 (method <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isValueNode()"><CODE>JsonNode.isValueNode()</CODE></A> returns true), 240 otherwise empty String.</TD> 241</TR> 242<TR BGCOLOR="white" CLASS="TableRowColor"> 243<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 244<CODE> <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> 245<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/node/TextNode.html#asToken()">asToken</A></B>()</CODE> 246 247<BR> 248 Method that can be used for efficient type detection 249 when using stream abstraction for traversing nodes.</TD> 250</TR> 251<TR BGCOLOR="white" CLASS="TableRowColor"> 252<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 253<CODE> byte[]</CODE></FONT></TD> 254<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/node/TextNode.html#binaryValue()">binaryValue</A></B>()</CODE> 255 256<BR> 257 Method to use for accessing binary content of binary nodes (nodes 258 for which <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isBinary()"><CODE>JsonNode.isBinary()</CODE></A> returns true); or for Text Nodes 259 (ones for which <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#textValue()"><CODE>JsonNode.textValue()</CODE></A> returns non-null value), 260 to read decoded base64 data.</TD> 261</TR> 262<TR BGCOLOR="white" CLASS="TableRowColor"> 263<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 264<CODE> boolean</CODE></FONT></TD> 265<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/node/TextNode.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> 266 267<BR> 268 Equality for node objects is defined as full (deep) value 269 equality.</TD> 270</TR> 271<TR BGCOLOR="white" CLASS="TableRowColor"> 272<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 273<CODE> byte[]</CODE></FONT></TD> 274<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/node/TextNode.html#getBinaryValue(com.fasterxml.jackson.core.Base64Variant)">getBinaryValue</A></B>(<A HREF="http://fasterxml.github.com/jackson-core/javadoc/2.1.0/com/fasterxml/jackson/core/Base64Variant.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">Base64Variant</A> b64variant)</CODE> 275 276<BR> 277 Method for accessing textual contents assuming they were 278 base64 encoded; if so, they are decoded and resulting binary 279 data is returned.</TD> 280</TR> 281<TR BGCOLOR="white" CLASS="TableRowColor"> 282<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 283<CODE> int</CODE></FONT></TD> 284<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/node/TextNode.html#hashCode()">hashCode</A></B>()</CODE> 285 286<BR> 287 </TD> 288</TR> 289<TR BGCOLOR="white" CLASS="TableRowColor"> 290<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 291<CODE> boolean</CODE></FONT></TD> 292<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/node/TextNode.html#isTextual()">isTextual</A></B>()</CODE> 293 294<BR> 295 Yes indeed it is textual</TD> 296</TR> 297<TR BGCOLOR="white" CLASS="TableRowColor"> 298<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 299<CODE> void</CODE></FONT></TD> 300<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/node/TextNode.html#serialize(com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.SerializerProvider)">serialize</A></B>(<A HREF="http://fasterxml.github.com/jackson-core/javadoc/2.1.0/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator</A> jg, 301 <A HREF="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html" title="class in com.fasterxml.jackson.databind">SerializerProvider</A> provider)</CODE> 302 303<BR> 304 Method called to serialize node instances using given generator.</TD> 305</TR> 306<TR BGCOLOR="white" CLASS="TableRowColor"> 307<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 308<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> 309<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/node/TextNode.html#textValue()">textValue</A></B>()</CODE> 310 311<BR> 312 Method to use for accessing String values.</TD> 313</TR> 314<TR BGCOLOR="white" CLASS="TableRowColor"> 315<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 316<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> 317<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/node/TextNode.html#toString()">toString</A></B>()</CODE> 318 319<BR> 320 Different from other values, Strings need quoting</TD> 321</TR> 322<TR BGCOLOR="white" CLASS="TableRowColor"> 323<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 324<CODE>static <A HREF="../../../../../com/fasterxml/jackson/databind/node/TextNode.html" title="class in com.fasterxml.jackson.databind.node">TextNode</A></CODE></FONT></TD> 325<TD><CODE><B><A HREF="../../../../../com/fasterxml/jackson/databind/node/TextNode.html#valueOf(java.lang.String)">valueOf</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> v)</CODE> 326 327<BR> 328 Factory method that should be used to construct instances.</TD> 329</TR> 330</TABLE> 331 <A NAME="methods_inherited_from_class_com.fasterxml.jackson.databind.node.ValueNode"><!-- --></A> 332<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 333<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 334<TH ALIGN="left"><B>Methods inherited from class com.fasterxml.jackson.databind.node.<A HREF="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html" title="class in com.fasterxml.jackson.databind.node">ValueNode</A></B></TH> 335</TR> 336<TR BGCOLOR="white" CLASS="TableRowColor"> 337<TD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#deepCopy()">deepCopy</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#isValueNode()">isValueNode</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#path(int)">path</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#path(java.lang.String)">path</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#serializeWithType(com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.SerializerProvider, com.fasterxml.jackson.databind.jsontype.TypeSerializer)">serializeWithType</A></CODE></TD> 338</TR> 339</TABLE> 340 <A NAME="methods_inherited_from_class_com.fasterxml.jackson.databind.node.BaseJsonNode"><!-- --></A> 341<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 342<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 343<TH ALIGN="left"><B>Methods inherited from class com.fasterxml.jackson.databind.node.<A HREF="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html" title="class in com.fasterxml.jackson.databind.node">BaseJsonNode</A></B></TH> 344</TR> 345<TR BGCOLOR="white" CLASS="TableRowColor"> 346<TD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#findParent(java.lang.String)">findParent</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#findParents(java.lang.String, java.util.List)">findParents</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#findPath(java.lang.String)">findPath</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#findValue(java.lang.String)">findValue</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#findValues(java.lang.String, java.util.List)">findValues</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#findValuesAsText(java.lang.String, java.util.List)">findValuesAsText</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#numberType()">numberType</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#traverse()">traverse</A></CODE></TD> 347</TR> 348</TABLE> 349 <A NAME="methods_inherited_from_class_com.fasterxml.jackson.databind.JsonNode"><!-- --></A> 350<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 351<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 352<TH ALIGN="left"><B>Methods inherited from class com.fasterxml.jackson.databind.<A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A></B></TH> 353</TR> 354<TR BGCOLOR="white" CLASS="TableRowColor"> 355<TD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asBoolean()">asBoolean</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asDouble()">asDouble</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asInt()">asInt</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asLong()">asLong</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#bigIntegerValue()">bigIntegerValue</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#booleanValue()">booleanValue</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#canConvertToInt()">canConvertToInt</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#canConvertToLong()">canConvertToLong</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#decimalValue()">decimalValue</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#doubleValue()">doubleValue</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#elements()">elements</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#fieldNames()">fieldNames</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#fields()">fields</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#findParents(java.lang.String)">findParents</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#findValues(java.lang.String)">findValues</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#findValuesAsText(java.lang.String)">findValuesAsText</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#get(int)">get</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#get(java.lang.String)">get</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#has(int)">has</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#has(java.lang.String)">has</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#hasNonNull(int)">hasNonNull</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#hasNonNull(java.lang.String)">hasNonNull</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#intValue()">intValue</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isArray()">isArray</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isBigDecimal()">isBigDecimal</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isBigInteger()">isBigInteger</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isBinary()">isBinary</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isBoolean()">isBoolean</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isContainerNode()">isContainerNode</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isDouble()">isDouble</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isFloatingPointNumber()">isFloatingPointNumber</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isInt()">isInt</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isIntegralNumber()">isIntegralNumber</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isLong()">isLong</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode()">isMissingNode</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNull()">isNull</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()">isNumber</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isObject()">isObject</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isPojo()">isPojo</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#iterator()">iterator</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#longValue()">longValue</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#numberValue()">numberValue</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#size()">size</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#with(java.lang.String)">with</A>, <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#withArray(java.lang.String)">withArray</A></CODE></TD> 356</TR> 357</TABLE> 358 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> 359<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 360<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 361<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> 362</TR> 363<TR BGCOLOR="white" CLASS="TableRowColor"> 364<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#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> 365</TR> 366</TABLE> 367 368<P> 369 370<!-- ========= CONSTRUCTOR DETAIL ======== --> 371 372<A NAME="constructor_detail"><!-- --></A> 373<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 374<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 375<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 376<B>Constructor Detail</B></FONT></TH> 377</TR> 378</TABLE> 379 380<A NAME="TextNode(java.lang.String)"><!-- --></A><H3> 381TextNode</H3> 382<PRE> 383public <B>TextNode</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> v)</PRE> 384<DL> 385</DL> 386 387<!-- ============ METHOD DETAIL ========== --> 388 389<A NAME="method_detail"><!-- --></A> 390<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 391<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 392<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 393<B>Method Detail</B></FONT></TH> 394</TR> 395</TABLE> 396 397<A NAME="valueOf(java.lang.String)"><!-- --></A><H3> 398valueOf</H3> 399<PRE> 400public static <A HREF="../../../../../com/fasterxml/jackson/databind/node/TextNode.html" title="class in com.fasterxml.jackson.databind.node">TextNode</A> <B>valueOf</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> v)</PRE> 401<DL> 402<DD>Factory method that should be used to construct instances. 403 For some common cases, can reuse canonical instances: currently 404 this is the case for empty Strings, in future possible for 405 others as well. If null is passed, will return null. 406<P> 407<DD><DL> 408 409<DT><B>Returns:</B><DD>Resulting <A HREF="../../../../../com/fasterxml/jackson/databind/node/TextNode.html" title="class in com.fasterxml.jackson.databind.node"><CODE>TextNode</CODE></A> object, if <b>v</b> 410 is NOT null; null if it is.</DL> 411</DD> 412</DL> 413<HR> 414 415<A NAME="asToken()"><!-- --></A><H3> 416asToken</H3> 417<PRE> 418public <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> 419<DL> 420<DD><B>Description copied from class: <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#asToken()">BaseJsonNode</A></CODE></B></DD> 421<DD>Method that can be used for efficient type detection 422 when using stream abstraction for traversing nodes. 423 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 424 stream event would produce (for most nodes there is just 425 one token but for structured/container types multiple) 426<P> 427<DD><DL> 428<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><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#asToken()">asToken</A></CODE> in class <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html" title="class in com.fasterxml.jackson.databind.node">ValueNode</A></CODE></DL> 429</DD> 430<DD><DL> 431</DL> 432</DD> 433</DL> 434<HR> 435 436<A NAME="isTextual()"><!-- --></A><H3> 437isTextual</H3> 438<PRE> 439public boolean <B>isTextual</B>()</PRE> 440<DL> 441<DD>Yes indeed it is textual 442<P> 443<DD><DL> 444<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isTextual()">isTextual</A></CODE> in class <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A></CODE></DL> 445</DD> 446<DD><DL> 447</DL> 448</DD> 449</DL> 450<HR> 451 452<A NAME="textValue()"><!-- --></A><H3> 453textValue</H3> 454<PRE> 455public <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> 456<DL> 457<DD><B>Description copied from class: <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#textValue()">JsonNode</A></CODE></B></DD> 458<DD>Method to use for accessing String values. 459 Does <b>NOT</b> do any conversions for non-String value nodes; 460 for non-String values (ones for which <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isTextual()"><CODE>JsonNode.isTextual()</CODE></A> returns 461 false) null will be returned. 462 For String values, null is never returned (but empty Strings may be) 463<P> 464<DD><DL> 465<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#textValue()">textValue</A></CODE> in class <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A></CODE></DL> 466</DD> 467<DD><DL> 468 469<DT><B>Returns:</B><DD>Textual value this node contains, iff it is a textual 470 JSON node (comes from JSON String value entry)</DL> 471</DD> 472</DL> 473<HR> 474 475<A NAME="getBinaryValue(com.fasterxml.jackson.core.Base64Variant)"><!-- --></A><H3> 476getBinaryValue</H3> 477<PRE> 478public byte[] <B>getBinaryValue</B>(<A HREF="http://fasterxml.github.com/jackson-core/javadoc/2.1.0/com/fasterxml/jackson/core/Base64Variant.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">Base64Variant</A> b64variant) 479 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> 480<DL> 481<DD>Method for accessing textual contents assuming they were 482 base64 encoded; if so, they are decoded and resulting binary 483 data is returned. 484<P> 485<DD><DL> 486 487<DT><B>Throws:</B> 488<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> 489</DD> 490</DL> 491<HR> 492 493<A NAME="binaryValue()"><!-- --></A><H3> 494binaryValue</H3> 495<PRE> 496public byte[] <B>binaryValue</B>() 497 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> 498<DL> 499<DD><B>Description copied from class: <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#binaryValue()">JsonNode</A></CODE></B></DD> 500<DD>Method to use for accessing binary content of binary nodes (nodes 501 for which <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isBinary()"><CODE>JsonNode.isBinary()</CODE></A> returns true); or for Text Nodes 502 (ones for which <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#textValue()"><CODE>JsonNode.textValue()</CODE></A> returns non-null value), 503 to read decoded base64 data. 504 For other types of nodes, returns null. 505<P> 506<DD><DL> 507<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#binaryValue()">binaryValue</A></CODE> in class <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A></CODE></DL> 508</DD> 509<DD><DL> 510 511<DT><B>Returns:</B><DD>Binary data this node contains, iff it is a binary 512 node; null otherwise 513<DT><B>Throws:</B> 514<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> 515</DD> 516</DL> 517<HR> 518 519<A NAME="asText()"><!-- --></A><H3> 520asText</H3> 521<PRE> 522public <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> 523<DL> 524<DD><B>Description copied from class: <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asText()">JsonNode</A></CODE></B></DD> 525<DD>Method that will return a valid String representation of 526 the container value, if the node is a value node 527 (method <A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isValueNode()"><CODE>JsonNode.isValueNode()</CODE></A> returns true), 528 otherwise empty String. 529<P> 530<DD><DL> 531<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asText()">asText</A></CODE> in class <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A></CODE></DL> 532</DD> 533<DD><DL> 534</DL> 535</DD> 536</DL> 537<HR> 538 539<A NAME="asBoolean(boolean)"><!-- --></A><H3> 540asBoolean</H3> 541<PRE> 542public boolean <B>asBoolean</B>(boolean defaultValue)</PRE> 543<DL> 544<DD><B>Description copied from class: <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asBoolean(boolean)">JsonNode</A></CODE></B></DD> 545<DD>Method that will try to convert value of this node to a Java <b>boolean</b>. 546 JSON booleans map naturally; integer numbers other than 0 map to true, and 547 0 maps to false 548 and Strings 'true' and 'false' map to corresponding values. 549<p> 550 If representation can not be converted to a boolean value (including structured types 551 like Objects and Arrays), 552 specified <b>defaultValue</b> will be returned; no exceptions are thrown. 553<P> 554<DD><DL> 555<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asBoolean(boolean)">asBoolean</A></CODE> in class <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A></CODE></DL> 556</DD> 557<DD><DL> 558</DL> 559</DD> 560</DL> 561<HR> 562 563<A NAME="asInt(int)"><!-- --></A><H3> 564asInt</H3> 565<PRE> 566public int <B>asInt</B>(int defaultValue)</PRE> 567<DL> 568<DD><B>Description copied from class: <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asInt(int)">JsonNode</A></CODE></B></DD> 569<DD>Method that will try to convert value of this node to a Java <b>int</b>. 570 Numbers are coerced using default Java rules; booleans convert to 0 (false) 571 and 1 (true), and Strings are parsed using default Java language integer 572 parsing rules. 573<p> 574 If representation can not be converted to an int (including structured types 575 like Objects and Arrays), 576 specified <b>defaultValue</b> will be returned; no exceptions are thrown. 577<P> 578<DD><DL> 579<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asInt(int)">asInt</A></CODE> in class <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A></CODE></DL> 580</DD> 581<DD><DL> 582</DL> 583</DD> 584</DL> 585<HR> 586 587<A NAME="asLong(long)"><!-- --></A><H3> 588asLong</H3> 589<PRE> 590public long <B>asLong</B>(long defaultValue)</PRE> 591<DL> 592<DD><B>Description copied from class: <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asLong(long)">JsonNode</A></CODE></B></DD> 593<DD>Method that will try to convert value of this node to a Java <b>long</b>. 594 Numbers are coerced using default Java rules; booleans convert to 0 (false) 595 and 1 (true), and Strings are parsed using default Java language integer 596 parsing rules. 597<p> 598 If representation can not be converted to an long (including structured types 599 like Objects and Arrays), 600 specified <b>defaultValue</b> will be returned; no exceptions are thrown. 601<P> 602<DD><DL> 603<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asLong(long)">asLong</A></CODE> in class <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A></CODE></DL> 604</DD> 605<DD><DL> 606</DL> 607</DD> 608</DL> 609<HR> 610 611<A NAME="asDouble(double)"><!-- --></A><H3> 612asDouble</H3> 613<PRE> 614public double <B>asDouble</B>(double defaultValue)</PRE> 615<DL> 616<DD><B>Description copied from class: <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asDouble(double)">JsonNode</A></CODE></B></DD> 617<DD>Method that will try to convert value of this node to a Java <b>double</b>. 618 Numbers are coerced using default Java rules; booleans convert to 0.0 (false) 619 and 1.0 (true), and Strings are parsed using default Java language integer 620 parsing rules. 621<p> 622 If representation can not be converted to an int (including structured types 623 like Objects and Arrays), 624 specified <b>defaultValue</b> will be returned; no exceptions are thrown. 625<P> 626<DD><DL> 627<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asDouble(double)">asDouble</A></CODE> in class <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A></CODE></DL> 628</DD> 629<DD><DL> 630</DL> 631</DD> 632</DL> 633<HR> 634 635<A NAME="serialize(com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.SerializerProvider)"><!-- --></A><H3> 636serialize</H3> 637<PRE> 638public final void <B>serialize</B>(<A HREF="http://fasterxml.github.com/jackson-core/javadoc/2.1.0/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator</A> jg, 639 <A HREF="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html" title="class in com.fasterxml.jackson.databind">SerializerProvider</A> provider) 640 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>, 641 <A HREF="http://fasterxml.github.com/jackson-core/javadoc/2.1.0/com/fasterxml/jackson/core/JsonProcessingException.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonProcessingException</A></PRE> 642<DL> 643<DD><B>Description copied from class: <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#serialize(com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.SerializerProvider)">BaseJsonNode</A></CODE></B></DD> 644<DD>Method called to serialize node instances using given generator. 645<P> 646<DD><DL> 647<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonSerializable.html#serialize(com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.SerializerProvider)">serialize</A></CODE> in interface <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonSerializable.html" title="interface in com.fasterxml.jackson.databind">JsonSerializable</A></CODE><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#serialize(com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.SerializerProvider)">serialize</A></CODE> in class <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html" title="class in com.fasterxml.jackson.databind.node">BaseJsonNode</A></CODE></DL> 648</DD> 649<DD><DL> 650 651<DT><B>Throws:</B> 652<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> 653<DD><CODE><A HREF="http://fasterxml.github.com/jackson-core/javadoc/2.1.0/com/fasterxml/jackson/core/JsonProcessingException.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonProcessingException</A></CODE></DL> 654</DD> 655</DL> 656<HR> 657 658<A NAME="equals(java.lang.Object)"><!-- --></A><H3> 659equals</H3> 660<PRE> 661public 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> 662<DL> 663<DD><B>Description copied from class: <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#equals(java.lang.Object)">JsonNode</A></CODE></B></DD> 664<DD>Equality for node objects is defined as full (deep) value 665 equality. This means that it is possible to compare complete 666 JSON trees for equality by comparing equality of root nodes. 667<p> 668 Note: marked as abstract to ensure all implementation 669 classes define it properly and not rely on definition 670 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>. 671<P> 672<DD><DL> 673<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html#equals(java.lang.Object)">equals</A></CODE> in class <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</A></CODE></DL> 674</DD> 675<DD><DL> 676</DL> 677</DD> 678</DL> 679<HR> 680 681<A NAME="hashCode()"><!-- --></A><H3> 682hashCode</H3> 683<PRE> 684public int <B>hashCode</B>()</PRE> 685<DL> 686<DD><DL> 687<DT><B>Overrides:</B><DD><CODE><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></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> 688</DD> 689<DD><DL> 690</DL> 691</DD> 692</DL> 693<HR> 694 695<A NAME="toString()"><!-- --></A><H3> 696toString</H3> 697<PRE> 698public <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> 699<DL> 700<DD>Different from other values, Strings need quoting 701<P> 702<DD><DL> 703<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#toString()">toString</A></CODE> in class <CODE><A HREF="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html" title="class in com.fasterxml.jackson.databind.node">ValueNode</A></CODE></DL> 704</DD> 705<DD><DL> 706</DL> 707</DD> 708</DL> 709<HR> 710 711<A NAME="appendQuoted(java.lang.StringBuilder, java.lang.String)"><!-- --></A><H3> 712appendQuoted</H3> 713<PRE> 714protected static void <B>appendQuoted</B>(<A HREF="http://docs.oracle.com/javase/6/docs/api/java/lang/StringBuilder.html?is-external=true" title="class or interface in java.lang">StringBuilder</A> sb, 715 <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> content)</PRE> 716<DL> 717<DD><DL> 718</DL> 719</DD> 720</DL> 721<HR> 722 723<A NAME="_reportInvalidBase64(com.fasterxml.jackson.core.Base64Variant, char, int)"><!-- --></A><H3> 724_reportInvalidBase64</H3> 725<PRE> 726protected void <B>_reportInvalidBase64</B>(<A HREF="http://fasterxml.github.com/jackson-core/javadoc/2.1.0/com/fasterxml/jackson/core/Base64Variant.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">Base64Variant</A> b64variant, 727 char ch, 728 int bindex) 729 throws <A HREF="http://fasterxml.github.com/jackson-core/javadoc/2.1.0/com/fasterxml/jackson/core/JsonParseException.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonParseException</A></PRE> 730<DL> 731<DD><DL> 732 733<DT><B>Throws:</B> 734<DD><CODE><A HREF="http://fasterxml.github.com/jackson-core/javadoc/2.1.0/com/fasterxml/jackson/core/JsonParseException.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonParseException</A></CODE></DL> 735</DD> 736</DL> 737<HR> 738 739<A NAME="_reportInvalidBase64(com.fasterxml.jackson.core.Base64Variant, char, int, java.lang.String)"><!-- --></A><H3> 740_reportInvalidBase64</H3> 741<PRE> 742protected void <B>_reportInvalidBase64</B>(<A HREF="http://fasterxml.github.com/jackson-core/javadoc/2.1.0/com/fasterxml/jackson/core/Base64Variant.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">Base64Variant</A> b64variant, 743 char ch, 744 int bindex, 745 <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> msg) 746 throws <A HREF="http://fasterxml.github.com/jackson-core/javadoc/2.1.0/com/fasterxml/jackson/core/JsonParseException.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonParseException</A></PRE> 747<DL> 748<DD><DL> 749<DT><B>Parameters:</B><DD><CODE>bindex</CODE> - Relative index within base64 character unit; between 0 750 and 3 (as unit has exactly 4 characters) 751<DT><B>Throws:</B> 752<DD><CODE><A HREF="http://fasterxml.github.com/jackson-core/javadoc/2.1.0/com/fasterxml/jackson/core/JsonParseException.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonParseException</A></CODE></DL> 753</DD> 754</DL> 755<HR> 756 757<A NAME="_reportBase64EOF()"><!-- --></A><H3> 758_reportBase64EOF</H3> 759<PRE> 760protected void <B>_reportBase64EOF</B>() 761 throws <A HREF="http://fasterxml.github.com/jackson-core/javadoc/2.1.0/com/fasterxml/jackson/core/JsonParseException.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonParseException</A></PRE> 762<DL> 763<DD><DL> 764 765<DT><B>Throws:</B> 766<DD><CODE><A HREF="http://fasterxml.github.com/jackson-core/javadoc/2.1.0/com/fasterxml/jackson/core/JsonParseException.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonParseException</A></CODE></DL> 767</DD> 768</DL> 769<!-- ========= END OF CLASS DATA ========= --> 770<HR> 771 772 773<!-- ======= START OF BOTTOM NAVBAR ====== --> 774<A NAME="navbar_bottom"><!-- --></A> 775<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> 776<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 777<TR> 778<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 779<A NAME="navbar_bottom_firstrow"><!-- --></A> 780<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 781 <TR ALIGN="center" VALIGN="top"> 782 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> 783 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 784 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 785 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/TextNode.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> 786 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 787 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 788 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 789 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 790 </TR> 791</TABLE> 792</TD> 793<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 794</EM> 795</TD> 796</TR> 797 798<TR> 799<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 800 <A HREF="../../../../../com/fasterxml/jackson/databind/node/POJONode.html" title="class in com.fasterxml.jackson.databind.node"><B>PREV CLASS</B></A> 801 <A HREF="../../../../../com/fasterxml/jackson/databind/node/TreeTraversingParser.html" title="class in com.fasterxml.jackson.databind.node"><B>NEXT CLASS</B></A></FONT></TD> 802<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 803 <A HREF="../../../../../index.html?com/fasterxml/jackson/databind/node/TextNode.html" target="_top"><B>FRAMES</B></A> 804 <A HREF="TextNode.html" target="_top"><B>NO FRAMES</B></A> 805 <SCRIPT type="text/javascript"> 806 <!-- 807 if(window==top) { 808 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); 809 } 810 //--> 811</SCRIPT> 812<NOSCRIPT> 813 <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A> 814</NOSCRIPT> 815 816 817</FONT></TD> 818</TR> 819<TR> 820<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 821 SUMMARY: NESTED | <A HREF="#fields_inherited_from_class_com.fasterxml.jackson.databind.JsonNode">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> 822<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 823DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> 824</TR> 825</TABLE> 826<A NAME="skip-navbar_bottom"></A> 827<!-- ======== END OF BOTTOM NAVBAR ======= --> 828 829<HR> 830Copyright © 2012 <a href="http://fasterxml.com/">FasterXML</a>. All Rights Reserved. 831</BODY> 832</HTML> 833