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:33 PDT 2013 --> 6<title>BeanBuilder (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="BeanBuilder (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/BeanBuilder.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/mrbean/AbstractTypeMaterializer.Feature.html" title="enum in org.codehaus.jackson.mrbean"><span class="strong">Prev Class</span></a></li> 40<li><a href="../../../../org/codehaus/jackson/mrbean/BeanUtil.html" title="class in org.codehaus.jackson.mrbean"><span class="strong">Next Class</span></a></li> 41</ul> 42<ul class="navList"> 43<li><a href="../../../../index.html?org/codehaus/jackson/mrbean/BeanBuilder.html" target="_top">Frames</a></li> 44<li><a href="BeanBuilder.html" target="_top">No Frames</a></li> 45</ul> 46<ul class="navList" id="allclasses_navbar_top"> 47<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> 48</ul> 49<div> 50<script type="text/javascript"><!-- 51 allClassesLink = document.getElementById("allclasses_navbar_top"); 52 if(window==top) { 53 allClassesLink.style.display = "block"; 54 } 55 else { 56 allClassesLink.style.display = "none"; 57 } 58 //--> 59</script> 60</div> 61<div> 62<ul class="subNavList"> 63<li>Summary: </li> 64<li>Nested | </li> 65<li><a href="#field_summary">Field</a> | </li> 66<li><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><a href="#field_detail">Field</a> | </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.mrbean</div> 83<h2 title="Class BeanBuilder" class="title">Class BeanBuilder</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>org.codehaus.jackson.mrbean.BeanBuilder</li> 91</ul> 92</li> 93</ul> 94<div class="description"> 95<ul class="blockList"> 96<li class="blockList"> 97<hr> 98<br> 99<pre>public class <span class="strong">BeanBuilder</span> 100extends <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></pre> 101<div class="block">Heavy lifter of mr Bean package: class that keeps track of logical POJO properties, 102 and figures out how to create an implementation class.</div> 103<dl><dt><span class="strong">Since:</span></dt> 104 <dd>1.6</dd></dl> 105</li> 106</ul> 107</div> 108<div class="summary"> 109<ul class="blockList"> 110<li class="blockList"> 111<!-- =========== FIELD SUMMARY =========== --> 112<ul class="blockList"> 113<li class="blockList"><a name="field_summary"> 114<!-- --> 115</a> 116<h3>Field Summary</h3> 117<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> 118<caption><span>Fields</span><span class="tabEnd"> </span></caption> 119<tr> 120<th class="colFirst" scope="col">Modifier and Type</th> 121<th class="colLast" scope="col">Field and Description</th> 122</tr> 123<tr class="altColor"> 124<td class="colFirst"><code>protected <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</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>,org.codehaus.jackson.mrbean.BeanBuilder.Property></code></td> 125<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/mrbean/BeanBuilder.html#_beanProperties">_beanProperties</a></strong></code> </td> 126</tr> 127<tr class="rowColor"> 128<td class="colFirst"><code>protected <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?></code></td> 129<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/mrbean/BeanBuilder.html#_implementedType">_implementedType</a></strong></code> 130<div class="block">Abstract class or interface that the bean is created to extend or implement.</div> 131</td> 132</tr> 133<tr class="altColor"> 134<td class="colFirst"><code>protected <a href="../../../../org/codehaus/jackson/map/type/TypeFactory.html" title="class in org.codehaus.jackson.map.type">TypeFactory</a></code></td> 135<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/mrbean/BeanBuilder.html#_typeFactory">_typeFactory</a></strong></code> </td> 136</tr> 137<tr class="rowColor"> 138<td class="colFirst"><code>protected <a href="http://docs.oracle.com/javase/6/docs/api/java/util/LinkedHashMap.html?is-external=true" title="class or interface in java.util">LinkedHashMap</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>,<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Method.html?is-external=true" title="class or interface in java.lang.reflect">Method</a>></code></td> 139<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/mrbean/BeanBuilder.html#_unsupportedMethods">_unsupportedMethods</a></strong></code> </td> 140</tr> 141</table> 142</li> 143</ul> 144<!-- ======== CONSTRUCTOR SUMMARY ======== --> 145<ul class="blockList"> 146<li class="blockList"><a name="constructor_summary"> 147<!-- --> 148</a> 149<h3>Constructor Summary</h3> 150<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> 151<caption><span>Constructors</span><span class="tabEnd"> </span></caption> 152<tr> 153<th class="colOne" scope="col">Constructor and Description</th> 154</tr> 155<tr class="altColor"> 156<td class="colOne"><code><strong><a href="../../../../org/codehaus/jackson/mrbean/BeanBuilder.html#BeanBuilder(org.codehaus.jackson.map.DeserializationConfig, java.lang.Class)">BeanBuilder</a></strong>(<a href="../../../../org/codehaus/jackson/map/DeserializationConfig.html" title="class in org.codehaus.jackson.map">DeserializationConfig</a> config, 157 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> implType)</code> </td> 158</tr> 159</table> 160</li> 161</ul> 162<!-- ========== METHOD SUMMARY =========== --> 163<ul class="blockList"> 164<li class="blockList"><a name="method_summary"> 165<!-- --> 166</a> 167<h3>Method Summary</h3> 168<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> 169<caption><span>Methods</span><span class="tabEnd"> </span></caption> 170<tr> 171<th class="colFirst" scope="col">Modifier and Type</th> 172<th class="colLast" scope="col">Method and Description</th> 173</tr> 174<tr class="altColor"> 175<td class="colFirst"><code>byte[]</code></td> 176<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/mrbean/BeanBuilder.html#build(java.lang.String)">build</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> className)</code> 177<div class="block">Method that generates byte code for class that implements abstract 178 types requested so far.</div> 179</td> 180</tr> 181<tr class="rowColor"> 182<td class="colFirst"><code><a href="../../../../org/codehaus/jackson/mrbean/BeanBuilder.html" title="class in org.codehaus.jackson.mrbean">BeanBuilder</a></code></td> 183<td class="colLast"><code><strong><a href="../../../../org/codehaus/jackson/mrbean/BeanBuilder.html#implement(boolean)">implement</a></strong>(boolean failOnUnrecognized)</code> </td> 184</tr> 185</table> 186<ul class="blockList"> 187<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> 188<!-- --> 189</a> 190<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> 191<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#equals(java.lang.Object)" title="class or interface in java.lang">equals</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#toString()" title="class or interface in java.lang">toString</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> 192</ul> 193</li> 194</ul> 195</li> 196</ul> 197</div> 198<div class="details"> 199<ul class="blockList"> 200<li class="blockList"> 201<!-- ============ FIELD DETAIL =========== --> 202<ul class="blockList"> 203<li class="blockList"><a name="field_detail"> 204<!-- --> 205</a> 206<h3>Field Detail</h3> 207<a name="_beanProperties"> 208<!-- --> 209</a> 210<ul class="blockList"> 211<li class="blockList"> 212<h4>_beanProperties</h4> 213<pre>protected <a href="http://docs.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</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>,org.codehaus.jackson.mrbean.BeanBuilder.Property> _beanProperties</pre> 214</li> 215</ul> 216<a name="_unsupportedMethods"> 217<!-- --> 218</a> 219<ul class="blockList"> 220<li class="blockList"> 221<h4>_unsupportedMethods</h4> 222<pre>protected <a href="http://docs.oracle.com/javase/6/docs/api/java/util/LinkedHashMap.html?is-external=true" title="class or interface in java.util">LinkedHashMap</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>,<a href="http://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Method.html?is-external=true" title="class or interface in java.lang.reflect">Method</a>> _unsupportedMethods</pre> 223</li> 224</ul> 225<a name="_implementedType"> 226<!-- --> 227</a> 228<ul class="blockList"> 229<li class="blockList"> 230<h4>_implementedType</h4> 231<pre>protected final <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> _implementedType</pre> 232<div class="block">Abstract class or interface that the bean is created to extend or implement.</div> 233</li> 234</ul> 235<a name="_typeFactory"> 236<!-- --> 237</a> 238<ul class="blockListLast"> 239<li class="blockList"> 240<h4>_typeFactory</h4> 241<pre>protected final <a href="../../../../org/codehaus/jackson/map/type/TypeFactory.html" title="class in org.codehaus.jackson.map.type">TypeFactory</a> _typeFactory</pre> 242</li> 243</ul> 244</li> 245</ul> 246<!-- ========= CONSTRUCTOR DETAIL ======== --> 247<ul class="blockList"> 248<li class="blockList"><a name="constructor_detail"> 249<!-- --> 250</a> 251<h3>Constructor Detail</h3> 252<a name="BeanBuilder(org.codehaus.jackson.map.DeserializationConfig, java.lang.Class)"> 253<!-- --> 254</a> 255<ul class="blockListLast"> 256<li class="blockList"> 257<h4>BeanBuilder</h4> 258<pre>public BeanBuilder(<a href="../../../../org/codehaus/jackson/map/DeserializationConfig.html" title="class in org.codehaus.jackson.map">DeserializationConfig</a> config, 259 <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Class.html?is-external=true" title="class or interface in java.lang">Class</a><?> implType)</pre> 260</li> 261</ul> 262</li> 263</ul> 264<!-- ============ METHOD DETAIL ========== --> 265<ul class="blockList"> 266<li class="blockList"><a name="method_detail"> 267<!-- --> 268</a> 269<h3>Method Detail</h3> 270<a name="implement(boolean)"> 271<!-- --> 272</a> 273<ul class="blockList"> 274<li class="blockList"> 275<h4>implement</h4> 276<pre>public <a href="../../../../org/codehaus/jackson/mrbean/BeanBuilder.html" title="class in org.codehaus.jackson.mrbean">BeanBuilder</a> implement(boolean failOnUnrecognized)</pre> 277<dl><dt><span class="strong">Parameters:</span></dt><dd><code>failOnUnrecognized</code> - If true, and an unrecognized (non-getter, non-setter) 278 method is encountered, will throw <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang"><code>IllegalArgumentException</code></a>; if false, 279 will implement bogus method that will throw <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/UnsupportedOperationException.html?is-external=true" title="class or interface in java.lang"><code>UnsupportedOperationException</code></a> 280 if called.</dd></dl> 281</li> 282</ul> 283<a name="build(java.lang.String)"> 284<!-- --> 285</a> 286<ul class="blockListLast"> 287<li class="blockList"> 288<h4>build</h4> 289<pre>public byte[] build(<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> className)</pre> 290<div class="block">Method that generates byte code for class that implements abstract 291 types requested so far.</div> 292<dl><dt><span class="strong">Parameters:</span></dt><dd><code>className</code> - Fully-qualified name of the class to generate</dd> 293<dt><span class="strong">Returns:</span></dt><dd>Byte code Class instance built by this builder</dd></dl> 294</li> 295</ul> 296</li> 297</ul> 298</li> 299</ul> 300</div> 301</div> 302<!-- ========= END OF CLASS DATA ========= --> 303<!-- ======= START OF BOTTOM NAVBAR ====== --> 304<div class="bottomNav"><a name="navbar_bottom"> 305<!-- --> 306</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow"> 307<!-- --> 308</a> 309<ul class="navList" title="Navigation"> 310<li><a href="../../../../overview-summary.html">Overview</a></li> 311<li><a href="package-summary.html">Package</a></li> 312<li class="navBarCell1Rev">Class</li> 313<li><a href="class-use/BeanBuilder.html">Use</a></li> 314<li><a href="package-tree.html">Tree</a></li> 315<li><a href="../../../../deprecated-list.html">Deprecated</a></li> 316<li><a href="../../../../index-all.html">Index</a></li> 317<li><a href="../../../../help-doc.html">Help</a></li> 318</ul> 319</div> 320<div class="subNav"> 321<ul class="navList"> 322<li><a href="../../../../org/codehaus/jackson/mrbean/AbstractTypeMaterializer.Feature.html" title="enum in org.codehaus.jackson.mrbean"><span class="strong">Prev Class</span></a></li> 323<li><a href="../../../../org/codehaus/jackson/mrbean/BeanUtil.html" title="class in org.codehaus.jackson.mrbean"><span class="strong">Next Class</span></a></li> 324</ul> 325<ul class="navList"> 326<li><a href="../../../../index.html?org/codehaus/jackson/mrbean/BeanBuilder.html" target="_top">Frames</a></li> 327<li><a href="BeanBuilder.html" target="_top">No Frames</a></li> 328</ul> 329<ul class="navList" id="allclasses_navbar_bottom"> 330<li><a href="../../../../allclasses-noframe.html">All Classes</a></li> 331</ul> 332<div> 333<script type="text/javascript"><!-- 334 allClassesLink = document.getElementById("allclasses_navbar_bottom"); 335 if(window==top) { 336 allClassesLink.style.display = "block"; 337 } 338 else { 339 allClassesLink.style.display = "none"; 340 } 341 //--> 342</script> 343</div> 344<div> 345<ul class="subNavList"> 346<li>Summary: </li> 347<li>Nested | </li> 348<li><a href="#field_summary">Field</a> | </li> 349<li><a href="#constructor_summary">Constr</a> | </li> 350<li><a href="#method_summary">Method</a></li> 351</ul> 352<ul class="subNavList"> 353<li>Detail: </li> 354<li><a href="#field_detail">Field</a> | </li> 355<li><a href="#constructor_detail">Constr</a> | </li> 356<li><a href="#method_detail">Method</a></li> 357</ul> 358</div> 359<a name="skip-navbar_bottom"> 360<!-- --> 361</a></div> 362<!-- ======== END OF BOTTOM NAVBAR ======= --> 363</body> 364</html> 365