1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119<!DOCTYPE html> 120<html devsite> 121<head> 122 123 124 <meta name="top_category" value="develop" /> 125 126 <meta name="subcategory" value="reference" /> 127 128 129 <meta name="book_path" value="/reference/android/support/test/_book.yaml" /> 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145<title>JSONAble.DeJSONFactory</title> 146 147 148</head> 149 150<body class="gc-documentation develop reference api apilevel-"> 151<div id="doc-api-level" class="" style="display:none"></div> 152 153 154 155 156<div id="naMessage"></div> 157 158<div id="api-info-block"> 159<div class="api-level"> 160 161 162 163 164</div> 165 166 167 168 169<div class="sum-details-links"> 170 171</div><!-- end sum-details-links --> 172</div><!-- end api-info-block --> 173 174<div class="api apilevel-" id="jd-content"> 175 176<!-- ======== START OF CLASS DATA ======== --> 177 178<h1 class="api-title">JSONAble.DeJSONFactory</h1> 179<p> 180<code class="api-signature"> 181 public 182 static 183 184 185 interface 186 JSONAble.DeJSONFactory 187</code> 188<br> 189 190 191<code class="api-signature"> 192 193 194 195</code> 196 197</p><table class="jd-inheritance-table"> 198 199 200 <tr> 201 202 <td colspan="1" class="jd-inheritance-class-cell">android.support.test.espresso.web.model.JSONAble.DeJSONFactory 203 </td> 204 </tr> 205 206 207</table> 208 209 210 211 212<br><hr> 213 214 215 <p>Allows implementors to replace a JSONObject (representated as a map) with a more applicable 216 object. 217</p> 218 219 220 221 222 223 224 225<h2 class="api-section">Summary</h2> 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253<!-- ========== METHOD SUMMARY =========== --> 254<table id="pubmethods" class="responsive methods"> 255<tr><th colspan="2"><h3>Public methods</h3></th></tr> 256 257 258 259 260 <tr class="api apilevel-" > 261 262 263 <td><code> 264 abstract 265 266 267 268 269 Object</code> 270 </td> 271 272 <td width="100%"> 273 <code> 274 <a href="/reference/android/support/test/espresso/web/model/JSONAble.DeJSONFactory.html#attemptDeJSONize(java.util.Map<java.lang.String, java.lang.Object>)">attemptDeJSONize</a>(Map<String, Object> jsonObject) 275 </code> 276 277 <p>Attempt to convert this map to another Java object. 278 279 280</p> 281 282 </td> 283 </tr> 284 285 286 287</table> 288 289 290 291 292 293 294 295 296<!-- XML Attributes --> 297 298 299<!-- Enum Values --> 300 301 302<!-- Constants --> 303 304 305<!-- Fields --> 306 307 308<!-- Public ctors --> 309 310 311 312<!-- ========= CONSTRUCTOR DETAIL ======== --> 313<!-- Protected ctors --> 314 315 316 317<!-- ========= METHOD DETAIL ======== --> 318<!-- Public methdos --> 319 320<h2 class="api-section">Public methods</h2> 321 322 323 324<A NAME="attemptDeJSONize(java.util.Map<java.lang.String, java.lang.Object>)"></A> 325 326<div class="api apilevel-"> 327 <h3 class="api-name">attemptDeJSONize</h3> 328 <div class="api-level"> 329 <div></div> 330 331 332 333 </div> 334<pre class="api-signature no-pretty-print"> 335Object attemptDeJSONize (Map<String, Object> jsonObject)</pre> 336 337 338 339 340 <p>Attempt to convert this map to another Java object.</p> 341 <table class="responsive"> 342 <tr><th colspan=2>Parameters</th></tr> 343 <tr> 344 <td><code>jsonObject</code></td> 345 <td width="100%"> 346 <code>Map</code>: 347 the json object encountered</td> 348 </tr> 349 </table> 350 <table class="responsive"> 351 <tr><th colspan=2>Returns</th></tr> 352 <tr> 353 <td><code>Object</code></td> 354 <td width="100%">null if it could not be converted, or the object. 355</td> 356 </tr> 357 </table> 358 359</div> 360 361 362 363 364 365<!-- ========= METHOD DETAIL ======== --> 366 367 368 369<!-- ========= END OF CLASS DATA ========= --> 370 371</div><!-- end jd-content --> 372 373 374 375<div class="data-reference-resources-wrapper"> 376 377 <ul data-reference-resources> 378 379 380 <li><h2>Interfaces</h2> 381 <ul> 382 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/web/model/Atom.html">Atom</a></li> 383 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/web/model/JSONAble.html">JSONAble</a></li> 384 <li class="selected api apilevel-"><a href="/reference/android/support/test/espresso/web/model/JSONAble.DeJSONFactory.html">JSONAble.DeJSONFactory</a></li> 385 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/web/model/TransformingAtom.Transformer.html">TransformingAtom.Transformer</a></li> 386 </ul> 387 </li> 388 389 <li><h2>Classes</h2> 390 <ul> 391 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/web/model/Atoms.html">Atoms</a></li> 392 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/web/model/ElementReference.html">ElementReference</a></li> 393 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/web/model/Evaluation.html">Evaluation</a></li> 394 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/web/model/ModelCodec.html">ModelCodec</a></li> 395 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/web/model/SimpleAtom.html">SimpleAtom</a></li> 396 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/web/model/TransformingAtom.html">TransformingAtom</a></li> 397 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/web/model/WindowReference.html">WindowReference</a></li> 398 </ul> 399 </li> 400 401 <li><h2>Enums</h2> 402 <ul> 403 <li class="api apilevel-"><a href="/reference/android/support/test/espresso/web/model/SimpleAtom.ElementReferencePlacement.html">SimpleAtom.ElementReferencePlacement</a></li> 404 </ul> 405 </li> 406 407 408 </ul> 409 410</div> 411 412 413 414</body> 415</html> 416