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>MissingNode (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="MissingNode (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/MissingNode.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/LongNode.html" title="class in org.codehaus.jackson.node"><span class="strong">Prev Class</span></a></li> 40<li><a href="../../../../org/codehaus/jackson/node/NullNode.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/MissingNode.html" target="_top">Frames</a></li> 44<li><a href="MissingNode.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="#fields_inherited_from_class_org.codehaus.jackson.JsonNode">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>Field | </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 MissingNode" class="title">Class MissingNode</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>org.codehaus.jackson.node.MissingNode</li> 97</ul> 98</li> 99</ul> 100</li> 101</ul> 102</li> 103</ul> 104<div class="description"> 105<ul class="blockList"> 106<li class="blockList"> 107<dl> 108<dt>All Implemented Interfaces:</dt> 109<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> 110</dl> 111<hr> 112<br> 113<pre>public final class <span class="strong">MissingNode</span> 114extends <a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html" title="class in org.codehaus.jackson.node">BaseJsonNode</a></pre> 115<div class="block">This singleton node class is generated to denote "missing nodes" 116 along paths that do not exist. For example, if a path via 117 element of an array is requested for an element outside range 118 of elements in the array; or for a non-array value, result 119 will be reference to this node. 120<p> 121 In most respects this placeholder node will act as <a href="../../../../org/codehaus/jackson/node/NullNode.html" title="class in org.codehaus.jackson.node"><code>NullNode</code></a>; 122 for example, for purposes of value conversions, value is considered 123 to be null and represented as value zero when used for numeric 124 conversions.</div> 125</li> 126</ul> 127</div> 128<div class="summary"> 129<ul class="blockList"> 130<li class="blockList"> 131<!-- =========== FIELD SUMMARY =========== --> 132<ul class="blockList"> 133<li class="blockList"><a name="field_summary"> 134<!-- --> 135</a> 136<h3>Field Summary</h3> 137<ul class="blockList"> 138<li class="blockList"><a name="fields_inherited_from_class_org.codehaus.jackson.JsonNode"> 139<!-- --> 140</a> 141<h3>Fields inherited from class org.codehaus.jackson.<a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></h3> 142<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> 143</ul> 144</li> 145</ul> 146<!-- ========== METHOD SUMMARY =========== --> 147<ul class="blockList"> 148<li class="blockList"><a name="method_summary"> 149<!-- --> 150</a> 151<h3>Method Summary</h3> 152<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> 153<caption><span>Methods</span><span class="tabEnd"> </span></caption> 154<tr> 155<th class="colFirst" scope="col">Modifier and Type</th> 156<th class="colLast" scope="col">Method and Description</th> 157</tr> 158<tr class="altColor"> 159<td class="colFirst"><code>boolean</code></td> 160<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/MissingNode.html#asBoolean(boolean)">asBoolean</a></strong>(boolean defaultValue)</code> 161<div class="block">Method that will try to convert value of this node to a Java <b>boolean</b>.</div> 162</td> 163</tr> 164<tr class="rowColor"> 165<td class="colFirst"><code>double</code></td> 166<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/MissingNode.html#asDouble(double)">asDouble</a></strong>(double defaultValue)</code> 167<div class="block">Method that will try to convert value of this node to a Java <b>double</b>.</div> 168</td> 169</tr> 170<tr class="altColor"> 171<td class="colFirst"><code>int</code></td> 172<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/MissingNode.html#asInt(int)">asInt</a></strong>(int defaultValue)</code> 173<div class="block">Method that will try to convert value of this node to a Java <b>int</b>.</div> 174</td> 175</tr> 176<tr class="rowColor"> 177<td class="colFirst"><code>long</code></td> 178<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/MissingNode.html#asLong(long)">asLong</a></strong>(long defaultValue)</code> 179<div class="block">Method that will try to convert value of this node to a Java <b>long</b>.</div> 180</td> 181</tr> 182<tr class="altColor"> 183<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> 184<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/MissingNode.html#asText()">asText</a></strong>()</code> 185<div class="block">Method that will return valid String representation of 186 the container value, if the node is a value node 187 (method <a href="../../../../org/codehaus/jackson/JsonNode.html#isValueNode()"><code>JsonNode.isValueNode()</code></a> returns true), otherwise 188 empty String.</div> 189</td> 190</tr> 191<tr class="rowColor"> 192<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a></code></td> 193<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/MissingNode.html#asToken()">asToken</a></strong>()</code> 194<div class="block">Method that can be used for efficient type detection 195 when using stream abstraction for traversing nodes.</div> 196</td> 197</tr> 198<tr class="altColor"> 199<td class="colFirst"><code>boolean</code></td> 200<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/MissingNode.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> 201<div class="block">Equality for node objects is defined as full (deep) value 202 equality.</div> 203</td> 204</tr> 205<tr class="rowColor"> 206<td class="colFirst"><code>static <a href="../../../../org/codehaus/jackson/node/MissingNode.html" title="class in org.codehaus.jackson.node">MissingNode</a></code></td> 207<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/MissingNode.html#getInstance()">getInstance</a></strong>()</code> </td> 208</tr> 209<tr class="altColor"> 210<td class="colFirst"><code>boolean</code></td> 211<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/MissingNode.html#isMissingNode()">isMissingNode</a></strong>()</code> 212<div class="block">Method that returns true for "virtual" nodes which represent 213 missing entries constructed by path accessor methods when 214 there is no actual node matching given criteria.</div> 215</td> 216</tr> 217<tr class="rowColor"> 218<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></td> 219<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/MissingNode.html#path(int)">path</a></strong>(int index)</code> 220<div class="block">This method is similar to <a href="../../../../org/codehaus/jackson/JsonNode.html#get(int)"><code>JsonNode.get(int)</code></a>, except 221 that instead of returning null if no such element exists (due 222 to index being out of range, or this node not being an array), 223 a "missing node" (node that returns true for 224 <a href="../../../../org/codehaus/jackson/JsonNode.html#isMissingNode()"><code>JsonNode.isMissingNode()</code></a>) will be returned.</div> 225</td> 226</tr> 227<tr class="altColor"> 228<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></td> 229<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/MissingNode.html#path(java.lang.String)">path</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</code> 230<div class="block">This method is similar to <a href="../../../../org/codehaus/jackson/JsonNode.html#get(java.lang.String)"><code>JsonNode.get(String)</code></a>, except 231 that instead of returning null if no such value exists (due 232 to this node not being an object, or object not having value 233 for the specified field), 234 a "missing node" (node that returns true for 235 <a href="../../../../org/codehaus/jackson/JsonNode.html#isMissingNode()"><code>JsonNode.isMissingNode()</code></a>) will be returned.</div> 236</td> 237</tr> 238<tr class="rowColor"> 239<td class="colFirst"><code>void</code></td> 240<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/MissingNode.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, 241 <a href="../../../../org/codehaus/jackson/map/SerializerProvider.html" title="class in org.codehaus.jackson.map">SerializerProvider</a> provider)</code> 242<div class="block">Method called to serialize node instances using given generator.</div> 243</td> 244</tr> 245<tr class="altColor"> 246<td class="colFirst"><code>void</code></td> 247<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/MissingNode.html#serializeWithType(org.codehaus.jackson.JsonGenerator, org.codehaus.jackson.map.SerializerProvider, org.codehaus.jackson.map.TypeSerializer)">serializeWithType</a></strong>(<a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a> jg, 248 <a href="../../../../org/codehaus/jackson/map/SerializerProvider.html" title="class in org.codehaus.jackson.map">SerializerProvider</a> provider, 249 <a href="../../../../org/codehaus/jackson/map/TypeSerializer.html" title="class in org.codehaus.jackson.map">TypeSerializer</a> typeSer)</code> 250<div class="block">Type information is needed, even if JsonNode instances are "plain" JSON, 251 since they may be mixed with other types.</div> 252</td> 253</tr> 254<tr class="rowColor"> 255<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> 256<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/MissingNode.html#toString()">toString</a></strong>()</code> 257<div class="block"> 258 Note: marked as abstract to ensure all implementation 259 classes define it properly.</div> 260</td> 261</tr> 262</table> 263<ul class="blockList"> 264<li class="blockList"><a name="methods_inherited_from_class_org.codehaus.jackson.node.BaseJsonNode"> 265<!-- --> 266</a> 267<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> 268<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> 269</ul> 270<ul class="blockList"> 271<li class="blockList"><a name="methods_inherited_from_class_org.codehaus.jackson.JsonNode"> 272<!-- --> 273</a> 274<h3>Methods inherited from class org.codehaus.jackson.<a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></h3> 275<code><a href="../../../../org/codehaus/jackson/JsonNode.html#asBoolean()">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#isNull()">isNull</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#isValueNode()">isValueNode</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> 276</ul> 277<ul class="blockList"> 278<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> 279<!-- --> 280</a> 281<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> 282<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> 283</ul> 284</li> 285</ul> 286</li> 287</ul> 288</div> 289<div class="details"> 290<ul class="blockList"> 291<li class="blockList"> 292<!-- ============ METHOD DETAIL ========== --> 293<ul class="blockList"> 294<li class="blockList"><a name="method_detail"> 295<!-- --> 296</a> 297<h3>Method Detail</h3> 298<a name="getInstance()"> 299<!-- --> 300</a> 301<ul class="blockList"> 302<li class="blockList"> 303<h4>getInstance</h4> 304<pre>public static <a href="../../../../org/codehaus/jackson/node/MissingNode.html" title="class in org.codehaus.jackson.node">MissingNode</a> getInstance()</pre> 305</li> 306</ul> 307<a name="asToken()"> 308<!-- --> 309</a> 310<ul class="blockList"> 311<li class="blockList"> 312<h4>asToken</h4> 313<pre>public <a href="../../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a> asToken()</pre> 314<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#asToken()">BaseJsonNode</a></code></strong></div> 315<div class="block">Method that can be used for efficient type detection 316 when using stream abstraction for traversing nodes. 317 Will return the first <a href="../../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson"><code>JsonToken</code></a> that equivalent 318 stream event would produce (for most nodes there is just 319 one token but for structured/container types multiple)</div> 320<dl> 321<dt><strong>Specified by:</strong></dt> 322<dd><code><a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#asToken()">asToken</a></code> in class <code><a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html" title="class in org.codehaus.jackson.node">BaseJsonNode</a></code></dd> 323</dl> 324</li> 325</ul> 326<a name="isMissingNode()"> 327<!-- --> 328</a> 329<ul class="blockList"> 330<li class="blockList"> 331<h4>isMissingNode</h4> 332<pre>public boolean isMissingNode()</pre> 333<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonNode.html#isMissingNode()">JsonNode</a></code></strong></div> 334<div class="block">Method that returns true for "virtual" nodes which represent 335 missing entries constructed by path accessor methods when 336 there is no actual node matching given criteria. 337<p> 338 Note: one and only one of methods <a href="../../../../org/codehaus/jackson/JsonNode.html#isValueNode()"><code>JsonNode.isValueNode()</code></a>, 339 <a href="../../../../org/codehaus/jackson/JsonNode.html#isContainerNode()"><code>JsonNode.isContainerNode()</code></a> and <a href="../../../../org/codehaus/jackson/JsonNode.html#isMissingNode()"><code>JsonNode.isMissingNode()</code></a> ever 340 returns true for any given node.</div> 341<dl> 342<dt><strong>Overrides:</strong></dt> 343<dd><code><a href="../../../../org/codehaus/jackson/JsonNode.html#isMissingNode()">isMissingNode</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="asText()"> 348<!-- --> 349</a> 350<ul class="blockList"> 351<li class="blockList"> 352<h4>asText</h4> 353<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> 354<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonNode.html#asText()">JsonNode</a></code></strong></div> 355<div class="block">Method that will return valid String representation of 356 the container value, if the node is a value node 357 (method <a href="../../../../org/codehaus/jackson/JsonNode.html#isValueNode()"><code>JsonNode.isValueNode()</code></a> returns true), otherwise 358 empty String.</div> 359<dl> 360<dt><strong>Specified by:</strong></dt> 361<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> 362</dl> 363</li> 364</ul> 365<a name="asBoolean(boolean)"> 366<!-- --> 367</a> 368<ul class="blockList"> 369<li class="blockList"> 370<h4>asBoolean</h4> 371<pre>public boolean asBoolean(boolean defaultValue)</pre> 372<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonNode.html#asBoolean(boolean)">JsonNode</a></code></strong></div> 373<div class="block">Method that will try to convert value of this node to a Java <b>boolean</b>. 374 JSON booleans map naturally; integer numbers other than 0 map to true, and 375 0 maps to false 376 and Strings 'true' and 'false' map to corresponding values. 377<p> 378 If representation can not be converted to a boolean value (including structured types 379 like Objects and Arrays), 380 specified <b>defaultValue</b> will be returned; no exceptions are thrown.</div> 381<dl> 382<dt><strong>Overrides:</strong></dt> 383<dd><code><a href="../../../../org/codehaus/jackson/JsonNode.html#asBoolean(boolean)">asBoolean</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></dd> 384</dl> 385</li> 386</ul> 387<a name="asInt(int)"> 388<!-- --> 389</a> 390<ul class="blockList"> 391<li class="blockList"> 392<h4>asInt</h4> 393<pre>public int asInt(int defaultValue)</pre> 394<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonNode.html#asInt(int)">JsonNode</a></code></strong></div> 395<div class="block">Method that will try to convert value of this node to a Java <b>int</b>. 396 Numbers are coerced using default Java rules; booleans convert to 0 (false) 397 and 1 (true), and Strings are parsed using default Java language integer 398 parsing rules. 399<p> 400 If representation can not be converted to an int (including structured types 401 like Objects and Arrays), 402 specified <b>defaultValue</b> will be returned; no exceptions are thrown.</div> 403<dl> 404<dt><strong>Overrides:</strong></dt> 405<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> 406</dl> 407</li> 408</ul> 409<a name="asLong(long)"> 410<!-- --> 411</a> 412<ul class="blockList"> 413<li class="blockList"> 414<h4>asLong</h4> 415<pre>public long asLong(long defaultValue)</pre> 416<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonNode.html#asLong(long)">JsonNode</a></code></strong></div> 417<div class="block">Method that will try to convert value of this node to a Java <b>long</b>. 418 Numbers are coerced using default Java rules; booleans convert to 0 (false) 419 and 1 (true), and Strings are parsed using default Java language integer 420 parsing rules. 421<p> 422 If representation can not be converted to an long (including structured types 423 like Objects and Arrays), 424 specified <b>defaultValue</b> will be returned; no exceptions are thrown.</div> 425<dl> 426<dt><strong>Overrides:</strong></dt> 427<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> 428</dl> 429</li> 430</ul> 431<a name="asDouble(double)"> 432<!-- --> 433</a> 434<ul class="blockList"> 435<li class="blockList"> 436<h4>asDouble</h4> 437<pre>public double asDouble(double defaultValue)</pre> 438<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonNode.html#asDouble(double)">JsonNode</a></code></strong></div> 439<div class="block">Method that will try to convert value of this node to a Java <b>double</b>. 440 Numbers are coerced using default Java rules; booleans convert to 0.0 (false) 441 and 1.0 (true), and Strings are parsed using default Java language integer 442 parsing rules. 443<p> 444 If representation can not be converted to an int (including structured types 445 like Objects and Arrays), 446 specified <b>defaultValue</b> will be returned; no exceptions are thrown.</div> 447<dl> 448<dt><strong>Overrides:</strong></dt> 449<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> 450</dl> 451</li> 452</ul> 453<a name="path(java.lang.String)"> 454<!-- --> 455</a> 456<ul class="blockList"> 457<li class="blockList"> 458<h4>path</h4> 459<pre>public <a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a> path(<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> fieldName)</pre> 460<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonNode.html#path(java.lang.String)">JsonNode</a></code></strong></div> 461<div class="block">This method is similar to <a href="../../../../org/codehaus/jackson/JsonNode.html#get(java.lang.String)"><code>JsonNode.get(String)</code></a>, except 462 that instead of returning null if no such value exists (due 463 to this node not being an object, or object not having value 464 for the specified field), 465 a "missing node" (node that returns true for 466 <a href="../../../../org/codehaus/jackson/JsonNode.html#isMissingNode()"><code>JsonNode.isMissingNode()</code></a>) will be returned. This allows for 467 convenient and safe chained access via path calls.</div> 468<dl> 469<dt><strong>Specified by:</strong></dt> 470<dd><code><a href="../../../../org/codehaus/jackson/JsonNode.html#path(java.lang.String)">path</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></dd> 471</dl> 472</li> 473</ul> 474<a name="path(int)"> 475<!-- --> 476</a> 477<ul class="blockList"> 478<li class="blockList"> 479<h4>path</h4> 480<pre>public <a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a> path(int index)</pre> 481<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonNode.html#path(int)">JsonNode</a></code></strong></div> 482<div class="block">This method is similar to <a href="../../../../org/codehaus/jackson/JsonNode.html#get(int)"><code>JsonNode.get(int)</code></a>, except 483 that instead of returning null if no such element exists (due 484 to index being out of range, or this node not being an array), 485 a "missing node" (node that returns true for 486 <a href="../../../../org/codehaus/jackson/JsonNode.html#isMissingNode()"><code>JsonNode.isMissingNode()</code></a>) will be returned. This allows for 487 convenient and safe chained access via path calls.</div> 488<dl> 489<dt><strong>Specified by:</strong></dt> 490<dd><code><a href="../../../../org/codehaus/jackson/JsonNode.html#path(int)">path</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></dd> 491</dl> 492</li> 493</ul> 494<a name="serialize(org.codehaus.jackson.JsonGenerator, org.codehaus.jackson.map.SerializerProvider)"> 495<!-- --> 496</a> 497<ul class="blockList"> 498<li class="blockList"> 499<h4>serialize</h4> 500<pre>public final void serialize(<a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a> jg, 501 <a href="../../../../org/codehaus/jackson/map/SerializerProvider.html" title="class in org.codehaus.jackson.map">SerializerProvider</a> provider) 502 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>, 503 <a href="../../../../org/codehaus/jackson/JsonProcessingException.html" title="class in org.codehaus.jackson">JsonProcessingException</a></pre> 504<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> 505<div class="block">Method called to serialize node instances using given generator.</div> 506<dl> 507<dt><strong>Specified by:</strong></dt> 508<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> 509<dt><strong>Specified by:</strong></dt> 510<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> 511<dt><span class="strong">Throws:</span></dt> 512<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> 513<dd><code><a href="../../../../org/codehaus/jackson/JsonProcessingException.html" title="class in org.codehaus.jackson">JsonProcessingException</a></code></dd></dl> 514</li> 515</ul> 516<a name="serializeWithType(org.codehaus.jackson.JsonGenerator, org.codehaus.jackson.map.SerializerProvider, org.codehaus.jackson.map.TypeSerializer)"> 517<!-- --> 518</a> 519<ul class="blockList"> 520<li class="blockList"> 521<h4>serializeWithType</h4> 522<pre>public void serializeWithType(<a href="../../../../org/codehaus/jackson/JsonGenerator.html" title="class in org.codehaus.jackson">JsonGenerator</a> jg, 523 <a href="../../../../org/codehaus/jackson/map/SerializerProvider.html" title="class in org.codehaus.jackson.map">SerializerProvider</a> provider, 524 <a href="../../../../org/codehaus/jackson/map/TypeSerializer.html" title="class in org.codehaus.jackson.map">TypeSerializer</a> typeSer) 525 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>, 526 <a href="../../../../org/codehaus/jackson/JsonProcessingException.html" title="class in org.codehaus.jackson">JsonProcessingException</a></pre> 527<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#serializeWithType(org.codehaus.jackson.JsonGenerator, org.codehaus.jackson.map.SerializerProvider, org.codehaus.jackson.map.TypeSerializer)">BaseJsonNode</a></code></strong></div> 528<div class="block">Type information is needed, even if JsonNode instances are "plain" JSON, 529 since they may be mixed with other types.</div> 530<dl> 531<dt><strong>Specified by:</strong></dt> 532<dd><code><a href="../../../../org/codehaus/jackson/map/JsonSerializableWithType.html#serializeWithType(org.codehaus.jackson.JsonGenerator, org.codehaus.jackson.map.SerializerProvider, org.codehaus.jackson.map.TypeSerializer)">serializeWithType</a></code> in interface <code><a href="../../../../org/codehaus/jackson/map/JsonSerializableWithType.html" title="interface in org.codehaus.jackson.map">JsonSerializableWithType</a></code></dd> 533<dt><strong>Specified by:</strong></dt> 534<dd><code><a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#serializeWithType(org.codehaus.jackson.JsonGenerator, org.codehaus.jackson.map.SerializerProvider, org.codehaus.jackson.map.TypeSerializer)">serializeWithType</a></code> in class <code><a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html" title="class in org.codehaus.jackson.node">BaseJsonNode</a></code></dd> 535<dt><span class="strong">Throws:</span></dt> 536<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> 537<dd><code><a href="../../../../org/codehaus/jackson/JsonProcessingException.html" title="class in org.codehaus.jackson">JsonProcessingException</a></code></dd></dl> 538</li> 539</ul> 540<a name="equals(java.lang.Object)"> 541<!-- --> 542</a> 543<ul class="blockList"> 544<li class="blockList"> 545<h4>equals</h4> 546<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> 547<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> 548<div class="block">Equality for node objects is defined as full (deep) value 549 equality. This means that it is possible to compare complete 550 JSON trees for equality by comparing equality of root nodes. 551<p> 552 Note: marked as abstract to ensure all implementation 553 classes define it properly and not rely on definition 554 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> 555<dl> 556<dt><strong>Specified by:</strong></dt> 557<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> 558</dl> 559</li> 560</ul> 561<a name="toString()"> 562<!-- --> 563</a> 564<ul class="blockListLast"> 565<li class="blockList"> 566<h4>toString</h4> 567<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> toString()</pre> 568<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonNode.html#toString()">JsonNode</a></code></strong></div> 569<div class="block"><p> 570 Note: marked as abstract to ensure all implementation 571 classes define it properly.</div> 572<dl> 573<dt><strong>Specified by:</strong></dt> 574<dd><code><a href="../../../../org/codehaus/jackson/JsonNode.html#toString()">toString</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></dd> 575</dl> 576</li> 577</ul> 578</li> 579</ul> 580</li> 581</ul> 582</div> 583</div> 584<!-- ========= END OF CLASS DATA ========= --> 585<!-- ======= START OF BOTTOM NAVBAR ====== --> 586<div class="bottomNav"><a name="navbar_bottom"> 587<!-- --> 588</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> 589<!-- --> 590</a> 591<ul class="navList" title="Navigation"> 592<li><a href="../../../../overview-summary.html">Overview</a></li> 593<li><a href="package-summary.html">Package</a></li> 594<li class="navBarCell1Rev">Class</li> 595<li><a href="class-use/MissingNode.html">Use</a></li> 596<li><a href="package-tree.html">Tree</a></li> 597<li><a href="../../../../deprecated-list.html">Deprecated</a></li> 598<li><a href="../../../../index-all.html">Index</a></li> 599<li><a href="../../../../help-doc.html">Help</a></li> 600</ul> 601</div> 602<div class="subNav"> 603<ul class="navList"> 604<li><a href="../../../../org/codehaus/jackson/node/LongNode.html" title="class in org.codehaus.jackson.node"><span class="strong">Prev Class</span></a></li> 605<li><a href="../../../../org/codehaus/jackson/node/NullNode.html" title="class in org.codehaus.jackson.node"><span class="strong">Next Class</span></a></li> 606</ul> 607<ul class="navList"> 608<li><a href="../../../../index.html?org/codehaus/jackson/node/MissingNode.html" target="_top">Frames</a></li> 609<li><a href="MissingNode.html" target="_top">No Frames</a></li> 610</ul> 611<ul class="navList" id="allclasses_navbar_bottom"> 612<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> 613</ul> 614<div> 615<script type="text/javascript"><!-- 616 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 617 if(window==top) { 618 allClassesLink.style.display = "block"; 619 } 620 else { 621 allClassesLink.style.display = "none"; 622 } 623 //--> 624</script> 625</div> 626<div> 627<ul class="subNavList"> 628<li>Summary: </li> 629<li>Nested | </li> 630<li><a href="#fields_inherited_from_class_org.codehaus.jackson.JsonNode">Field</a> | </li> 631<li>Constr | </li> 632<li><a href="#method_summary">Method</a></li> 633</ul> 634<ul class="subNavList"> 635<li>Detail: </li> 636<li>Field | </li> 637<li>Constr | </li> 638<li><a href="#method_detail">Method</a></li> 639</ul> 640</div> 641<a name="skip-navbar_bottom"> 642<!-- --> 643</a></div> 644<!-- ======== END OF BOTTOM NAVBAR ======= --> 645</body> 646</html> 647