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_25) on Sat Nov 16 21:43:19 PST 2013 --> 6<meta http-equiv="Content-Type" content="text/html" charset="UTF-8"> 7<title>POJONode (jackson-databind 2.3.0 API)</title> 8<meta name="date" content="2013-11-16"> 9<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> 10</head> 11<body> 12<script type="text/javascript"><!-- 13 if (location.href.indexOf('is-external=true') == -1) { 14 parent.document.title="POJONode (jackson-databind 2.3.0 API)"; 15 } 16//--> 17</script> 18<noscript> 19<div>JavaScript is disabled on your browser.</div> 20</noscript> 21<!-- ========= START OF TOP NAVBAR ======= --> 22<div class="topNav"><a name="navbar_top"> 23<!-- --> 24</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow"> 25<!-- --> 26</a> 27<ul class="navList" title="Navigation"> 28<li><a href="../../../../../overview-summary.html">Overview</a></li> 29<li><a href="package-summary.html">Package</a></li> 30<li class="navBarCell1Rev">Class</li> 31<li><a href="class-use/POJONode.html">Use</a></li> 32<li><a href="package-tree.html">Tree</a></li> 33<li><a href="../../../../../deprecated-list.html">Deprecated</a></li> 34<li><a href="../../../../../index-all.html">Index</a></li> 35<li><a href="../../../../../help-doc.html">Help</a></li> 36</ul> 37</div> 38<div class="subNav"> 39<ul class="navList"> 40<li><a href="../../../../../com/fasterxml/jackson/databind/node/ObjectNode.html" title="class in com.fasterxml.jackson.databind.node"><span class="strong">Prev Class</span></a></li> 41<li><a href="../../../../../com/fasterxml/jackson/databind/node/ShortNode.html" title="class in com.fasterxml.jackson.databind.node"><span class="strong">Next Class</span></a></li> 42</ul> 43<ul class="navList"> 44<li><a href="../../../../../index.html?com/fasterxml/jackson/databind/node/POJONode.html" target="_top">Frames</a></li> 45<li><a href="POJONode.html" target="_top">No Frames</a></li> 46</ul> 47<ul class="navList" id="allclasses_navbar_top"> 48<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> 49</ul> 50<div> 51<script type="text/javascript"><!-- 52 allClassesLink = document.getElementById("allclasses_navbar_top"); 53 if(window==top) { 54 allClassesLink.style.display = "block"; 55 } 56 else { 57 allClassesLink.style.display = "none"; 58 } 59 //--> 60</script> 61</div> 62<div> 63<ul class="subNavList"> 64<li>Summary: </li> 65<li>Nested | </li> 66<li><a href="#field_summary">Field</a> | </li> 67<li><a href="#constructor_summary">Constr</a> | </li> 68<li><a href="#method_summary">Method</a></li> 69</ul> 70<ul class="subNavList"> 71<li>Detail: </li> 72<li><a href="#field_detail">Field</a> | </li> 73<li><a href="#constructor_detail">Constr</a> | </li> 74<li><a href="#method_detail">Method</a></li> 75</ul> 76</div> 77<a name="skip-navbar_top"> 78<!-- --> 79</a></div> 80<!-- ========= END OF TOP NAVBAR ========= --> 81<!-- ======== START OF CLASS DATA ======== --> 82<div class="header"> 83<div class="subTitle">com.fasterxml.jackson.databind.node</div> 84<h2 title="Class POJONode" class="title">Class POJONode</h2> 85</div> 86<div class="contentContainer"> 87<ul class="inheritance"> 88<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> 89<li> 90<ul class="inheritance"> 91<li><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">com.fasterxml.jackson.databind.JsonNode</a></li> 92<li> 93<ul class="inheritance"> 94<li><a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html" title="class in com.fasterxml.jackson.databind.node">com.fasterxml.jackson.databind.node.BaseJsonNode</a></li> 95<li> 96<ul class="inheritance"> 97<li><a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html" title="class in com.fasterxml.jackson.databind.node">com.fasterxml.jackson.databind.node.ValueNode</a></li> 98<li> 99<ul class="inheritance"> 100<li>com.fasterxml.jackson.databind.node.POJONode</li> 101</ul> 102</li> 103</ul> 104</li> 105</ul> 106</li> 107</ul> 108</li> 109</ul> 110<div class="description"> 111<ul class="blockList"> 112<li class="blockList"> 113<dl> 114<dt>All Implemented Interfaces:</dt> 115<dd><a href="http://fasterxml.github.com/jackson-core/javadoc/2.3.0/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.html" title="interface in com.fasterxml.jackson.databind">JsonSerializable</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a>></dd> 116</dl> 117<hr> 118<br> 119<pre>public class <span class="strong">POJONode</span> 120extends <a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html" title="class in com.fasterxml.jackson.databind.node">ValueNode</a></pre> 121<div class="block">Value node that contains a wrapped POJO, to be serialized as 122 a JSON constructed through data mapping (usually done by 123 calling <a href="../../../../../com/fasterxml/jackson/databind/ObjectMapper.html" title="class in com.fasterxml.jackson.databind"><code>ObjectMapper</code></a>).</div> 124</li> 125</ul> 126</div> 127<div class="summary"> 128<ul class="blockList"> 129<li class="blockList"> 130<!-- =========== FIELD SUMMARY =========== --> 131<ul class="blockList"> 132<li class="blockList"><a name="field_summary"> 133<!-- --> 134</a> 135<h3>Field Summary</h3> 136<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> 137<caption><span>Fields</span><span class="tabEnd"> </span></caption> 138<tr> 139<th class="colFirst" scope="col">Modifier and Type</th> 140<th class="colLast" scope="col">Field and Description</th> 141</tr> 142<tr class="altColor"> 143<td class="colFirst"><code>protected <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td> 144<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/node/POJONode.html#_value">_value</a></strong></code> </td> 145</tr> 146</table> 147</li> 148</ul> 149<!-- ======== CONSTRUCTOR SUMMARY ======== --> 150<ul class="blockList"> 151<li class="blockList"><a name="constructor_summary"> 152<!-- --> 153</a> 154<h3>Constructor Summary</h3> 155<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> 156<caption><span>Constructors</span><span class="tabEnd"> </span></caption> 157<tr> 158<th class="colOne" scope="col">Constructor and Description</th> 159</tr> 160<tr class="altColor"> 161<td class="colOne"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/node/POJONode.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> v)</code> </td> 162</tr> 163</table> 164</li> 165</ul> 166<!-- ========== METHOD SUMMARY =========== --> 167<ul class="blockList"> 168<li class="blockList"><a name="method_summary"> 169<!-- --> 170</a> 171<h3>Method Summary</h3> 172<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> 173<caption><span>Methods</span><span class="tabEnd"> </span></caption> 174<tr> 175<th class="colFirst" scope="col">Modifier and Type</th> 176<th class="colLast" scope="col">Method and Description</th> 177</tr> 178<tr class="altColor"> 179<td class="colFirst"><code>protected boolean</code></td> 180<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/node/POJONode.html#_pojoEquals(com.fasterxml.jackson.databind.node.POJONode)">_pojoEquals</a></strong>(<a href="../../../../../com/fasterxml/jackson/databind/node/POJONode.html" title="class in com.fasterxml.jackson.databind.node">POJONode</a> other)</code> </td> 181</tr> 182<tr class="rowColor"> 183<td class="colFirst"><code>boolean</code></td> 184<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/node/POJONode.html#asBoolean(boolean)">asBoolean</a></strong>(boolean defaultValue)</code> 185<div class="block">Method that will try to convert value of this node to a Java <b>boolean</b>.</div> 186</td> 187</tr> 188<tr class="altColor"> 189<td class="colFirst"><code>double</code></td> 190<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/node/POJONode.html#asDouble(double)">asDouble</a></strong>(double defaultValue)</code> 191<div class="block">Method that will try to convert value of this node to a Java <b>double</b>.</div> 192</td> 193</tr> 194<tr class="rowColor"> 195<td class="colFirst"><code>int</code></td> 196<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/node/POJONode.html#asInt(int)">asInt</a></strong>(int defaultValue)</code> 197<div class="block">Method that will try to convert value of this node to a Java <b>int</b>.</div> 198</td> 199</tr> 200<tr class="altColor"> 201<td class="colFirst"><code>long</code></td> 202<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/node/POJONode.html#asLong(long)">asLong</a></strong>(long defaultValue)</code> 203<div class="block">Method that will try to convert value of this node to a Java <b>long</b>.</div> 204</td> 205</tr> 206<tr class="rowColor"> 207<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> 208<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/node/POJONode.html#asText()">asText</a></strong>()</code> 209<div class="block">Method that will return a valid String representation of 210 the container value, if the node is a value node 211 (method <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isValueNode()"><code>JsonNode.isValueNode()</code></a> returns true), 212 otherwise empty String.</div> 213</td> 214</tr> 215<tr class="altColor"> 216<td class="colFirst"><code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.3.0/com/fasterxml/jackson/core/JsonToken.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonToken</a></code></td> 217<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/node/POJONode.html#asToken()">asToken</a></strong>()</code> 218<div class="block">Method that can be used for efficient type detection 219 when using stream abstraction for traversing nodes.</div> 220</td> 221</tr> 222<tr class="rowColor"> 223<td class="colFirst"><code>byte[]</code></td> 224<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/node/POJONode.html#binaryValue()">binaryValue</a></strong>()</code> 225<div class="block">As it is possible that some implementations embed byte[] as POJONode 226 (despite optimal being <a href="../../../../../com/fasterxml/jackson/databind/node/BinaryNode.html" title="class in com.fasterxml.jackson.databind.node"><code>BinaryNode</code></a>), let's add support for exposing 227 binary data here too.</div> 228</td> 229</tr> 230<tr class="altColor"> 231<td class="colFirst"><code>boolean</code></td> 232<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/node/POJONode.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> 233<div class="block">Equality for node objects is defined as full (deep) value 234 equality.</div> 235</td> 236</tr> 237<tr class="rowColor"> 238<td class="colFirst"><code><a href="../../../../../com/fasterxml/jackson/databind/node/JsonNodeType.html" title="enum in com.fasterxml.jackson.databind.node">JsonNodeType</a></code></td> 239<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/node/POJONode.html#getNodeType()">getNodeType</a></strong>()</code> 240<div class="block">Return the type of this node</div> 241</td> 242</tr> 243<tr class="altColor"> 244<td class="colFirst"><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></td> 245<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/node/POJONode.html#getPojo()">getPojo</a></strong>()</code> 246<div class="block">Method that can be used to access the POJO this node wraps.</div> 247</td> 248</tr> 249<tr class="rowColor"> 250<td class="colFirst"><code>int</code></td> 251<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/node/POJONode.html#hashCode()">hashCode</a></strong>()</code> </td> 252</tr> 253<tr class="altColor"> 254<td class="colFirst"><code>void</code></td> 255<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/node/POJONode.html#serialize(com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.SerializerProvider)">serialize</a></strong>(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.3.0/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator</a> jg, 256 <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html" title="class in com.fasterxml.jackson.databind">SerializerProvider</a> provider)</code> 257<div class="block">Method called to serialize node instances using given generator.</div> 258</td> 259</tr> 260<tr class="rowColor"> 261<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> 262<td class="colLast"><code><strong><a href="../../../../../com/fasterxml/jackson/databind/node/POJONode.html#toString()">toString</a></strong>()</code> 263<div class="block"> 264 Note: marked as abstract to ensure all implementation 265 classes define it properly.</div> 266</td> 267</tr> 268</table> 269<ul class="blockList"> 270<li class="blockList"><a name="methods_inherited_from_class_com.fasterxml.jackson.databind.node.ValueNode"> 271<!-- --> 272</a> 273<h3>Methods inherited from class com.fasterxml.jackson.databind.node.<a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html" title="class in com.fasterxml.jackson.databind.node">ValueNode</a></h3> 274<code><a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#_at(com.fasterxml.jackson.core.JsonPointer)">_at</a>, <a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#deepCopy()">deepCopy</a>, <a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#findParent(java.lang.String)">findParent</a>, <a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#findParents(java.lang.String, java.util.List)">findParents</a>, <a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#findValue(java.lang.String)">findValue</a>, <a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#findValues(java.lang.String, java.util.List)">findValues</a>, <a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#findValuesAsText(java.lang.String, java.util.List)">findValuesAsText</a>, <a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#get(int)">get</a>, <a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#get(java.lang.String)">get</a>, <a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#has(int)">has</a>, <a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#has(java.lang.String)">has</a>, <a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#hasNonNull(int)">hasNonNull</a>, <a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#hasNonNull(java.lang.String)">hasNonNull</a>, <a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#path(int)">path</a>, <a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#path(java.lang.String)">path</a>, <a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#serializeWithType(com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.SerializerProvider, com.fasterxml.jackson.databind.jsontype.TypeSerializer)">serializeWithType</a></code></li> 275</ul> 276<ul class="blockList"> 277<li class="blockList"><a name="methods_inherited_from_class_com.fasterxml.jackson.databind.node.BaseJsonNode"> 278<!-- --> 279</a> 280<h3>Methods inherited from class com.fasterxml.jackson.databind.node.<a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html" title="class in com.fasterxml.jackson.databind.node">BaseJsonNode</a></h3> 281<code><a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#findPath(java.lang.String)">findPath</a>, <a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#numberType()">numberType</a>, <a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#traverse()">traverse</a>, <a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#traverse(com.fasterxml.jackson.core.ObjectCodec)">traverse</a></code></li> 282</ul> 283<ul class="blockList"> 284<li class="blockList"><a name="methods_inherited_from_class_com.fasterxml.jackson.databind.JsonNode"> 285<!-- --> 286</a> 287<h3>Methods inherited from class com.fasterxml.jackson.databind.<a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></h3> 288<code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asBoolean()">asBoolean</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asDouble()">asDouble</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asInt()">asInt</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asLong()">asLong</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#at(com.fasterxml.jackson.core.JsonPointer)">at</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#at(java.lang.String)">at</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#bigIntegerValue()">bigIntegerValue</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#booleanValue()">booleanValue</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#canConvertToInt()">canConvertToInt</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#canConvertToLong()">canConvertToLong</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#decimalValue()">decimalValue</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#doubleValue()">doubleValue</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#elements()">elements</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#fieldNames()">fieldNames</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#fields()">fields</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#findParents(java.lang.String)">findParents</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#findValues(java.lang.String)">findValues</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#findValuesAsText(java.lang.String)">findValuesAsText</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#floatValue()">floatValue</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#intValue()">intValue</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isArray()">isArray</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isBigDecimal()">isBigDecimal</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isBigInteger()">isBigInteger</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isBinary()">isBinary</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isBoolean()">isBoolean</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isContainerNode()">isContainerNode</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isDouble()">isDouble</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isFloat()">isFloat</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isFloatingPointNumber()">isFloatingPointNumber</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isInt()">isInt</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isIntegralNumber()">isIntegralNumber</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isLong()">isLong</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isMissingNode()">isMissingNode</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNull()">isNull</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isNumber()">isNumber</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isObject()">isObject</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isPojo()">isPojo</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isShort()">isShort</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isTextual()">isTextual</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isValueNode()">isValueNode</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#iterator()">iterator</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#longValue()">longValue</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#numberValue()">numberValue</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#shortValue()">shortValue</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#size()">size</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#textValue()">textValue</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#with(java.lang.String)">with</a>, <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#withArray(java.lang.String)">withArray</a></code></li> 289</ul> 290<ul class="blockList"> 291<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> 292<!-- --> 293</a> 294<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> 295<code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</a></code></li> 296</ul> 297</li> 298</ul> 299</li> 300</ul> 301</div> 302<div class="details"> 303<ul class="blockList"> 304<li class="blockList"> 305<!-- ============ FIELD DETAIL =========== --> 306<ul class="blockList"> 307<li class="blockList"><a name="field_detail"> 308<!-- --> 309</a> 310<h3>Field Detail</h3> 311<a name="_value"> 312<!-- --> 313</a> 314<ul class="blockListLast"> 315<li class="blockList"> 316<h4>_value</h4> 317<pre>protected final <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> _value</pre> 318</li> 319</ul> 320</li> 321</ul> 322<!-- ========= CONSTRUCTOR DETAIL ======== --> 323<ul class="blockList"> 324<li class="blockList"><a name="constructor_detail"> 325<!-- --> 326</a> 327<h3>Constructor Detail</h3> 328<a name="POJONode(java.lang.Object)"> 329<!-- --> 330</a> 331<ul class="blockListLast"> 332<li class="blockList"> 333<h4>POJONode</h4> 334<pre>public 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> v)</pre> 335</li> 336</ul> 337</li> 338</ul> 339<!-- ============ METHOD DETAIL ========== --> 340<ul class="blockList"> 341<li class="blockList"><a name="method_detail"> 342<!-- --> 343</a> 344<h3>Method Detail</h3> 345<a name="getNodeType()"> 346<!-- --> 347</a> 348<ul class="blockList"> 349<li class="blockList"> 350<h4>getNodeType</h4> 351<pre>public <a href="../../../../../com/fasterxml/jackson/databind/node/JsonNodeType.html" title="enum in com.fasterxml.jackson.databind.node">JsonNodeType</a> getNodeType()</pre> 352<div class="block"><strong>Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#getNodeType()">JsonNode</a></code></strong></div> 353<div class="block">Return the type of this node</div> 354<dl> 355<dt><strong>Specified by:</strong></dt> 356<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#getNodeType()">getNodeType</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></dd> 357<dt><span class="strong">Returns:</span></dt><dd>the node type as a <a href="../../../../../com/fasterxml/jackson/databind/node/JsonNodeType.html" title="enum in com.fasterxml.jackson.databind.node"><code>JsonNodeType</code></a> enum value</dd></dl> 358</li> 359</ul> 360<a name="asToken()"> 361<!-- --> 362</a> 363<ul class="blockList"> 364<li class="blockList"> 365<h4>asToken</h4> 366<pre>public <a href="http://fasterxml.github.com/jackson-core/javadoc/2.3.0/com/fasterxml/jackson/core/JsonToken.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonToken</a> asToken()</pre> 367<div class="block"><strong>Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#asToken()">BaseJsonNode</a></code></strong></div> 368<div class="block">Method that can be used for efficient type detection 369 when using stream abstraction for traversing nodes. 370 Will return the first <a href="http://fasterxml.github.com/jackson-core/javadoc/2.3.0/com/fasterxml/jackson/core/JsonToken.html?is-external=true" title="class or interface in com.fasterxml.jackson.core"><code>JsonToken</code></a> that equivalent 371 stream event would produce (for most nodes there is just 372 one token but for structured/container types multiple)</div> 373<dl> 374<dt><strong>Specified by:</strong></dt> 375<dd><code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.3.0/com/fasterxml/jackson/core/TreeNode.html?is-external=true#asToken()" title="class or interface in com.fasterxml.jackson.core">asToken</a></code> in interface <code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.3.0/com/fasterxml/jackson/core/TreeNode.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">TreeNode</a></code></dd> 376<dt><strong>Specified by:</strong></dt> 377<dd><code><a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#asToken()">asToken</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html" title="class in com.fasterxml.jackson.databind.node">ValueNode</a></code></dd> 378</dl> 379</li> 380</ul> 381<a name="binaryValue()"> 382<!-- --> 383</a> 384<ul class="blockList"> 385<li class="blockList"> 386<h4>binaryValue</h4> 387<pre>public byte[] binaryValue() 388 throws <a href="http://docs.oracle.com/javase/6/docs/api/java/io/IOException.html?is-external=true" title="class or interface in java.io">IOException</a></pre> 389<div class="block">As it is possible that some implementations embed byte[] as POJONode 390 (despite optimal being <a href="../../../../../com/fasterxml/jackson/databind/node/BinaryNode.html" title="class in com.fasterxml.jackson.databind.node"><code>BinaryNode</code></a>), let's add support for exposing 391 binary data here too.</div> 392<dl> 393<dt><strong>Overrides:</strong></dt> 394<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#binaryValue()">binaryValue</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></dd> 395<dt><span class="strong">Returns:</span></dt><dd>Binary data this node contains, iff it is a binary 396 node; null otherwise</dd> 397<dt><span class="strong">Throws:</span></dt> 398<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></dl> 399</li> 400</ul> 401<a name="asText()"> 402<!-- --> 403</a> 404<ul class="blockList"> 405<li class="blockList"> 406<h4>asText</h4> 407<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> 408<div class="block"><strong>Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asText()">JsonNode</a></code></strong></div> 409<div class="block">Method that will return a valid String representation of 410 the container value, if the node is a value node 411 (method <a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#isValueNode()"><code>JsonNode.isValueNode()</code></a> returns true), 412 otherwise empty String.</div> 413<dl> 414<dt><strong>Specified by:</strong></dt> 415<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asText()">asText</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></dd> 416</dl> 417</li> 418</ul> 419<a name="asBoolean(boolean)"> 420<!-- --> 421</a> 422<ul class="blockList"> 423<li class="blockList"> 424<h4>asBoolean</h4> 425<pre>public boolean asBoolean(boolean defaultValue)</pre> 426<div class="block"><strong>Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asBoolean(boolean)">JsonNode</a></code></strong></div> 427<div class="block">Method that will try to convert value of this node to a Java <b>boolean</b>. 428 JSON booleans map naturally; integer numbers other than 0 map to true, and 429 0 maps to false 430 and Strings 'true' and 'false' map to corresponding values. 431<p> 432 If representation can not be converted to a boolean value (including structured types 433 like Objects and Arrays), 434 specified <b>defaultValue</b> will be returned; no exceptions are thrown.</div> 435<dl> 436<dt><strong>Overrides:</strong></dt> 437<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asBoolean(boolean)">asBoolean</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></dd> 438</dl> 439</li> 440</ul> 441<a name="asInt(int)"> 442<!-- --> 443</a> 444<ul class="blockList"> 445<li class="blockList"> 446<h4>asInt</h4> 447<pre>public int asInt(int defaultValue)</pre> 448<div class="block"><strong>Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asInt(int)">JsonNode</a></code></strong></div> 449<div class="block">Method that will try to convert value of this node to a Java <b>int</b>. 450 Numbers are coerced using default Java rules; booleans convert to 0 (false) 451 and 1 (true), and Strings are parsed using default Java language integer 452 parsing rules. 453<p> 454 If representation can not be converted to an int (including structured types 455 like Objects and Arrays), 456 specified <b>defaultValue</b> will be returned; no exceptions are thrown.</div> 457<dl> 458<dt><strong>Overrides:</strong></dt> 459<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asInt(int)">asInt</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></dd> 460</dl> 461</li> 462</ul> 463<a name="asLong(long)"> 464<!-- --> 465</a> 466<ul class="blockList"> 467<li class="blockList"> 468<h4>asLong</h4> 469<pre>public long asLong(long defaultValue)</pre> 470<div class="block"><strong>Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asLong(long)">JsonNode</a></code></strong></div> 471<div class="block">Method that will try to convert value of this node to a Java <b>long</b>. 472 Numbers are coerced using default Java rules; booleans convert to 0 (false) 473 and 1 (true), and Strings are parsed using default Java language integer 474 parsing rules. 475<p> 476 If representation can not be converted to an long (including structured types 477 like Objects and Arrays), 478 specified <b>defaultValue</b> will be returned; no exceptions are thrown.</div> 479<dl> 480<dt><strong>Overrides:</strong></dt> 481<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asLong(long)">asLong</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></dd> 482</dl> 483</li> 484</ul> 485<a name="asDouble(double)"> 486<!-- --> 487</a> 488<ul class="blockList"> 489<li class="blockList"> 490<h4>asDouble</h4> 491<pre>public double asDouble(double defaultValue)</pre> 492<div class="block"><strong>Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asDouble(double)">JsonNode</a></code></strong></div> 493<div class="block">Method that will try to convert value of this node to a Java <b>double</b>. 494 Numbers are coerced using default Java rules; booleans convert to 0.0 (false) 495 and 1.0 (true), and Strings are parsed using default Java language integer 496 parsing rules. 497<p> 498 If representation can not be converted to an int (including structured types 499 like Objects and Arrays), 500 specified <b>defaultValue</b> will be returned; no exceptions are thrown.</div> 501<dl> 502<dt><strong>Overrides:</strong></dt> 503<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#asDouble(double)">asDouble</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></dd> 504</dl> 505</li> 506</ul> 507<a name="serialize(com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.SerializerProvider)"> 508<!-- --> 509</a> 510<ul class="blockList"> 511<li class="blockList"> 512<h4>serialize</h4> 513<pre>public final void serialize(<a href="http://fasterxml.github.com/jackson-core/javadoc/2.3.0/com/fasterxml/jackson/core/JsonGenerator.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonGenerator</a> jg, 514 <a href="../../../../../com/fasterxml/jackson/databind/SerializerProvider.html" title="class in com.fasterxml.jackson.databind">SerializerProvider</a> provider) 515 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>, 516 <a href="http://fasterxml.github.com/jackson-core/javadoc/2.3.0/com/fasterxml/jackson/core/JsonProcessingException.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonProcessingException</a></pre> 517<div class="block"><strong>Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#serialize(com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.SerializerProvider)">BaseJsonNode</a></code></strong></div> 518<div class="block">Method called to serialize node instances using given generator.</div> 519<dl> 520<dt><strong>Specified by:</strong></dt> 521<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.html#serialize(com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.SerializerProvider)">serialize</a></code> in interface <code><a href="../../../../../com/fasterxml/jackson/databind/JsonSerializable.html" title="interface in com.fasterxml.jackson.databind">JsonSerializable</a></code></dd> 522<dt><strong>Specified by:</strong></dt> 523<dd><code><a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html#serialize(com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.SerializerProvider)">serialize</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/node/BaseJsonNode.html" title="class in com.fasterxml.jackson.databind.node">BaseJsonNode</a></code></dd> 524<dt><span class="strong">Throws:</span></dt> 525<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> 526<dd><code><a href="http://fasterxml.github.com/jackson-core/javadoc/2.3.0/com/fasterxml/jackson/core/JsonProcessingException.html?is-external=true" title="class or interface in com.fasterxml.jackson.core">JsonProcessingException</a></code></dd></dl> 527</li> 528</ul> 529<a name="getPojo()"> 530<!-- --> 531</a> 532<ul class="blockList"> 533<li class="blockList"> 534<h4>getPojo</h4> 535<pre>public <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> getPojo()</pre> 536<div class="block">Method that can be used to access the POJO this node wraps.</div> 537</li> 538</ul> 539<a name="equals(java.lang.Object)"> 540<!-- --> 541</a> 542<ul class="blockList"> 543<li class="blockList"> 544<h4>equals</h4> 545<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> 546<div class="block"><strong>Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#equals(java.lang.Object)">JsonNode</a></code></strong></div> 547<div class="block">Equality for node objects is defined as full (deep) value 548 equality. This means that it is possible to compare complete 549 JSON trees for equality by comparing equality of root nodes. 550<p> 551 Note: marked as abstract to ensure all implementation 552 classes define it properly and not rely on definition 553 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> 554<dl> 555<dt><strong>Specified by:</strong></dt> 556<dd><code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#equals(java.lang.Object)">equals</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html" title="class in com.fasterxml.jackson.databind">JsonNode</a></code></dd> 557</dl> 558</li> 559</ul> 560<a name="_pojoEquals(com.fasterxml.jackson.databind.node.POJONode)"> 561<!-- --> 562</a> 563<ul class="blockList"> 564<li class="blockList"> 565<h4>_pojoEquals</h4> 566<pre>protected boolean _pojoEquals(<a href="../../../../../com/fasterxml/jackson/databind/node/POJONode.html" title="class in com.fasterxml.jackson.databind.node">POJONode</a> other)</pre> 567<dl><dt><span class="strong">Since:</span></dt> 568 <dd>2.3</dd></dl> 569</li> 570</ul> 571<a name="hashCode()"> 572<!-- --> 573</a> 574<ul class="blockList"> 575<li class="blockList"> 576<h4>hashCode</h4> 577<pre>public int hashCode()</pre> 578<dl> 579<dt><strong>Overrides:</strong></dt> 580<dd><code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a></code> in class <code><a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></code></dd> 581</dl> 582</li> 583</ul> 584<a name="toString()"> 585<!-- --> 586</a> 587<ul class="blockListLast"> 588<li class="blockList"> 589<h4>toString</h4> 590<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> 591<div class="block"><strong>Description copied from class: <code><a href="../../../../../com/fasterxml/jackson/databind/JsonNode.html#toString()">JsonNode</a></code></strong></div> 592<div class="block"><p> 593 Note: marked as abstract to ensure all implementation 594 classes define it properly.</div> 595<dl> 596<dt><strong>Overrides:</strong></dt> 597<dd><code><a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html#toString()">toString</a></code> in class <code><a href="../../../../../com/fasterxml/jackson/databind/node/ValueNode.html" title="class in com.fasterxml.jackson.databind.node">ValueNode</a></code></dd> 598</dl> 599</li> 600</ul> 601</li> 602</ul> 603</li> 604</ul> 605</div> 606</div> 607<!-- ========= END OF CLASS DATA ========= --> 608<!-- ======= START OF BOTTOM NAVBAR ====== --> 609<div class="bottomNav"><a name="navbar_bottom"> 610<!-- --> 611</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> 612<!-- --> 613</a> 614<ul class="navList" title="Navigation"> 615<li><a href="../../../../../overview-summary.html">Overview</a></li> 616<li><a href="package-summary.html">Package</a></li> 617<li class="navBarCell1Rev">Class</li> 618<li><a href="class-use/POJONode.html">Use</a></li> 619<li><a href="package-tree.html">Tree</a></li> 620<li><a href="../../../../../deprecated-list.html">Deprecated</a></li> 621<li><a href="../../../../../index-all.html">Index</a></li> 622<li><a href="../../../../../help-doc.html">Help</a></li> 623</ul> 624</div> 625<div class="subNav"> 626<ul class="navList"> 627<li><a href="../../../../../com/fasterxml/jackson/databind/node/ObjectNode.html" title="class in com.fasterxml.jackson.databind.node"><span class="strong">Prev Class</span></a></li> 628<li><a href="../../../../../com/fasterxml/jackson/databind/node/ShortNode.html" title="class in com.fasterxml.jackson.databind.node"><span class="strong">Next Class</span></a></li> 629</ul> 630<ul class="navList"> 631<li><a href="../../../../../index.html?com/fasterxml/jackson/databind/node/POJONode.html" target="_top">Frames</a></li> 632<li><a href="POJONode.html" target="_top">No Frames</a></li> 633</ul> 634<ul class="navList" id="allclasses_navbar_bottom"> 635<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> 636</ul> 637<div> 638<script type="text/javascript"><!-- 639 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 640 if(window==top) { 641 allClassesLink.style.display = "block"; 642 } 643 else { 644 allClassesLink.style.display = "none"; 645 } 646 //--> 647</script> 648</div> 649<div> 650<ul class="subNavList"> 651<li>Summary: </li> 652<li>Nested | </li> 653<li><a href="#field_summary">Field</a> | </li> 654<li><a href="#constructor_summary">Constr</a> | </li> 655<li><a href="#method_summary">Method</a></li> 656</ul> 657<ul class="subNavList"> 658<li>Detail: </li> 659<li><a href="#field_detail">Field</a> | </li> 660<li><a href="#constructor_detail">Constr</a> | </li> 661<li><a href="#method_detail">Method</a></li> 662</ul> 663</div> 664<a name="skip-navbar_bottom"> 665<!-- --> 666</a></div> 667<!-- ======== END OF BOTTOM NAVBAR ======= --> 668<p class="legalCopy"><small>Copyright © 2012-2013 <a href="http://fasterxml.com/">FasterXML</a>. All Rights Reserved.</small></p> 669</body> 670</html> 671