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_10-ea) on Sun Jul 14 20:03:32 PDT 2013 --> 6<title>NullNode (Jackson JSON Processor)</title> 7<meta name="date" content="2013-07-14"> 8<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> 9</head> 10<body> 11<script type="text/javascript"><!-- 12 if (location.href.indexOf('is-external=true') == -1) { 13 parent.document.title="NullNode (Jackson JSON Processor)"; 14 } 15//--> 16</script> 17<noscript> 18<div>JavaScript is disabled on your browser.</div> 19</noscript> 20<!-- ========= START OF TOP NAVBAR ======= --> 21<div class="topNav"><a name="navbar_top"> 22<!-- --> 23</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> 24<!-- --> 25</a> 26<ul class="navList" title="Navigation"> 27<li><a href="../../../../overview-summary.html">Overview</a></li> 28<li><a href="package-summary.html">Package</a></li> 29<li class="navBarCell1Rev">Class</li> 30<li><a href="class-use/NullNode.html">Use</a></li> 31<li><a href="package-tree.html">Tree</a></li> 32<li><a href="../../../../deprecated-list.html">Deprecated</a></li> 33<li><a href="../../../../index-all.html">Index</a></li> 34<li><a href="../../../../help-doc.html">Help</a></li> 35</ul> 36</div> 37<div class="subNav"> 38<ul class="navList"> 39<li><a href="../../../../org/codehaus/jackson/node/MissingNode.html" title="class in org.codehaus.jackson.node"><span class="strong">Prev Class</span></a></li> 40<li><a href="../../../../org/codehaus/jackson/node/NumericNode.html" title="class in org.codehaus.jackson.node"><span class="strong">Next Class</span></a></li> 41</ul> 42<ul class="navList"> 43<li><a href="../../../../index.html?org/codehaus/jackson/node/NullNode.html" target="_top">Frames</a></li> 44<li><a href="NullNode.html" target="_top">No Frames</a></li> 45</ul> 46<ul class="navList" id="allclasses_navbar_top"> 47<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> 48</ul> 49<div> 50<script type="text/javascript"><!-- 51 allClassesLink = document.getElementById("allclasses_navbar_top"); 52 if(window==top) { 53 allClassesLink.style.display = "block"; 54 } 55 else { 56 allClassesLink.style.display = "none"; 57 } 58 //--> 59</script> 60</div> 61<div> 62<ul class="subNavList"> 63<li>Summary: </li> 64<li>Nested | </li> 65<li><a href="#field_summary">Field</a> | </li> 66<li>Constr | </li> 67<li><a href="#method_summary">Method</a></li> 68</ul> 69<ul class="subNavList"> 70<li>Detail: </li> 71<li><a href="#field_detail">Field</a> | </li> 72<li>Constr | </li> 73<li><a href="#method_detail">Method</a></li> 74</ul> 75</div> 76<a name="skip-navbar_top"> 77<!-- --> 78</a></div> 79<!-- ========= END OF TOP NAVBAR ========= --> 80<!-- ======== START OF CLASS DATA ======== --> 81<div class="header"> 82<div class="subTitle">org.codehaus.jackson.node</div> 83<h2 title="Class NullNode" class="title">Class NullNode</h2> 84</div> 85<div class="contentContainer"> 86<ul class="inheritance"> 87<li><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></li> 88<li> 89<ul class="inheritance"> 90<li><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">org.codehaus.jackson.JsonNode</a></li> 91<li> 92<ul class="inheritance"> 93<li><a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html" title="class in org.codehaus.jackson.node">org.codehaus.jackson.node.BaseJsonNode</a></li> 94<li> 95<ul class="inheritance"> 96<li><a href="../../../../org/codehaus/jackson/node/ValueNode.html" title="class in org.codehaus.jackson.node">org.codehaus.jackson.node.ValueNode</a></li> 97<li> 98<ul class="inheritance"> 99<li>org.codehaus.jackson.node.NullNode</li> 100</ul> 101</li> 102</ul> 103</li> 104</ul> 105</li> 106</ul> 107</li> 108</ul> 109<div class="description"> 110<ul class="blockList"> 111<li class="blockList"> 112<dl> 113<dt>All Implemented Interfaces:</dt> 114<dd><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="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a>>, <a href="../../../../org/codehaus/jackson/map/JsonSerializable.html" title="interface in org.codehaus.jackson.map">JsonSerializable</a>, <a href="../../../../org/codehaus/jackson/map/JsonSerializableWithType.html" title="interface in org.codehaus.jackson.map">JsonSerializableWithType</a></dd> 115</dl> 116<hr> 117<br> 118<pre>public final class <span class="strong">NullNode</span> 119extends <a href="../../../../org/codehaus/jackson/node/ValueNode.html" title="class in org.codehaus.jackson.node">ValueNode</a></pre> 120<div class="block">This singleton value class is used to contain explicit JSON null 121 value.</div> 122</li> 123</ul> 124</div> 125<div class="summary"> 126<ul class="blockList"> 127<li class="blockList"> 128<!-- =========== FIELD SUMMARY =========== --> 129<ul class="blockList"> 130<li class="blockList"><a name="field_summary"> 131<!-- --> 132</a> 133<h3>Field Summary</h3> 134<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> 135<caption><span>Fields</span><span class="tabEnd"> </span></caption> 136<tr> 137<th class="colFirst" scope="col">Modifier and Type</th> 138<th class="colLast" scope="col">Field and Description</th> 139</tr> 140<tr class="altColor"> 141<td class="colFirst"><code>static <a href="../../../../org/codehaus/jackson/node/NullNode.html" title="class in org.codehaus.jackson.node">NullNode</a></code></td> 142<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/NullNode.html#instance">instance</a></strong></code> </td> 143</tr> 144</table> 145<ul class="blockList"> 146<li class="blockList"><a name="fields_inherited_from_class_org.codehaus.jackson.JsonNode"> 147<!-- --> 148</a> 149<h3>Fields inherited from class org.codehaus.jackson.<a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></h3> 150<code><a href="../../../../org/codehaus/jackson/JsonNode.html#NO_NODES">NO_NODES</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#NO_STRINGS">NO_STRINGS</a></code></li> 151</ul> 152</li> 153</ul> 154<!-- ========== METHOD SUMMARY =========== --> 155<ul class="blockList"> 156<li class="blockList"><a name="method_summary"> 157<!-- --> 158</a> 159<h3>Method Summary</h3> 160<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> 161<caption><span>Methods</span><span class="tabEnd"> </span></caption> 162<tr> 163<th class="colFirst" scope="col">Modifier and Type</th> 164<th class="colLast" scope="col">Method and Description</th> 165</tr> 166<tr class="altColor"> 167<td class="colFirst"><code>double</code></td> 168<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/NullNode.html#asDouble(double)">asDouble</a></strong>(double defaultValue)</code> 169<div class="block">Method that will try to convert value of this node to a Java <b>double</b>.</div> 170</td> 171</tr> 172<tr class="rowColor"> 173<td class="colFirst"><code>int</code></td> 174<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/NullNode.html#asInt(int)">asInt</a></strong>(int defaultValue)</code> 175<div class="block">Method that will try to convert value of this node to a Java <b>int</b>.</div> 176</td> 177</tr> 178<tr class="altColor"> 179<td class="colFirst"><code>long</code></td> 180<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/NullNode.html#asLong(long)">asLong</a></strong>(long defaultValue)</code> 181<div class="block">Method that will try to convert value of this node to a Java <b>long</b>.</div> 182</td> 183</tr> 184<tr class="rowColor"> 185<td class="colFirst"><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></td> 186<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/NullNode.html#asText()">asText</a></strong>()</code> 187<div class="block">Method that will return valid String representation of 188 the container value, if the node is a value node 189 (method <a href="../../../../org/codehaus/jackson/JsonNode.html#isValueNode()"><code>JsonNode.isValueNode()</code></a> returns true), otherwise 190 empty String.</div> 191</td> 192</tr> 193<tr class="altColor"> 194<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a></code></td> 195<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/NullNode.html#asToken()">asToken</a></strong>()</code> 196<div class="block">Method that can be used for efficient type detection 197 when using stream abstraction for traversing nodes.</div> 198</td> 199</tr> 200<tr class="rowColor"> 201<td class="colFirst"><code>boolean</code></td> 202<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/NullNode.html#equals(java.lang.Object)">equals</a></strong>(<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> 203<div class="block">Equality for node objects is defined as full (deep) value 204 equality.</div> 205</td> 206</tr> 207<tr class="altColor"> 208<td class="colFirst"><code>static <a href="../../../../org/codehaus/jackson/node/NullNode.html" title="class in org.codehaus.jackson.node">NullNode</a></code></td> 209<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/NullNode.html#getInstance()">getInstance</a></strong>()</code> </td> 210</tr> 211<tr class="rowColor"> 212<td class="colFirst"><code>boolean</code></td> 213<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/NullNode.html#isNull()">isNull</a></strong>()</code> 214<div class="block">Method that can be used to check if this node was created from 215 Json liternal null value.</div> 216</td> 217</tr> 218<tr class="altColor"> 219<td class="colFirst"><code>void</code></td> 220<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/NullNode.html#serialize(org.codehaus.jackson.JsonGenerator, org.codehaus.jackson.map.SerializerProvider)">serialize</a></strong>(<a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a> jg, 221 <a href="../../../../org/codehaus/jackson/map/SerializerProvider.html" title="class in org.codehaus.jackson.map">SerializerProvider</a> provider)</code> 222<div class="block">Method called to serialize node instances using given generator.</div> 223</td> 224</tr> 225</table> 226<ul class="blockList"> 227<li class="blockList"><a name="methods_inherited_from_class_org.codehaus.jackson.node.ValueNode"> 228<!-- --> 229</a> 230<h3>Methods inherited from class org.codehaus.jackson.node.<a href="../../../../org/codehaus/jackson/node/ValueNode.html" title="class in org.codehaus.jackson.node">ValueNode</a></h3> 231<code><a href="../../../../org/codehaus/jackson/node/ValueNode.html#isValueNode()">isValueNode</a>, <a href="../../../../org/codehaus/jackson/node/ValueNode.html#path(int)">path</a>, <a href="../../../../org/codehaus/jackson/node/ValueNode.html#path(java.lang.String)">path</a>, <a href="../../../../org/codehaus/jackson/node/ValueNode.html#serializeWithType(org.codehaus.jackson.JsonGenerator, org.codehaus.jackson.map.SerializerProvider, org.codehaus.jackson.map.TypeSerializer)">serializeWithType</a>, <a href="../../../../org/codehaus/jackson/node/ValueNode.html#toString()">toString</a></code></li> 232</ul> 233<ul class="blockList"> 234<li class="blockList"><a name="methods_inherited_from_class_org.codehaus.jackson.node.BaseJsonNode"> 235<!-- --> 236</a> 237<h3>Methods inherited from class org.codehaus.jackson.node.<a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html" title="class in org.codehaus.jackson.node">BaseJsonNode</a></h3> 238<code><a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#findParent(java.lang.String)">findParent</a>, <a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#findParents(java.lang.String, java.util.List)">findParents</a>, <a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#findPath(java.lang.String)">findPath</a>, <a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#findValue(java.lang.String)">findValue</a>, <a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#findValues(java.lang.String, java.util.List)">findValues</a>, <a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#findValuesAsText(java.lang.String, java.util.List)">findValuesAsText</a>, <a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#getNumberType()">getNumberType</a>, <a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#traverse()">traverse</a></code></li> 239</ul> 240<ul class="blockList"> 241<li class="blockList"><a name="methods_inherited_from_class_org.codehaus.jackson.JsonNode"> 242<!-- --> 243</a> 244<h3>Methods inherited from class org.codehaus.jackson.<a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></h3> 245<code><a href="../../../../org/codehaus/jackson/JsonNode.html#asBoolean()">asBoolean</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#asBoolean(boolean)">asBoolean</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#asDouble()">asDouble</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#asInt()">asInt</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#asLong()">asLong</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#findParents(java.lang.String)">findParents</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#findValues(java.lang.String)">findValues</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#findValuesAsText(java.lang.String)">findValuesAsText</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#get(int)">get</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#get(java.lang.String)">get</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getBigIntegerValue()">getBigIntegerValue</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getBinaryValue()">getBinaryValue</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getBooleanValue()">getBooleanValue</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getDecimalValue()">getDecimalValue</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getDoubleValue()">getDoubleValue</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getElements()">getElements</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getFieldNames()">getFieldNames</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getFields()">getFields</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getIntValue()">getIntValue</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getLongValue()">getLongValue</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getNumberValue()">getNumberValue</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getPath(int)">getPath</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getPath(java.lang.String)">getPath</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getTextValue()">getTextValue</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getValueAsBoolean()">getValueAsBoolean</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getValueAsBoolean(boolean)">getValueAsBoolean</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getValueAsDouble()">getValueAsDouble</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getValueAsDouble(double)">getValueAsDouble</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getValueAsInt()">getValueAsInt</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getValueAsInt(int)">getValueAsInt</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getValueAsLong()">getValueAsLong</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getValueAsLong(long)">getValueAsLong</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#getValueAsText()">getValueAsText</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#has(int)">has</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#has(java.lang.String)">has</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isArray()">isArray</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isBigDecimal()">isBigDecimal</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isBigInteger()">isBigInteger</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isBinary()">isBinary</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isBoolean()">isBoolean</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isContainerNode()">isContainerNode</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isDouble()">isDouble</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isFloatingPointNumber()">isFloatingPointNumber</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isInt()">isInt</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isIntegralNumber()">isIntegralNumber</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isLong()">isLong</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isMissingNode()">isMissingNode</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isNumber()">isNumber</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isObject()">isObject</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isPojo()">isPojo</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#isTextual()">isTextual</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#iterator()">iterator</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#size()">size</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#with(java.lang.String)">with</a></code></li> 246</ul> 247<ul class="blockList"> 248<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> 249<!-- --> 250</a> 251<h3>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></h3> 252<code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</a></code></li> 253</ul> 254</li> 255</ul> 256</li> 257</ul> 258</div> 259<div class="details"> 260<ul class="blockList"> 261<li class="blockList"> 262<!-- ============ FIELD DETAIL =========== --> 263<ul class="blockList"> 264<li class="blockList"><a name="field_detail"> 265<!-- --> 266</a> 267<h3>Field Detail</h3> 268<a name="instance"> 269<!-- --> 270</a> 271<ul class="blockListLast"> 272<li class="blockList"> 273<h4>instance</h4> 274<pre>public static final <a href="../../../../org/codehaus/jackson/node/NullNode.html" title="class in org.codehaus.jackson.node">NullNode</a> instance</pre> 275</li> 276</ul> 277</li> 278</ul> 279<!-- ============ METHOD DETAIL ========== --> 280<ul class="blockList"> 281<li class="blockList"><a name="method_detail"> 282<!-- --> 283</a> 284<h3>Method Detail</h3> 285<a name="getInstance()"> 286<!-- --> 287</a> 288<ul class="blockList"> 289<li class="blockList"> 290<h4>getInstance</h4> 291<pre>public static <a href="../../../../org/codehaus/jackson/node/NullNode.html" title="class in org.codehaus.jackson.node">NullNode</a> getInstance()</pre> 292</li> 293</ul> 294<a name="asToken()"> 295<!-- --> 296</a> 297<ul class="blockList"> 298<li class="blockList"> 299<h4>asToken</h4> 300<pre>public <a href="../../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a> asToken()</pre> 301<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#asToken()">BaseJsonNode</a></code></strong></div> 302<div class="block">Method that can be used for efficient type detection 303 when using stream abstraction for traversing nodes. 304 Will return the first <a href="../../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson"><code>JsonToken</code></a> that equivalent 305 stream event would produce (for most nodes there is just 306 one token but for structured/container types multiple)</div> 307<dl> 308<dt><strong>Specified by:</strong></dt> 309<dd><code><a href="../../../../org/codehaus/jackson/node/ValueNode.html#asToken()">asToken</a></code> in class <code><a href="../../../../org/codehaus/jackson/node/ValueNode.html" title="class in org.codehaus.jackson.node">ValueNode</a></code></dd> 310</dl> 311</li> 312</ul> 313<a name="isNull()"> 314<!-- --> 315</a> 316<ul class="blockList"> 317<li class="blockList"> 318<h4>isNull</h4> 319<pre>public boolean isNull()</pre> 320<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonNode.html#isNull()">JsonNode</a></code></strong></div> 321<div class="block">Method that can be used to check if this node was created from 322 Json liternal null value.</div> 323<dl> 324<dt><strong>Overrides:</strong></dt> 325<dd><code><a href="../../../../org/codehaus/jackson/JsonNode.html#isNull()">isNull</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></dd> 326</dl> 327</li> 328</ul> 329<a name="asText()"> 330<!-- --> 331</a> 332<ul class="blockList"> 333<li class="blockList"> 334<h4>asText</h4> 335<pre>public <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> asText()</pre> 336<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonNode.html#asText()">JsonNode</a></code></strong></div> 337<div class="block">Method that will return valid String representation of 338 the container value, if the node is a value node 339 (method <a href="../../../../org/codehaus/jackson/JsonNode.html#isValueNode()"><code>JsonNode.isValueNode()</code></a> returns true), otherwise 340 empty String.</div> 341<dl> 342<dt><strong>Specified by:</strong></dt> 343<dd><code><a href="../../../../org/codehaus/jackson/JsonNode.html#asText()">asText</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></dd> 344</dl> 345</li> 346</ul> 347<a name="asInt(int)"> 348<!-- --> 349</a> 350<ul class="blockList"> 351<li class="blockList"> 352<h4>asInt</h4> 353<pre>public int asInt(int defaultValue)</pre> 354<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonNode.html#asInt(int)">JsonNode</a></code></strong></div> 355<div class="block">Method that will try to convert value of this node to a Java <b>int</b>. 356 Numbers are coerced using default Java rules; booleans convert to 0 (false) 357 and 1 (true), and Strings are parsed using default Java language integer 358 parsing rules. 359<p> 360 If representation can not be converted to an int (including structured types 361 like Objects and Arrays), 362 specified <b>defaultValue</b> will be returned; no exceptions are thrown.</div> 363<dl> 364<dt><strong>Overrides:</strong></dt> 365<dd><code><a href="../../../../org/codehaus/jackson/JsonNode.html#asInt(int)">asInt</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></dd> 366</dl> 367</li> 368</ul> 369<a name="asLong(long)"> 370<!-- --> 371</a> 372<ul class="blockList"> 373<li class="blockList"> 374<h4>asLong</h4> 375<pre>public long asLong(long defaultValue)</pre> 376<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonNode.html#asLong(long)">JsonNode</a></code></strong></div> 377<div class="block">Method that will try to convert value of this node to a Java <b>long</b>. 378 Numbers are coerced using default Java rules; booleans convert to 0 (false) 379 and 1 (true), and Strings are parsed using default Java language integer 380 parsing rules. 381<p> 382 If representation can not be converted to an long (including structured types 383 like Objects and Arrays), 384 specified <b>defaultValue</b> will be returned; no exceptions are thrown.</div> 385<dl> 386<dt><strong>Overrides:</strong></dt> 387<dd><code><a href="../../../../org/codehaus/jackson/JsonNode.html#asLong(long)">asLong</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></dd> 388</dl> 389</li> 390</ul> 391<a name="asDouble(double)"> 392<!-- --> 393</a> 394<ul class="blockList"> 395<li class="blockList"> 396<h4>asDouble</h4> 397<pre>public double asDouble(double defaultValue)</pre> 398<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonNode.html#asDouble(double)">JsonNode</a></code></strong></div> 399<div class="block">Method that will try to convert value of this node to a Java <b>double</b>. 400 Numbers are coerced using default Java rules; booleans convert to 0.0 (false) 401 and 1.0 (true), and Strings are parsed using default Java language integer 402 parsing rules. 403<p> 404 If representation can not be converted to an int (including structured types 405 like Objects and Arrays), 406 specified <b>defaultValue</b> will be returned; no exceptions are thrown.</div> 407<dl> 408<dt><strong>Overrides:</strong></dt> 409<dd><code><a href="../../../../org/codehaus/jackson/JsonNode.html#asDouble(double)">asDouble</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></dd> 410</dl> 411</li> 412</ul> 413<a name="serialize(org.codehaus.jackson.JsonGenerator, org.codehaus.jackson.map.SerializerProvider)"> 414<!-- --> 415</a> 416<ul class="blockList"> 417<li class="blockList"> 418<h4>serialize</h4> 419<pre>public final void serialize(<a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a> jg, 420 <a href="../../../../org/codehaus/jackson/map/SerializerProvider.html" title="class in org.codehaus.jackson.map">SerializerProvider</a> provider) 421 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>, 422 <a href="../../../../org/codehaus/jackson/JsonProcessingException.html" title="class in org.codehaus.jackson">JsonProcessingException</a></pre> 423<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#serialize(org.codehaus.jackson.JsonGenerator, org.codehaus.jackson.map.SerializerProvider)">BaseJsonNode</a></code></strong></div> 424<div class="block">Method called to serialize node instances using given generator.</div> 425<dl> 426<dt><strong>Specified by:</strong></dt> 427<dd><code><a href="../../../../org/codehaus/jackson/map/JsonSerializable.html#serialize(org.codehaus.jackson.JsonGenerator, org.codehaus.jackson.map.SerializerProvider)">serialize</a></code> in interface <code><a href="../../../../org/codehaus/jackson/map/JsonSerializable.html" title="interface in org.codehaus.jackson.map">JsonSerializable</a></code></dd> 428<dt><strong>Specified by:</strong></dt> 429<dd><code><a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#serialize(org.codehaus.jackson.JsonGenerator, org.codehaus.jackson.map.SerializerProvider)">serialize</a></code> in class <code><a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html" title="class in org.codehaus.jackson.node">BaseJsonNode</a></code></dd> 430<dt><span class="strong">Throws:</span></dt> 431<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></dd> 432<dd><code><a href="../../../../org/codehaus/jackson/JsonProcessingException.html" title="class in org.codehaus.jackson">JsonProcessingException</a></code></dd></dl> 433</li> 434</ul> 435<a name="equals(java.lang.Object)"> 436<!-- --> 437</a> 438<ul class="blockListLast"> 439<li class="blockList"> 440<h4>equals</h4> 441<pre>public boolean equals(<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> 442<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonNode.html#equals(java.lang.Object)">JsonNode</a></code></strong></div> 443<div class="block">Equality for node objects is defined as full (deep) value 444 equality. This means that it is possible to compare complete 445 JSON trees for equality by comparing equality of root nodes. 446<p> 447 Note: marked as abstract to ensure all implementation 448 classes define it properly and not rely on definition 449 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>.</div> 450<dl> 451<dt><strong>Specified by:</strong></dt> 452<dd><code><a href="../../../../org/codehaus/jackson/JsonNode.html#equals(java.lang.Object)">equals</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></dd> 453</dl> 454</li> 455</ul> 456</li> 457</ul> 458</li> 459</ul> 460</div> 461</div> 462<!-- ========= END OF CLASS DATA ========= --> 463<!-- ======= START OF BOTTOM NAVBAR ====== --> 464<div class="bottomNav"><a name="navbar_bottom"> 465<!-- --> 466</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> 467<!-- --> 468</a> 469<ul class="navList" title="Navigation"> 470<li><a href="../../../../overview-summary.html">Overview</a></li> 471<li><a href="package-summary.html">Package</a></li> 472<li class="navBarCell1Rev">Class</li> 473<li><a href="class-use/NullNode.html">Use</a></li> 474<li><a href="package-tree.html">Tree</a></li> 475<li><a href="../../../../deprecated-list.html">Deprecated</a></li> 476<li><a href="../../../../index-all.html">Index</a></li> 477<li><a href="../../../../help-doc.html">Help</a></li> 478</ul> 479</div> 480<div class="subNav"> 481<ul class="navList"> 482<li><a href="../../../../org/codehaus/jackson/node/MissingNode.html" title="class in org.codehaus.jackson.node"><span class="strong">Prev Class</span></a></li> 483<li><a href="../../../../org/codehaus/jackson/node/NumericNode.html" title="class in org.codehaus.jackson.node"><span class="strong">Next Class</span></a></li> 484</ul> 485<ul class="navList"> 486<li><a href="../../../../index.html?org/codehaus/jackson/node/NullNode.html" target="_top">Frames</a></li> 487<li><a href="NullNode.html" target="_top">No Frames</a></li> 488</ul> 489<ul class="navList" id="allclasses_navbar_bottom"> 490<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> 491</ul> 492<div> 493<script type="text/javascript"><!-- 494 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 495 if(window==top) { 496 allClassesLink.style.display = "block"; 497 } 498 else { 499 allClassesLink.style.display = "none"; 500 } 501 //--> 502</script> 503</div> 504<div> 505<ul class="subNavList"> 506<li>Summary: </li> 507<li>Nested | </li> 508<li><a href="#field_summary">Field</a> | </li> 509<li>Constr | </li> 510<li><a href="#method_summary">Method</a></li> 511</ul> 512<ul class="subNavList"> 513<li>Detail: </li> 514<li><a href="#field_detail">Field</a> | </li> 515<li>Constr | </li> 516<li><a href="#method_detail">Method</a></li> 517</ul> 518</div> 519<a name="skip-navbar_bottom"> 520<!-- --> 521</a></div> 522<!-- ======== END OF BOTTOM NAVBAR ======= --> 523</body> 524</html> 525