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>ContainerNode (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="ContainerNode (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/ContainerNode.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/BooleanNode.html" title="class in org.codehaus.jackson.node"><span class="strong">Prev Class</span></a></li> 40<li><a href="../../../../org/codehaus/jackson/node/ContainerNode.NoNodesIterator.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/ContainerNode.html" target="_top">Frames</a></li> 44<li><a href="ContainerNode.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><a href="#nested_class_summary">Nested</a> | </li> 65<li><a href="#fields_inherited_from_class_org.codehaus.jackson.JsonNode">Field</a> | </li> 66<li><a href="#constructor_summary">Constr</a> | </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><a href="#constructor_detail">Constr</a> | </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 ContainerNode" class="title">Class ContainerNode</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.ContainerNode</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<dl> 112<dt>Direct Known Subclasses:</dt> 113<dd><a href="../../../../org/codehaus/jackson/node/ArrayNode.html" title="class in org.codehaus.jackson.node">ArrayNode</a>, <a href="../../../../org/codehaus/jackson/node/ObjectNode.html" title="class in org.codehaus.jackson.node">ObjectNode</a></dd> 114</dl> 115<hr> 116<br> 117<pre>public abstract class <span class="strong">ContainerNode</span> 118extends <a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html" title="class in org.codehaus.jackson.node">BaseJsonNode</a></pre> 119<div class="block">This intermediate base class is used for all container nodes, 120 specifically, array and object nodes.</div> 121</li> 122</ul> 123</div> 124<div class="summary"> 125<ul class="blockList"> 126<li class="blockList"> 127<!-- ======== NESTED CLASS SUMMARY ======== --> 128<ul class="blockList"> 129<li class="blockList"><a name="nested_class_summary"> 130<!-- --> 131</a> 132<h3>Nested Class Summary</h3> 133<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation"> 134<caption><span>Nested Classes</span><span class="tabEnd"> </span></caption> 135<tr> 136<th class="colFirst" scope="col">Modifier and Type</th> 137<th class="colLast" scope="col">Class and Description</th> 138</tr> 139<tr class="altColor"> 140<td class="colFirst"><code>protected static class </code></td> 141<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/ContainerNode.NoNodesIterator.html" title="class in org.codehaus.jackson.node">ContainerNode.NoNodesIterator</a></strong></code> </td> 142</tr> 143<tr class="rowColor"> 144<td class="colFirst"><code>protected static class </code></td> 145<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/ContainerNode.NoStringsIterator.html" title="class in org.codehaus.jackson.node">ContainerNode.NoStringsIterator</a></strong></code> </td> 146</tr> 147</table> 148</li> 149</ul> 150<!-- =========== FIELD SUMMARY =========== --> 151<ul class="blockList"> 152<li class="blockList"><a name="field_summary"> 153<!-- --> 154</a> 155<h3>Field Summary</h3> 156<ul class="blockList"> 157<li class="blockList"><a name="fields_inherited_from_class_org.codehaus.jackson.JsonNode"> 158<!-- --> 159</a> 160<h3>Fields inherited from class org.codehaus.jackson.<a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></h3> 161<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> 162</ul> 163</li> 164</ul> 165<!-- ======== CONSTRUCTOR SUMMARY ======== --> 166<ul class="blockList"> 167<li class="blockList"><a name="constructor_summary"> 168<!-- --> 169</a> 170<h3>Constructor Summary</h3> 171<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> 172<caption><span>Constructors</span><span class="tabEnd"> </span></caption> 173<tr> 174<th class="colFirst" scope="col">Modifier</th> 175<th class="colLast" scope="col">Constructor and Description</th> 176</tr> 177<tr class="altColor"> 178<td class="colFirst"><code>protected </code></td> 179<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/ContainerNode.html#ContainerNode(org.codehaus.jackson.node.JsonNodeFactory)">ContainerNode</a></strong>(<a href="../../../../org/codehaus/jackson/node/JsonNodeFactory.html" title="class in org.codehaus.jackson.node">JsonNodeFactory</a> nc)</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><a href="../../../../org/codehaus/jackson/node/ArrayNode.html" title="class in org.codehaus.jackson.node">ArrayNode</a></code></td> 198<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/ContainerNode.html#arrayNode()">arrayNode</a></strong>()</code> 199<div class="block">Factory method that constructs and returns an empty <a href="../../../../org/codehaus/jackson/node/ArrayNode.html" title="class in org.codehaus.jackson.node"><code>ArrayNode</code></a> 200 Construction is done using registered <a href="../../../../org/codehaus/jackson/node/JsonNodeFactory.html" title="class in org.codehaus.jackson.node"><code>JsonNodeFactory</code></a>.</div> 201</td> 202</tr> 203<tr class="rowColor"> 204<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> 205<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/ContainerNode.html#asText()">asText</a></strong>()</code> 206<div class="block">Method that will return valid String representation of 207 the container value, if the node is a value node 208 (method <a href="../../../../org/codehaus/jackson/JsonNode.html#isValueNode()"><code>JsonNode.isValueNode()</code></a> returns true), otherwise 209 empty String.</div> 210</td> 211</tr> 212<tr class="altColor"> 213<td class="colFirst"><code>abstract <a href="../../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a></code></td> 214<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/ContainerNode.html#asToken()">asToken</a></strong>()</code> 215<div class="block">Method that can be used for efficient type detection 216 when using stream abstraction for traversing nodes.</div> 217</td> 218</tr> 219<tr class="rowColor"> 220<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/node/BinaryNode.html" title="class in org.codehaus.jackson.node">BinaryNode</a></code></td> 221<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/ContainerNode.html#binaryNode(byte[])">binaryNode</a></strong>(byte[] data)</code> </td> 222</tr> 223<tr class="altColor"> 224<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/node/BinaryNode.html" title="class in org.codehaus.jackson.node">BinaryNode</a></code></td> 225<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/ContainerNode.html#binaryNode(byte[], int, int)">binaryNode</a></strong>(byte[] data, 226 int offset, 227 int length)</code> </td> 228</tr> 229<tr class="rowColor"> 230<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/node/BooleanNode.html" title="class in org.codehaus.jackson.node">BooleanNode</a></code></td> 231<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/ContainerNode.html#booleanNode(boolean)">booleanNode</a></strong>(boolean v)</code> </td> 232</tr> 233<tr class="altColor"> 234<td class="colFirst"><code>abstract <a href="../../../../org/codehaus/jackson/node/ObjectNode.html" title="class in org.codehaus.jackson.node">ObjectNode</a></code></td> 235<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/ContainerNode.html#findParent(java.lang.String)">findParent</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> 236<div class="block">Method for finding a JSON Object that contains specified field, 237 within this node or its descendants.</div> 238</td> 239</tr> 240<tr class="rowColor"> 241<td class="colFirst"><code>abstract <a href="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a>></code></td> 242<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/ContainerNode.html#findParents(java.lang.String, java.util.List)">findParents</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, 243 <a href="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a>> foundSoFar)</code> </td> 244</tr> 245<tr class="altColor"> 246<td class="colFirst"><code>abstract <a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></td> 247<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/ContainerNode.html#findValue(java.lang.String)">findValue</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> 248<div class="block">Method for finding a JSON Object field with specified name in this 249 node or its child nodes, and returning value it has.</div> 250</td> 251</tr> 252<tr class="rowColor"> 253<td class="colFirst"><code>abstract <a href="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a>></code></td> 254<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/ContainerNode.html#findValues(java.lang.String, java.util.List)">findValues</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, 255 <a href="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a>> foundSoFar)</code> </td> 256</tr> 257<tr class="altColor"> 258<td class="colFirst"><code>abstract <a href="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>></code></td> 259<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/ContainerNode.html#findValuesAsText(java.lang.String, java.util.List)">findValuesAsText</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, 260 <a href="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> foundSoFar)</code> </td> 261</tr> 262<tr class="rowColor"> 263<td class="colFirst"><code>abstract <a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></td> 264<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/ContainerNode.html#get(int)">get</a></strong>(int index)</code> 265<div class="block">Method for accessing value of the specified element of 266 an array node.</div> 267</td> 268</tr> 269<tr class="altColor"> 270<td class="colFirst"><code>abstract <a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></td> 271<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/ContainerNode.html#get(java.lang.String)">get</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> 272<div class="block">Method for accessing value of the specified field of 273 an object node.</div> 274</td> 275</tr> 276<tr class="rowColor"> 277<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> 278<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/ContainerNode.html#getValueAsText()">getValueAsText</a></strong>()</code> 279<div class="block">Method that will return valid String representation of 280 the container value, if the node is a value node 281 (method <a href="../../../../org/codehaus/jackson/JsonNode.html#isValueNode()"><code>JsonNode.isValueNode()</code></a> returns true), otherwise null.</div> 282</td> 283</tr> 284<tr class="altColor"> 285<td class="colFirst"><code>boolean</code></td> 286<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/ContainerNode.html#isContainerNode()">isContainerNode</a></strong>()</code> 287<div class="block">Method that returns true for container nodes: Arrays and Objects.</div> 288</td> 289</tr> 290<tr class="rowColor"> 291<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/node/NullNode.html" title="class in org.codehaus.jackson.node">NullNode</a></code></td> 292<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/ContainerNode.html#nullNode()">nullNode</a></strong>()</code> </td> 293</tr> 294<tr class="altColor"> 295<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/node/NumericNode.html" title="class in org.codehaus.jackson.node">NumericNode</a></code></td> 296<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/ContainerNode.html#numberNode(java.math.BigDecimal)">numberNode</a></strong>(<a href="http://docs.oracle.com/javase/6/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math">BigDecimal</a> v)</code> </td> 297</tr> 298<tr class="rowColor"> 299<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/node/NumericNode.html" title="class in org.codehaus.jackson.node">NumericNode</a></code></td> 300<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/ContainerNode.html#numberNode(byte)">numberNode</a></strong>(byte v)</code> </td> 301</tr> 302<tr class="altColor"> 303<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/node/NumericNode.html" title="class in org.codehaus.jackson.node">NumericNode</a></code></td> 304<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/ContainerNode.html#numberNode(double)">numberNode</a></strong>(double v)</code> </td> 305</tr> 306<tr class="rowColor"> 307<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/node/NumericNode.html" title="class in org.codehaus.jackson.node">NumericNode</a></code></td> 308<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/ContainerNode.html#numberNode(float)">numberNode</a></strong>(float v)</code> </td> 309</tr> 310<tr class="altColor"> 311<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/node/NumericNode.html" title="class in org.codehaus.jackson.node">NumericNode</a></code></td> 312<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/ContainerNode.html#numberNode(int)">numberNode</a></strong>(int v)</code> </td> 313</tr> 314<tr class="rowColor"> 315<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/node/NumericNode.html" title="class in org.codehaus.jackson.node">NumericNode</a></code></td> 316<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/ContainerNode.html#numberNode(long)">numberNode</a></strong>(long v)</code> </td> 317</tr> 318<tr class="altColor"> 319<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/node/NumericNode.html" title="class in org.codehaus.jackson.node">NumericNode</a></code></td> 320<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/ContainerNode.html#numberNode(short)">numberNode</a></strong>(short v)</code> </td> 321</tr> 322<tr class="rowColor"> 323<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/node/ObjectNode.html" title="class in org.codehaus.jackson.node">ObjectNode</a></code></td> 324<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/ContainerNode.html#objectNode()">objectNode</a></strong>()</code> 325<div class="block">Factory method that constructs and returns an empty <a href="../../../../org/codehaus/jackson/node/ObjectNode.html" title="class in org.codehaus.jackson.node"><code>ObjectNode</code></a> 326 Construction is done using registered <a href="../../../../org/codehaus/jackson/node/JsonNodeFactory.html" title="class in org.codehaus.jackson.node"><code>JsonNodeFactory</code></a>.</div> 327</td> 328</tr> 329<tr class="altColor"> 330<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/node/POJONode.html" title="class in org.codehaus.jackson.node">POJONode</a></code></td> 331<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/ContainerNode.html#POJONode(java.lang.Object)">POJONode</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> pojo)</code> </td> 332</tr> 333<tr class="rowColor"> 334<td class="colFirst"><code>abstract <a href="../../../../org/codehaus/jackson/node/ContainerNode.html" title="class in org.codehaus.jackson.node">ContainerNode</a></code></td> 335<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/ContainerNode.html#removeAll()">removeAll</a></strong>()</code> 336<div class="block">Method for removing all children container has (if any)</div> 337</td> 338</tr> 339<tr class="altColor"> 340<td class="colFirst"><code>abstract int</code></td> 341<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/ContainerNode.html#size()">size</a></strong>()</code> 342<div class="block">Method that returns number of child nodes this node contains: 343 for Array nodes, number of child elements, for Object nodes, 344 number of fields, and for all other nodes 0.</div> 345</td> 346</tr> 347<tr class="rowColor"> 348<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/node/TextNode.html" title="class in org.codehaus.jackson.node">TextNode</a></code></td> 349<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/node/ContainerNode.html#textNode(java.lang.String)">textNode</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> text)</code> </td> 350</tr> 351</table> 352<ul class="blockList"> 353<li class="blockList"><a name="methods_inherited_from_class_org.codehaus.jackson.node.BaseJsonNode"> 354<!-- --> 355</a> 356<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> 357<code><a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#findPath(java.lang.String)">findPath</a>, <a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#getNumberType()">getNumberType</a>, <a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#serialize(org.codehaus.jackson.JsonGenerator, org.codehaus.jackson.map.SerializerProvider)">serialize</a>, <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>, <a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#traverse()">traverse</a></code></li> 358</ul> 359<ul class="blockList"> 360<li class="blockList"><a name="methods_inherited_from_class_org.codehaus.jackson.JsonNode"> 361<!-- --> 362</a> 363<h3>Methods inherited from class org.codehaus.jackson.<a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></h3> 364<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#asDouble(double)">asDouble</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#asInt()">asInt</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#asInt(int)">asInt</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#asLong()">asLong</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#asLong(long)">asLong</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#equals(java.lang.Object)">equals</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#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#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#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#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#path(int)">path</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#path(java.lang.String)">path</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#toString()">toString</a>, <a href="../../../../org/codehaus/jackson/JsonNode.html#with(java.lang.String)">with</a></code></li> 365</ul> 366<ul class="blockList"> 367<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> 368<!-- --> 369</a> 370<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> 371<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> 372</ul> 373</li> 374</ul> 375</li> 376</ul> 377</div> 378<div class="details"> 379<ul class="blockList"> 380<li class="blockList"> 381<!-- ========= CONSTRUCTOR DETAIL ======== --> 382<ul class="blockList"> 383<li class="blockList"><a name="constructor_detail"> 384<!-- --> 385</a> 386<h3>Constructor Detail</h3> 387<a name="ContainerNode(org.codehaus.jackson.node.JsonNodeFactory)"> 388<!-- --> 389</a> 390<ul class="blockListLast"> 391<li class="blockList"> 392<h4>ContainerNode</h4> 393<pre>protected ContainerNode(<a href="../../../../org/codehaus/jackson/node/JsonNodeFactory.html" title="class in org.codehaus.jackson.node">JsonNodeFactory</a> nc)</pre> 394</li> 395</ul> 396</li> 397</ul> 398<!-- ============ METHOD DETAIL ========== --> 399<ul class="blockList"> 400<li class="blockList"><a name="method_detail"> 401<!-- --> 402</a> 403<h3>Method Detail</h3> 404<a name="isContainerNode()"> 405<!-- --> 406</a> 407<ul class="blockList"> 408<li class="blockList"> 409<h4>isContainerNode</h4> 410<pre>public boolean isContainerNode()</pre> 411<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonNode.html#isContainerNode()">JsonNode</a></code></strong></div> 412<div class="block">Method that returns true for container nodes: Arrays and Objects. 413<p> 414 Note: one and only one of methods <a href="../../../../org/codehaus/jackson/JsonNode.html#isValueNode()"><code>JsonNode.isValueNode()</code></a>, 415 <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 416 returns true for any given node.</div> 417<dl> 418<dt><strong>Overrides:</strong></dt> 419<dd><code><a href="../../../../org/codehaus/jackson/JsonNode.html#isContainerNode()">isContainerNode</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></dd> 420</dl> 421</li> 422</ul> 423<a name="asToken()"> 424<!-- --> 425</a> 426<ul class="blockList"> 427<li class="blockList"> 428<h4>asToken</h4> 429<pre>public abstract <a href="../../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson">JsonToken</a> asToken()</pre> 430<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#asToken()">BaseJsonNode</a></code></strong></div> 431<div class="block">Method that can be used for efficient type detection 432 when using stream abstraction for traversing nodes. 433 Will return the first <a href="../../../../org/codehaus/jackson/JsonToken.html" title="enum in org.codehaus.jackson"><code>JsonToken</code></a> that equivalent 434 stream event would produce (for most nodes there is just 435 one token but for structured/container types multiple)</div> 436<dl> 437<dt><strong>Specified by:</strong></dt> 438<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> 439</dl> 440</li> 441</ul> 442<a name="getValueAsText()"> 443<!-- --> 444</a> 445<ul class="blockList"> 446<li class="blockList"> 447<h4>getValueAsText</h4> 448<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> getValueAsText()</pre> 449<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonNode.html#getValueAsText()">JsonNode</a></code></strong></div> 450<div class="block">Method that will return valid String representation of 451 the container value, if the node is a value node 452 (method <a href="../../../../org/codehaus/jackson/JsonNode.html#isValueNode()"><code>JsonNode.isValueNode()</code></a> returns true), otherwise null. 453<p> 454 Note: to serialize nodes of any type, you should call 455 <a href="../../../../org/codehaus/jackson/JsonNode.html#toString()"><code>JsonNode.toString()</code></a> instead.</div> 456<dl> 457<dt><strong>Overrides:</strong></dt> 458<dd><code><a href="../../../../org/codehaus/jackson/JsonNode.html#getValueAsText()">getValueAsText</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></dd> 459</dl> 460</li> 461</ul> 462<a name="asText()"> 463<!-- --> 464</a> 465<ul class="blockList"> 466<li class="blockList"> 467<h4>asText</h4> 468<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> 469<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonNode.html#asText()">JsonNode</a></code></strong></div> 470<div class="block">Method that will return valid String representation of 471 the container value, if the node is a value node 472 (method <a href="../../../../org/codehaus/jackson/JsonNode.html#isValueNode()"><code>JsonNode.isValueNode()</code></a> returns true), otherwise 473 empty String.</div> 474<dl> 475<dt><strong>Specified by:</strong></dt> 476<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> 477</dl> 478</li> 479</ul> 480<a name="findValue(java.lang.String)"> 481<!-- --> 482</a> 483<ul class="blockList"> 484<li class="blockList"> 485<h4>findValue</h4> 486<pre>public abstract <a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a> findValue(<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> 487<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonNode.html#findValue(java.lang.String)">JsonNode</a></code></strong></div> 488<div class="block">Method for finding a JSON Object field with specified name in this 489 node or its child nodes, and returning value it has. 490 If no matching field is found in this node or its descendants, returns null.</div> 491<dl> 492<dt><strong>Overrides:</strong></dt> 493<dd><code><a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#findValue(java.lang.String)">findValue</a></code> in class <code><a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html" title="class in org.codehaus.jackson.node">BaseJsonNode</a></code></dd> 494<dt><span class="strong">Parameters:</span></dt><dd><code>fieldName</code> - Name of field to look for</dd> 495<dt><span class="strong">Returns:</span></dt><dd>Value of first matching node found, if any; null if none</dd></dl> 496</li> 497</ul> 498<a name="findParent(java.lang.String)"> 499<!-- --> 500</a> 501<ul class="blockList"> 502<li class="blockList"> 503<h4>findParent</h4> 504<pre>public abstract <a href="../../../../org/codehaus/jackson/node/ObjectNode.html" title="class in org.codehaus.jackson.node">ObjectNode</a> findParent(<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> 505<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonNode.html#findParent(java.lang.String)">JsonNode</a></code></strong></div> 506<div class="block">Method for finding a JSON Object that contains specified field, 507 within this node or its descendants. 508 If no matching field is found in this node or its descendants, returns null.</div> 509<dl> 510<dt><strong>Overrides:</strong></dt> 511<dd><code><a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#findParent(java.lang.String)">findParent</a></code> in class <code><a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html" title="class in org.codehaus.jackson.node">BaseJsonNode</a></code></dd> 512<dt><span class="strong">Parameters:</span></dt><dd><code>fieldName</code> - Name of field to look for</dd> 513<dt><span class="strong">Returns:</span></dt><dd>Value of first matching node found, if any; null if none</dd></dl> 514</li> 515</ul> 516<a name="findValues(java.lang.String, java.util.List)"> 517<!-- --> 518</a> 519<ul class="blockList"> 520<li class="blockList"> 521<h4>findValues</h4> 522<pre>public abstract <a href="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a>> findValues(<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, 523 <a href="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a>> foundSoFar)</pre> 524<dl> 525<dt><strong>Overrides:</strong></dt> 526<dd><code><a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#findValues(java.lang.String, java.util.List)">findValues</a></code> in class <code><a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html" title="class in org.codehaus.jackson.node">BaseJsonNode</a></code></dd> 527</dl> 528</li> 529</ul> 530<a name="findParents(java.lang.String, java.util.List)"> 531<!-- --> 532</a> 533<ul class="blockList"> 534<li class="blockList"> 535<h4>findParents</h4> 536<pre>public abstract <a href="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a>> findParents(<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, 537 <a href="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a>> foundSoFar)</pre> 538<dl> 539<dt><strong>Overrides:</strong></dt> 540<dd><code><a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#findParents(java.lang.String, java.util.List)">findParents</a></code> in class <code><a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html" title="class in org.codehaus.jackson.node">BaseJsonNode</a></code></dd> 541</dl> 542</li> 543</ul> 544<a name="findValuesAsText(java.lang.String, java.util.List)"> 545<!-- --> 546</a> 547<ul class="blockList"> 548<li class="blockList"> 549<h4>findValuesAsText</h4> 550<pre>public abstract <a href="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> findValuesAsText(<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, 551 <a href="http://docs.oracle.com/javase/6/docs/api/java/util/List.html?is-external=true" title="class or interface in java.util">List</a><<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>> foundSoFar)</pre> 552<dl> 553<dt><strong>Overrides:</strong></dt> 554<dd><code><a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html#findValuesAsText(java.lang.String, java.util.List)">findValuesAsText</a></code> in class <code><a href="../../../../org/codehaus/jackson/node/BaseJsonNode.html" title="class in org.codehaus.jackson.node">BaseJsonNode</a></code></dd> 555</dl> 556</li> 557</ul> 558<a name="size()"> 559<!-- --> 560</a> 561<ul class="blockList"> 562<li class="blockList"> 563<h4>size</h4> 564<pre>public abstract int size()</pre> 565<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonNode.html#size()">JsonNode</a></code></strong></div> 566<div class="block">Method that returns number of child nodes this node contains: 567 for Array nodes, number of child elements, for Object nodes, 568 number of fields, and for all other nodes 0.</div> 569<dl> 570<dt><strong>Overrides:</strong></dt> 571<dd><code><a href="../../../../org/codehaus/jackson/JsonNode.html#size()">size</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></dd> 572<dt><span class="strong">Returns:</span></dt><dd>For non-container nodes returns 0; for arrays number of 573 contained elements, and for objects number of fields.</dd></dl> 574</li> 575</ul> 576<a name="get(int)"> 577<!-- --> 578</a> 579<ul class="blockList"> 580<li class="blockList"> 581<h4>get</h4> 582<pre>public abstract <a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a> get(int index)</pre> 583<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonNode.html#get(int)">JsonNode</a></code></strong></div> 584<div class="block">Method for accessing value of the specified element of 585 an array node. For other nodes, null is always returned. 586<p> 587 For array nodes, index specifies 588 exact location within array and allows for efficient iteration 589 over child elements (underlying storage is guaranteed to 590 be efficiently indexable, i.e. has random-access to elements). 591 If index is less than 0, or equal-or-greater than 592 <code>node.size()</code>, null is returned; no exception is 593 thrown for any index.</div> 594<dl> 595<dt><strong>Overrides:</strong></dt> 596<dd><code><a href="../../../../org/codehaus/jackson/JsonNode.html#get(int)">get</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></dd> 597<dt><span class="strong">Returns:</span></dt><dd>Node that represent value of the specified element, 598 if this node is an array and has specified element. 599 Null otherwise.</dd></dl> 600</li> 601</ul> 602<a name="get(java.lang.String)"> 603<!-- --> 604</a> 605<ul class="blockList"> 606<li class="blockList"> 607<h4>get</h4> 608<pre>public abstract <a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a> get(<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> 609<div class="block"><strong>Description copied from class: <code><a href="../../../../org/codehaus/jackson/JsonNode.html#get(java.lang.String)">JsonNode</a></code></strong></div> 610<div class="block">Method for accessing value of the specified field of 611 an object node. If this node is not an object (or it 612 does not have a value for specified field name), or 613 if there is no field with such name, null is returned.</div> 614<dl> 615<dt><strong>Overrides:</strong></dt> 616<dd><code><a href="../../../../org/codehaus/jackson/JsonNode.html#get(java.lang.String)">get</a></code> in class <code><a href="../../../../org/codehaus/jackson/JsonNode.html" title="class in org.codehaus.jackson">JsonNode</a></code></dd> 617<dt><span class="strong">Returns:</span></dt><dd>Node that represent value of the specified field, 618 if this node is an object and has value for the specified 619 field. Null otherwise.</dd></dl> 620</li> 621</ul> 622<a name="arrayNode()"> 623<!-- --> 624</a> 625<ul class="blockList"> 626<li class="blockList"> 627<h4>arrayNode</h4> 628<pre>public final <a href="../../../../org/codehaus/jackson/node/ArrayNode.html" title="class in org.codehaus.jackson.node">ArrayNode</a> arrayNode()</pre> 629<div class="block">Factory method that constructs and returns an empty <a href="../../../../org/codehaus/jackson/node/ArrayNode.html" title="class in org.codehaus.jackson.node"><code>ArrayNode</code></a> 630 Construction is done using registered <a href="../../../../org/codehaus/jackson/node/JsonNodeFactory.html" title="class in org.codehaus.jackson.node"><code>JsonNodeFactory</code></a>.</div> 631</li> 632</ul> 633<a name="objectNode()"> 634<!-- --> 635</a> 636<ul class="blockList"> 637<li class="blockList"> 638<h4>objectNode</h4> 639<pre>public final <a href="../../../../org/codehaus/jackson/node/ObjectNode.html" title="class in org.codehaus.jackson.node">ObjectNode</a> objectNode()</pre> 640<div class="block">Factory method that constructs and returns an empty <a href="../../../../org/codehaus/jackson/node/ObjectNode.html" title="class in org.codehaus.jackson.node"><code>ObjectNode</code></a> 641 Construction is done using registered <a href="../../../../org/codehaus/jackson/node/JsonNodeFactory.html" title="class in org.codehaus.jackson.node"><code>JsonNodeFactory</code></a>.</div> 642</li> 643</ul> 644<a name="nullNode()"> 645<!-- --> 646</a> 647<ul class="blockList"> 648<li class="blockList"> 649<h4>nullNode</h4> 650<pre>public final <a href="../../../../org/codehaus/jackson/node/NullNode.html" title="class in org.codehaus.jackson.node">NullNode</a> nullNode()</pre> 651</li> 652</ul> 653<a name="booleanNode(boolean)"> 654<!-- --> 655</a> 656<ul class="blockList"> 657<li class="blockList"> 658<h4>booleanNode</h4> 659<pre>public final <a href="../../../../org/codehaus/jackson/node/BooleanNode.html" title="class in org.codehaus.jackson.node">BooleanNode</a> booleanNode(boolean v)</pre> 660</li> 661</ul> 662<a name="numberNode(byte)"> 663<!-- --> 664</a> 665<ul class="blockList"> 666<li class="blockList"> 667<h4>numberNode</h4> 668<pre>public final <a href="../../../../org/codehaus/jackson/node/NumericNode.html" title="class in org.codehaus.jackson.node">NumericNode</a> numberNode(byte v)</pre> 669</li> 670</ul> 671<a name="numberNode(short)"> 672<!-- --> 673</a> 674<ul class="blockList"> 675<li class="blockList"> 676<h4>numberNode</h4> 677<pre>public final <a href="../../../../org/codehaus/jackson/node/NumericNode.html" title="class in org.codehaus.jackson.node">NumericNode</a> numberNode(short v)</pre> 678</li> 679</ul> 680<a name="numberNode(int)"> 681<!-- --> 682</a> 683<ul class="blockList"> 684<li class="blockList"> 685<h4>numberNode</h4> 686<pre>public final <a href="../../../../org/codehaus/jackson/node/NumericNode.html" title="class in org.codehaus.jackson.node">NumericNode</a> numberNode(int v)</pre> 687</li> 688</ul> 689<a name="numberNode(long)"> 690<!-- --> 691</a> 692<ul class="blockList"> 693<li class="blockList"> 694<h4>numberNode</h4> 695<pre>public final <a href="../../../../org/codehaus/jackson/node/NumericNode.html" title="class in org.codehaus.jackson.node">NumericNode</a> numberNode(long v)</pre> 696</li> 697</ul> 698<a name="numberNode(float)"> 699<!-- --> 700</a> 701<ul class="blockList"> 702<li class="blockList"> 703<h4>numberNode</h4> 704<pre>public final <a href="../../../../org/codehaus/jackson/node/NumericNode.html" title="class in org.codehaus.jackson.node">NumericNode</a> numberNode(float v)</pre> 705</li> 706</ul> 707<a name="numberNode(double)"> 708<!-- --> 709</a> 710<ul class="blockList"> 711<li class="blockList"> 712<h4>numberNode</h4> 713<pre>public final <a href="../../../../org/codehaus/jackson/node/NumericNode.html" title="class in org.codehaus.jackson.node">NumericNode</a> numberNode(double v)</pre> 714</li> 715</ul> 716<a name="numberNode(java.math.BigDecimal)"> 717<!-- --> 718</a> 719<ul class="blockList"> 720<li class="blockList"> 721<h4>numberNode</h4> 722<pre>public final <a href="../../../../org/codehaus/jackson/node/NumericNode.html" title="class in org.codehaus.jackson.node">NumericNode</a> numberNode(<a href="http://docs.oracle.com/javase/6/docs/api/java/math/BigDecimal.html?is-external=true" title="class or interface in java.math">BigDecimal</a> v)</pre> 723</li> 724</ul> 725<a name="textNode(java.lang.String)"> 726<!-- --> 727</a> 728<ul class="blockList"> 729<li class="blockList"> 730<h4>textNode</h4> 731<pre>public final <a href="../../../../org/codehaus/jackson/node/TextNode.html" title="class in org.codehaus.jackson.node">TextNode</a> textNode(<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> text)</pre> 732</li> 733</ul> 734<a name="binaryNode(byte[])"> 735<!-- --> 736</a> 737<ul class="blockList"> 738<li class="blockList"> 739<h4>binaryNode</h4> 740<pre>public final <a href="../../../../org/codehaus/jackson/node/BinaryNode.html" title="class in org.codehaus.jackson.node">BinaryNode</a> binaryNode(byte[] data)</pre> 741</li> 742</ul> 743<a name="binaryNode(byte[], int, int)"> 744<!-- --> 745</a> 746<ul class="blockList"> 747<li class="blockList"> 748<h4>binaryNode</h4> 749<pre>public final <a href="../../../../org/codehaus/jackson/node/BinaryNode.html" title="class in org.codehaus.jackson.node">BinaryNode</a> binaryNode(byte[] data, 750 int offset, 751 int length)</pre> 752</li> 753</ul> 754<a name="POJONode(java.lang.Object)"> 755<!-- --> 756</a> 757<ul class="blockList"> 758<li class="blockList"> 759<h4>POJONode</h4> 760<pre>public final <a href="../../../../org/codehaus/jackson/node/POJONode.html" title="class in org.codehaus.jackson.node">POJONode</a> POJONode(<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> pojo)</pre> 761</li> 762</ul> 763<a name="removeAll()"> 764<!-- --> 765</a> 766<ul class="blockListLast"> 767<li class="blockList"> 768<h4>removeAll</h4> 769<pre>public abstract <a href="../../../../org/codehaus/jackson/node/ContainerNode.html" title="class in org.codehaus.jackson.node">ContainerNode</a> removeAll()</pre> 770<div class="block">Method for removing all children container has (if any)</div> 771<dl><dt><span class="strong">Returns:</span></dt><dd>Container node itself (to allow method call chaining)</dd><dt><span class="strong">Since:</span></dt> 772 <dd>1.3</dd></dl> 773</li> 774</ul> 775</li> 776</ul> 777</li> 778</ul> 779</div> 780</div> 781<!-- ========= END OF CLASS DATA ========= --> 782<!-- ======= START OF BOTTOM NAVBAR ====== --> 783<div class="bottomNav"><a name="navbar_bottom"> 784<!-- --> 785</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> 786<!-- --> 787</a> 788<ul class="navList" title="Navigation"> 789<li><a href="../../../../overview-summary.html">Overview</a></li> 790<li><a href="package-summary.html">Package</a></li> 791<li class="navBarCell1Rev">Class</li> 792<li><a href="class-use/ContainerNode.html">Use</a></li> 793<li><a href="package-tree.html">Tree</a></li> 794<li><a href="../../../../deprecated-list.html">Deprecated</a></li> 795<li><a href="../../../../index-all.html">Index</a></li> 796<li><a href="../../../../help-doc.html">Help</a></li> 797</ul> 798</div> 799<div class="subNav"> 800<ul class="navList"> 801<li><a href="../../../../org/codehaus/jackson/node/BooleanNode.html" title="class in org.codehaus.jackson.node"><span class="strong">Prev Class</span></a></li> 802<li><a href="../../../../org/codehaus/jackson/node/ContainerNode.NoNodesIterator.html" title="class in org.codehaus.jackson.node"><span class="strong">Next Class</span></a></li> 803</ul> 804<ul class="navList"> 805<li><a href="../../../../index.html?org/codehaus/jackson/node/ContainerNode.html" target="_top">Frames</a></li> 806<li><a href="ContainerNode.html" target="_top">No Frames</a></li> 807</ul> 808<ul class="navList" id="allclasses_navbar_bottom"> 809<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> 810</ul> 811<div> 812<script type="text/javascript"><!-- 813 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 814 if(window==top) { 815 allClassesLink.style.display = "block"; 816 } 817 else { 818 allClassesLink.style.display = "none"; 819 } 820 //--> 821</script> 822</div> 823<div> 824<ul class="subNavList"> 825<li>Summary: </li> 826<li><a href="#nested_class_summary">Nested</a> | </li> 827<li><a href="#fields_inherited_from_class_org.codehaus.jackson.JsonNode">Field</a> | </li> 828<li><a href="#constructor_summary">Constr</a> | </li> 829<li><a href="#method_summary">Method</a></li> 830</ul> 831<ul class="subNavList"> 832<li>Detail: </li> 833<li>Field | </li> 834<li><a href="#constructor_detail">Constr</a> | </li> 835<li><a href="#method_detail">Method</a></li> 836</ul> 837</div> 838<a name="skip-navbar_bottom"> 839<!-- --> 840</a></div> 841<!-- ======== END OF BOTTOM NAVBAR ======= --> 842</body> 843</html> 844