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