├── .gitignore ├── JsonToJava-AppEngine ├── .classpath ├── .metadata │ ├── .lock │ ├── .log │ ├── .plugins │ │ ├── com.google.appengine.eclipse.core │ │ │ ├── appengine-sdk-proxy.jar │ │ │ └── appengine-tools-api.jar │ │ ├── com.google.gwt.eclipse.core │ │ │ ├── clientBundleResources │ │ │ ├── searchIndex │ │ │ └── uiBinderReferences │ │ ├── org.eclipse.core.resources │ │ │ ├── .history │ │ │ │ ├── 1 │ │ │ │ │ └── d0c94dff563700131e2e8b8b6be2d577 │ │ │ │ ├── 6 │ │ │ │ │ └── c0464748573700131e2e8b8b6be2d577 │ │ │ │ ├── 17 │ │ │ │ │ └── 2034afbb5b3700131e2e8b8b6be2d577 │ │ │ │ ├── 19 │ │ │ │ │ └── c0dde350573700131e2e8b8b6be2d577 │ │ │ │ ├── 31 │ │ │ │ │ └── f051a678643700131e2e8b8b6be2d577 │ │ │ │ ├── 34 │ │ │ │ │ └── a0166e17573700131e2e8b8b6be2d577 │ │ │ │ ├── 37 │ │ │ │ │ └── 303c073b533700131e2e8b8b6be2d577 │ │ │ │ ├── 39 │ │ │ │ │ └── 70c6eec24b3700131ff7a9d3598f6a95 │ │ │ │ ├── 45 │ │ │ │ │ └── 406f8c51563700131e2e8b8b6be2d577 │ │ │ │ ├── 58 │ │ │ │ │ └── 60227271553700131e2e8b8b6be2d577 │ │ │ │ ├── 66 │ │ │ │ │ └── 6078b706523700131e2e8b8b6be2d577 │ │ │ │ ├── 69 │ │ │ │ │ └── 202659a15c3700131e2e8b8b6be2d577 │ │ │ │ ├── 82 │ │ │ │ │ └── 4037014d553700131e2e8b8b6be2d577 │ │ │ │ ├── 87 │ │ │ │ │ └── 50a27425573700131e2e8b8b6be2d577 │ │ │ │ ├── 92 │ │ │ │ │ ├── c0f1941a5a3700131e2e8b8b6be2d577 │ │ │ │ │ └── e00c50ecb036001317b8c81bdf484e1e │ │ │ │ ├── 1c │ │ │ │ │ └── a06897b4bc36001317b8c81bdf484e1e │ │ │ │ ├── 1e │ │ │ │ │ └── 90d7d4215d3700131e2e8b8b6be2d577 │ │ │ │ ├── 1f │ │ │ │ │ └── 7037ebe05b3700131e2e8b8b6be2d577 │ │ │ │ ├── 2e │ │ │ │ │ ├── 20afcd5e563700131e2e8b8b6be2d577 │ │ │ │ │ └── c0b33b4d4b3700131ff7a9d3598f6a95 │ │ │ │ ├── 3a │ │ │ │ │ └── 108e83615b3700131e2e8b8b6be2d577 │ │ │ │ ├── 4e │ │ │ │ │ └── f0637b26573700131e2e8b8b6be2d577 │ │ │ │ ├── 7a │ │ │ │ │ └── b0a727ad523700131e2e8b8b6be2d577 │ │ │ │ ├── 7b │ │ │ │ │ └── f09678d95a3700131e2e8b8b6be2d577 │ │ │ │ ├── 9b │ │ │ │ │ └── a0ddcadb553700131e2e8b8b6be2d577 │ │ │ │ ├── a1 │ │ │ │ │ ├── 00f3d7e05a3700131e2e8b8b6be2d577 │ │ │ │ │ └── 90ea94ce643700131e2e8b8b6be2d577 │ │ │ │ ├── a4 │ │ │ │ │ └── 40b3f6b74b3700131ff7a9d3598f6a95 │ │ │ │ ├── ae │ │ │ │ │ └── 10594d92543700131e2e8b8b6be2d577 │ │ │ │ ├── b │ │ │ │ │ └── 002628d7543700131e2e8b8b6be2d577 │ │ │ │ ├── bc │ │ │ │ │ └── 70cf8a7cb136001317b8c81bdf484e1e │ │ │ │ ├── bd │ │ │ │ │ └── 50213f865c3700131e2e8b8b6be2d577 │ │ │ │ ├── be │ │ │ │ │ └── 803d46ab523700131e2e8b8b6be2d577 │ │ │ │ ├── c5 │ │ │ │ │ └── 60587dd3523700131e2e8b8b6be2d577 │ │ │ │ ├── ca │ │ │ │ │ └── 0077e4045b3700131e2e8b8b6be2d577 │ │ │ │ ├── cf │ │ │ │ │ └── 50818a7cb136001317b8c81bdf484e1e │ │ │ │ ├── d1 │ │ │ │ │ └── 60bd26df563700131e2e8b8b6be2d577 │ │ │ │ ├── d7 │ │ │ │ │ └── e01f04fe633700131e2e8b8b6be2d577 │ │ │ │ ├── e1 │ │ │ │ │ └── 8016d97cb136001317b8c81bdf484e1e │ │ │ │ ├── e5 │ │ │ │ │ ├── 80336960523700131e2e8b8b6be2d577 │ │ │ │ │ └── a03be141533700131e2e8b8b6be2d577 │ │ │ │ ├── e6 │ │ │ │ │ └── 00e3b5d14b3700131ff7a9d3598f6a95 │ │ │ │ ├── e7 │ │ │ │ │ └── 70aff5b9ba36001317b8c81bdf484e1e │ │ │ │ ├── e9 │ │ │ │ │ └── 20e0ba7cb136001317b8c81bdf484e1e │ │ │ │ ├── eb │ │ │ │ │ └── 50ce61af543700131e2e8b8b6be2d577 │ │ │ │ ├── ed │ │ │ │ │ └── e024c3f1563700131e2e8b8b6be2d577 │ │ │ │ ├── ef │ │ │ │ │ ├── 60054bd7563700131e2e8b8b6be2d577 │ │ │ │ │ └── e094f1c74b3700131ff7a9d3598f6a95 │ │ │ │ ├── f │ │ │ │ │ └── 706c5c7cb136001317b8c81bdf484e1e │ │ │ │ ├── f1 │ │ │ │ │ └── 5059f4955a3700131e2e8b8b6be2d577 │ │ │ │ ├── f5 │ │ │ │ │ └── c0d492b4bc36001317b8c81bdf484e1e │ │ │ │ ├── f9 │ │ │ │ │ └── f0aee068553700131e2e8b8b6be2d577 │ │ │ │ └── fa │ │ │ │ │ └── 709a31545d3700131e2e8b8b6be2d577 │ │ │ ├── .projects │ │ │ │ ├── HelloServers │ │ │ │ │ ├── .indexes │ │ │ │ │ │ └── af │ │ │ │ │ │ │ └── history.index │ │ │ │ │ ├── .location │ │ │ │ │ ├── .markers │ │ │ │ │ └── org.eclipse.jdt.core │ │ │ │ │ │ └── state.dat │ │ │ │ ├── JsonToJava │ │ │ │ │ ├── .indexes │ │ │ │ │ │ ├── af │ │ │ │ │ │ │ └── history.index │ │ │ │ │ │ ├── e4 │ │ │ │ │ │ │ └── 81 │ │ │ │ │ │ │ │ ├── 5 │ │ │ │ │ │ │ │ └── history.index │ │ │ │ │ │ │ │ └── 74 │ │ │ │ │ │ │ │ └── 5 │ │ │ │ │ │ │ │ └── history.index │ │ │ │ │ │ ├── e8 │ │ │ │ │ │ │ ├── a8 │ │ │ │ │ │ │ │ ├── 85 │ │ │ │ │ │ │ │ │ └── history.index │ │ │ │ │ │ │ │ └── history.index │ │ │ │ │ │ │ └── history.index │ │ │ │ │ │ └── properties.index │ │ │ │ │ ├── .markers │ │ │ │ │ └── org.eclipse.jdt.core │ │ │ │ │ │ └── state.dat │ │ │ │ ├── MediaStore │ │ │ │ │ ├── .location │ │ │ │ │ ├── .markers │ │ │ │ │ └── org.eclipse.jdt.core │ │ │ │ │ │ └── state.dat │ │ │ │ ├── TaskEngine │ │ │ │ │ ├── .location │ │ │ │ │ ├── .markers │ │ │ │ │ └── org.eclipse.jdt.core │ │ │ │ │ │ └── state.dat │ │ │ │ └── TaskQueueExamples │ │ │ │ │ ├── .location │ │ │ │ │ ├── .markers │ │ │ │ │ └── org.eclipse.jdt.core │ │ │ │ │ └── state.dat │ │ │ ├── .root │ │ │ │ ├── .indexes │ │ │ │ │ ├── history.version │ │ │ │ │ ├── properties.index │ │ │ │ │ └── properties.version │ │ │ │ └── 6.tree │ │ │ └── .safetable │ │ │ │ └── org.eclipse.core.resources │ │ ├── org.eclipse.core.runtime │ │ │ └── .settings │ │ │ │ ├── com.google.appengine.eclipse.core.prefs │ │ │ │ ├── com.google.gdt.eclipse.suite.prefs │ │ │ │ ├── org.eclipse.core.resources.prefs │ │ │ │ ├── org.eclipse.debug.ui.prefs │ │ │ │ ├── org.eclipse.jdt.core.prefs │ │ │ │ ├── org.eclipse.jdt.launching.prefs │ │ │ │ ├── org.eclipse.jdt.ui.prefs │ │ │ │ ├── org.eclipse.pde.api.tools.prefs │ │ │ │ ├── org.eclipse.team.ui.prefs │ │ │ │ ├── org.eclipse.ui.browser.prefs │ │ │ │ ├── org.eclipse.ui.editors.prefs │ │ │ │ ├── org.eclipse.ui.ide.prefs │ │ │ │ ├── org.eclipse.ui.prefs │ │ │ │ ├── org.eclipse.wst.jsdt.ui.prefs │ │ │ │ ├── org.eclipse.wst.jsdt.web.core.prefs │ │ │ │ ├── org.eclipse.wst.server.core.prefs │ │ │ │ ├── org.eclipse.wst.sse.ui.prefs │ │ │ │ └── org.eclipse.wst.xml.ui.prefs │ │ ├── org.eclipse.debug.core │ │ │ └── .launches │ │ │ │ └── JsonToJava.launch │ │ ├── org.eclipse.debug.ui │ │ │ └── launchConfigurationHistory.xml │ │ ├── org.eclipse.e4.workbench │ │ │ └── workbench.xmi │ │ ├── org.eclipse.equinox.p2.ui │ │ │ └── dialog_settings.xml │ │ ├── org.eclipse.jdt.core │ │ │ ├── 1060078548.index │ │ │ ├── 107769345.index │ │ │ ├── 1094285800.index │ │ │ ├── 112915137.index │ │ │ ├── 1213662472.index │ │ │ ├── 1264444999.index │ │ │ ├── 1271342938.index │ │ │ ├── 1291603813.index │ │ │ ├── 1317241607.index │ │ │ ├── 1384487945.index │ │ │ ├── 1490158934.index │ │ │ ├── 1509721532.index │ │ │ ├── 156905802.index │ │ │ ├── 162080741.index │ │ │ ├── 1628143439.index │ │ │ ├── 1667244414.index │ │ │ ├── 1819685514.index │ │ │ ├── 1833648217.index │ │ │ ├── 1890339164.index │ │ │ ├── 1925216736.index │ │ │ ├── 2050025958.index │ │ │ ├── 2108030059.index │ │ │ ├── 2220222405.index │ │ │ ├── 2328043753.index │ │ │ ├── 2399042292.index │ │ │ ├── 2449339587.index │ │ │ ├── 2472421909.index │ │ │ ├── 2545238116.index │ │ │ ├── 2651200422.index │ │ │ ├── 2716637632.index │ │ │ ├── 2740737327.index │ │ │ ├── 2768548864.index │ │ │ ├── 2796365065.index │ │ │ ├── 2890659831.index │ │ │ ├── 294957792.index │ │ │ ├── 2982917733.index │ │ │ ├── 302193953.index │ │ │ ├── 3039720509.index │ │ │ ├── 3119494488.index │ │ │ ├── 3261838026.index │ │ │ ├── 3266567714.index │ │ │ ├── 3302703152.index │ │ │ ├── 3321539481.index │ │ │ ├── 3394953001.index │ │ │ ├── 3402582055.index │ │ │ ├── 342632969.index │ │ │ ├── 3460468224.index │ │ │ ├── 3513380958.index │ │ │ ├── 3516038316.index │ │ │ ├── 3542844787.index │ │ │ ├── 3659915223.index │ │ │ ├── 3687793451.index │ │ │ ├── 3712507179.index │ │ │ ├── 3852597815.index │ │ │ ├── 3918140538.index │ │ │ ├── 4121012013.index │ │ │ ├── 4238209716.index │ │ │ ├── 515287155.index │ │ │ ├── 633660734.index │ │ │ ├── 791674651.index │ │ │ ├── 81648094.index │ │ │ ├── 840961333.index │ │ │ ├── 925495247.index │ │ │ ├── externalLibsTimeStamps │ │ │ ├── indexNamesMap.txt │ │ │ ├── invalidArchivesCache │ │ │ ├── javaLikeNames.txt │ │ │ ├── nonChainingJarsCache │ │ │ ├── participantsIndexNames.txt │ │ │ ├── savedIndexNames.txt │ │ │ └── variablesAndContainers.dat │ │ ├── org.eclipse.jdt.debug.ui │ │ │ └── dialog_settings.xml │ │ ├── org.eclipse.jdt.launching │ │ │ ├── .install.xml │ │ │ └── libraryInfos.xml │ │ ├── org.eclipse.jdt.ui │ │ │ ├── OpenTypeHistory.xml │ │ │ ├── QualifiedTypeNameHistory.xml │ │ │ └── dialog_settings.xml │ │ ├── org.eclipse.jst.jsp.core │ │ │ ├── jspsearch │ │ │ │ ├── 1359840284.index │ │ │ │ └── 2889311136.index │ │ │ └── taglibindex │ │ │ │ └── 2651200422.dat │ │ ├── org.eclipse.ltk.core.refactoring │ │ │ └── .refactorings │ │ │ │ └── JsonToJava │ │ │ │ └── 2013 │ │ │ │ └── 10 │ │ │ │ └── 42 │ │ │ │ ├── refactorings.history │ │ │ │ └── refactorings.index │ │ ├── org.eclipse.ltk.ui.refactoring │ │ │ └── dialog_settings.xml │ │ ├── org.eclipse.pde.core │ │ │ └── .cache │ │ │ │ └── clean-cache.properties │ │ ├── org.eclipse.ui.ide │ │ │ └── dialog_settings.xml │ │ ├── org.eclipse.ui.intro │ │ │ └── dialog_settings.xml │ │ ├── org.eclipse.ui.workbench.texteditor │ │ │ └── dialog_settings.xml │ │ ├── org.eclipse.ui.workbench │ │ │ ├── dialog_settings.xml │ │ │ └── workingsets.xml │ │ ├── org.eclipse.wst.internet.cache │ │ │ ├── -1054637811.cache │ │ │ ├── -1790283329.cache │ │ │ ├── 1524094654.cache │ │ │ ├── 1640325103.cache │ │ │ ├── 1682224215.cache │ │ │ ├── 345732963.cache │ │ │ ├── 523625470.cache │ │ │ └── cache.xml │ │ ├── org.eclipse.wst.jsdt.core │ │ │ ├── externalLibsTimeStamps │ │ │ ├── libraries │ │ │ │ ├── baseBrowserLibrary.js │ │ │ │ ├── browserWindow.js │ │ │ │ ├── dom5.js │ │ │ │ ├── system.js │ │ │ │ └── xhr.js │ │ │ └── variablesAndContainers.dat │ │ ├── org.eclipse.wst.jsdt.ui │ │ │ ├── OpenTypeHistory.xml │ │ │ └── QualifiedTypeNameHistory.xml │ │ ├── org.eclipse.wst.sse.core │ │ │ └── task-tags.properties │ │ ├── org.eclipse.wst.sse.ui │ │ │ └── dialog_settings.xml │ │ └── org.eclipse.wst.xml.core │ │ │ ├── default_catalog.xml │ │ │ └── system_catalog.xml │ └── version.ini ├── .project ├── .settings │ ├── com.google.appengine.eclipse.core.prefs │ ├── com.google.gdt.eclipse.core.prefs │ ├── org.eclipse.jdt.core.prefs │ └── org.eclipse.wst.common.project.facet.core.xml ├── src │ ├── META-INF │ │ ├── jdoconfig.xml │ │ └── persistence.xml │ ├── com │ │ └── jonfhancock │ │ │ └── jsontojava │ │ │ └── JsonToJavaServlet.java │ └── log4j.properties └── war │ ├── WEB-INF │ ├── appengine-web.xml │ ├── classes │ │ ├── META-INF │ │ │ ├── jdoconfig.xml │ │ │ └── persistence.xml │ │ └── log4j.properties │ ├── lib │ │ ├── appengine-api-1.0-sdk-1.8.5.jar │ │ ├── appengine-api-labs.jar │ │ ├── appengine-endpoints.jar │ │ ├── appengine-jsr107cache-1.8.5.jar │ │ ├── asm-4.0.jar │ │ ├── commons-io-2.4.jar │ │ ├── commons-lang3-3.1.jar │ │ ├── datanucleus-api-jdo-3.1.3.jar │ │ ├── datanucleus-api-jpa-3.1.3.jar │ │ ├── datanucleus-appengine-2.1.2.jar │ │ ├── datanucleus-core-3.1.3.jar │ │ ├── geronimo-jpa_2.0_spec-1.0.jar │ │ ├── jdo-api-3.0.1.jar │ │ ├── jsontojava-lib.jar │ │ ├── jsr107cache-1.1.jar │ │ ├── jta-1.1.jar │ │ └── modeshape-jpa-ddl-gen-2.1.0.Final-jar-with-dependencies.jar │ ├── logging.properties │ └── web.xml │ ├── assets │ ├── css │ │ ├── bootstrap-theme.css │ │ ├── bootstrap-theme.min.css │ │ ├── bootstrap.css │ │ └── bootstrap.min.css │ ├── fonts │ │ ├── glyphicons-halflings-regular.eot │ │ ├── glyphicons-halflings-regular.svg │ │ ├── glyphicons-halflings-regular.ttf │ │ └── glyphicons-halflings-regular.woff │ └── js │ │ ├── bootstrap.js │ │ ├── bootstrap.min.js │ │ └── jquery.js │ ├── favicon.ico │ └── index.html ├── JsonToJava-CLI ├── .classpath ├── .project ├── .settings │ └── org.eclipse.ltk.core.refactoring.prefs ├── build.xml ├── libs │ └── commons-cli-1.2.jar └── src │ └── com │ └── jsontojava │ └── cli │ └── Main.java ├── JsonToJava-Lib ├── .classpath ├── .gitignore ├── .project ├── .settings │ └── org.eclipse.jdt.core.prefs ├── OutputJar.jardesc ├── libs │ ├── commons-io-2.4.jar │ ├── commons-lang3-3.1.jar │ └── modeshape-jpa-ddl-gen-2.1.0.Final-jar-with-dependencies.jar └── src │ ├── com │ └── jsontojava │ │ ├── JsonToJava.java │ │ ├── Main.java │ │ ├── Member.java │ │ ├── NewType.java │ │ ├── OutputOption.java │ │ └── TypeUtils.java │ └── org │ └── json │ ├── CDL.java │ ├── Cookie.java │ ├── CookieList.java │ ├── HTTP.java │ ├── HTTPTokener.java │ ├── JSONArray.java │ ├── JSONException.java │ ├── JSONML.java │ ├── JSONObject.java │ ├── JSONString.java │ ├── JSONStringer.java │ ├── JSONTokener.java │ ├── JSONWriter.java │ ├── Kim.java │ ├── Property.java │ ├── XML.java │ ├── XMLTokener.java │ └── zip │ ├── BitInputStream.java │ ├── BitOutputStream.java │ ├── BitReader.java │ ├── BitWriter.java │ ├── Compressor.java │ ├── Decompressor.java │ ├── Huff.java │ ├── JSONzip.java │ ├── Keep.java │ ├── MapKeep.java │ ├── None.java │ ├── PostMortem.java │ ├── README │ └── TrieKeep.java ├── JsonToJava.jar ├── LICENSE └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | # built application files 2 | *.apk 3 | *.ap_ 4 | 5 | # files for the dex VM 6 | *.dex 7 | 8 | # Java class files 9 | *.class 10 | 11 | # generated files 12 | bin/ 13 | gen/ 14 | 15 | # Local configuration file (sdk path, etc) 16 | local.properties 17 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.lock -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/com.google.appengine.eclipse.core/appengine-sdk-proxy.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/com.google.appengine.eclipse.core/appengine-sdk-proxy.jar -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/com.google.appengine.eclipse.core/appengine-tools-api.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/com.google.appengine.eclipse.core/appengine-tools-api.jar -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/com.google.gwt.eclipse.core/clientBundleResources: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/com.google.gwt.eclipse.core/searchIndex: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/com.google.gwt.eclipse.core/uiBinderReferences: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.history/19/c0dde350573700131e2e8b8b6be2d577: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | JSON To Java 7 | 8 | 9 | 10 | 11 | 12 | 13 | 45 | 46 | 47 | 48 | 51 | 52 | 53 | 55 | 57 | 59 | 61 | 62 | 63 | 64 | 65 | 66 |
67 | 68 | 97 | 98 |
99 | 100 | 101 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.history/1c/a06897b4bc36001317b8c81bdf484e1e: -------------------------------------------------------------------------------- 1 | package com.jonfhancock.jsontojava; 2 | 3 | import java.io.IOException; 4 | 5 | import javax.servlet.http.*; 6 | 7 | import com.jsontojava.JsonToJava; 8 | 9 | @SuppressWarnings("serial") 10 | public class JsonToJavaServlet extends HttpServlet { 11 | public void doGet(HttpServletRequest req, HttpServletResponse resp) 12 | throws IOException { 13 | 14 | 15 | JsonToJava jsonToJava = new JsonToJava(); 16 | 17 | jsonToJava.setUrl(req.getParameter("url")); 18 | jsonToJava.setPackage(req.getParameter("package")); 19 | jsonToJava.setBaseType(req.getParameter("class")); 20 | 21 | 22 | jsonToJava.fetchJson(); 23 | jsonToJava.outputZipFile(); 24 | resp.setContentType("text/plain"); 25 | resp.getWriter().println("Hello, world"); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.history/2e/20afcd5e563700131e2e8b8b6be2d577: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Sign in · Twitter Bootstrap 7 | 8 | 9 | 10 | 11 | 12 | 13 | 46 | 47 | 48 | 49 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 |
64 | 65 | 75 | 76 |
77 | 78 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.history/37/303c073b533700131e2e8b8b6be2d577: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.history/37/303c073b533700131e2e8b8b6be2d577 -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.history/39/70c6eec24b3700131ff7a9d3598f6a95: -------------------------------------------------------------------------------- 1 | package com.jsontojava; 2 | 3 | import java.io.IOException; 4 | 5 | import org.apache.commons.cli.BasicParser; 6 | import org.apache.commons.cli.CommandLine; 7 | import org.apache.commons.cli.CommandLineParser; 8 | import org.apache.commons.cli.Option; 9 | import org.apache.commons.cli.OptionBuilder; 10 | import org.apache.commons.cli.Options; 11 | import org.apache.commons.cli.ParseException; 12 | 13 | public class Main { 14 | private static final String OPTION_PACKAGE = "package"; 15 | private static final String OPTION_URL = "url"; 16 | private static final String OPTION_ROOT = "class"; 17 | private static final String OPTION_GSON = "g"; 18 | private static final String OPTION_PARCELABLE = "p"; 19 | 20 | 21 | /** 22 | * @param args 23 | * @throws IOException 24 | * @throws ParseException 25 | */ 26 | public static void main(String[] args) throws IOException, ParseException { 27 | Options options = createOptions(); 28 | 29 | CommandLineParser parser = new BasicParser(); 30 | CommandLine cmd = parser.parse( options, args); 31 | JsonToJava jsonToJava = new JsonToJava(); 32 | 33 | jsonToJava.setUrl(cmd.getOptionValue(OPTION_URL)); 34 | jsonToJava.setPackage(cmd.getOptionValue(OPTION_PACKAGE)); 35 | jsonToJava.setBaseType(cmd.getOptionValue(OPTION_ROOT)); 36 | 37 | jsonToJava.fetchJson(); 38 | jsonToJava.outputZipFile(); 39 | 40 | 41 | } 42 | 43 | 44 | 45 | private static Options createOptions(){ 46 | Options options = new Options(); 47 | options.addOption(OPTION_PARCELABLE, false, "Enabled implementation of Parcelable for all classes generated"); 48 | options.addOption(OPTION_GSON,false,"Enables Gson annotations"); 49 | Option rootClass = OptionBuilder.hasArg().isRequired().withDescription("The name of the root class of the feed you are parsing").create(OPTION_ROOT); 50 | options.addOption(rootClass); 51 | Option url = OptionBuilder.hasArg().isRequired().withDescription("The url of the json feed you want to parse").create(OPTION_URL); 52 | options.addOption(url); 53 | Option pack = OptionBuilder.hasArg().isRequired().withDescription("The package name for the generated classes").create(OPTION_PACKAGE); 54 | options.addOption(pack); 55 | 56 | return options; 57 | 58 | 59 | } 60 | 61 | 62 | 63 | 64 | } 65 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.history/45/406f8c51563700131e2e8b8b6be2d577: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Sign in · Twitter Bootstrap 7 | 8 | 9 | 10 | 11 | 12 | 13 | 46 | 47 | 48 | 49 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 |
64 | 65 | 74 | 75 |
76 | 77 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.history/58/60227271553700131e2e8b8b6be2d577: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Sign in · Twitter Bootstrap 7 | 8 | 9 | 10 | 11 | 12 | 13 | 46 | 47 | 48 | 49 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 |
64 | 65 | 74 | 75 |
76 | 77 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.history/6/c0464748573700131e2e8b8b6be2d577: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | JSON To Java 7 | 8 | 9 | 10 | 11 | 12 | 13 | 45 | 46 | 47 | 48 | 51 | 52 | 53 | 55 | 57 | 59 | 61 | 62 | 63 | 64 | 65 | 66 |
67 | 68 | 98 | 99 |
100 | 101 | 102 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.history/7a/b0a727ad523700131e2e8b8b6be2d577: -------------------------------------------------------------------------------- 1 | package com.jonfhancock.jsontojava; 2 | 3 | import java.io.ByteArrayOutputStream; 4 | import java.io.IOException; 5 | 6 | import javax.servlet.http.HttpServlet; 7 | import javax.servlet.http.HttpServletRequest; 8 | import javax.servlet.http.HttpServletResponse; 9 | 10 | import com.jsontojava.JsonToJava; 11 | 12 | @SuppressWarnings("serial") 13 | public class JsonToJavaServlet extends HttpServlet { 14 | public void doGet(HttpServletRequest req, HttpServletResponse resp) 15 | throws IOException { 16 | 17 | JsonToJava jsonToJava = new JsonToJava(); 18 | boolean parcel = req.getParameter("p")!= null && req.getParameter("p").equalsIgnoreCase("true"); 19 | boolean gson = req.getParameter("g")!= null && req.getParameter("g").equalsIgnoreCase("true"); 20 | jsonToJava.setUrl(req.getParameter("url")); 21 | jsonToJava.setPackage(req.getParameter("package")); 22 | jsonToJava.setBaseType(req.getParameter("class")); 23 | jsonToJava.useGsonAnnotations(gson); 24 | jsonToJava.useParcelable(parcel); 25 | 26 | jsonToJava.fetchJson(); 27 | ByteArrayOutputStream out = (ByteArrayOutputStream) jsonToJava 28 | .outputZipFile(new ByteArrayOutputStream()); 29 | byte[] data = out.toByteArray(); 30 | resp.setContentType("application/zip"); 31 | resp.setContentLength(data.length); 32 | resp.setHeader("Content-Disposition", 33 | "inline; filename=" + jsonToJava.getPackage() + ".zip"); 34 | resp.getOutputStream().write(data); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.history/82/4037014d553700131e2e8b8b6be2d577: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Sign in · Twitter Bootstrap 7 | 8 | 9 | 10 | 11 | 12 | 13 | 46 | 47 | 48 | 49 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 |
64 | 65 | 74 | 75 |
76 | 77 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.history/92/c0f1941a5a3700131e2e8b8b6be2d577: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | JSON To Java 7 | 8 | 9 | 10 | 11 | 12 | 13 | 45 | 46 | 47 | 48 | 51 | 52 | 53 | 55 | 57 | 59 | 61 | 62 | 63 | 64 | 65 | 66 |
67 | 68 | 97 | 98 |
99 | 100 | 101 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.history/92/e00c50ecb036001317b8c81bdf484e1e: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | googleCloudSqlEnabled=false 3 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.history/9b/a0ddcadb553700131e2e8b8b6be2d577: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Sign in · Twitter Bootstrap 7 | 8 | 9 | 10 | 11 | 12 | 13 | 46 | 47 | 48 | 49 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 |
64 | 65 | 74 | 75 |
76 | 77 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.history/a4/40b3f6b74b3700131ff7a9d3598f6a95: -------------------------------------------------------------------------------- 1 | package com.jonfhancock.jsontojava; 2 | 3 | import java.io.IOException; 4 | 5 | import javax.servlet.http.*; 6 | 7 | import com.jsontojava.JsonToJava; 8 | 9 | @SuppressWarnings("serial") 10 | public class JsonToJavaServlet extends HttpServlet { 11 | public void doGet(HttpServletRequest req, HttpServletResponse resp) 12 | throws IOException { 13 | 14 | 15 | JsonToJava jsonToJava = new JsonToJava(); 16 | 17 | jsonToJava.setUrl(req.getParameter("url")); 18 | jsonToJava.setPackage(req.getParameter("package")); 19 | jsonToJava.setBaseType(req.getParameter("class")); 20 | 21 | 22 | jsonToJava.fetchJson(); 23 | jsonToJava.outputZipFile(); 24 | 25 | resp.setContentType("text/plain"); 26 | resp.getWriter().println("Hello, world"); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.history/ae/10594d92543700131e2e8b8b6be2d577: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | Hello App Engine 13 | 14 | 15 | 16 |

Hello App Engine!

17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 |
Available Servlets:
JsonToJava
26 | 27 | 28 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.history/b/002628d7543700131e2e8b8b6be2d577: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Sign in · Twitter Bootstrap 7 | 8 | 9 | 10 | 11 | 12 | 13 | 46 | 47 | 48 | 49 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 |
64 | 65 | 74 | 75 |
76 | 77 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.history/bc/70cf8a7cb136001317b8c81bdf484e1e: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | filesCopiedToWebInfLib=appengine-api-1.0-sdk-1.8.5.jar|appengine-api-labs.jar|appengine-endpoints.jar|appengine-jsr107cache-1.8.5.jar|datanucleus-appengine-1.0.10.final.jar|datanucleus-core-1.1.5.jar|datanucleus-jpa-1.1.5.jar|geronimo-jpa_3.0_spec-1.1.1.jar|geronimo-jta_1.1_spec-1.1.1.jar|jdo2-api-2.3-eb.jar|jsr107cache-1.1.jar 3 | gaeHrdEnabled=true 4 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.history/be/803d46ab523700131e2e8b8b6be2d577: -------------------------------------------------------------------------------- 1 | package com.jonfhancock.jsontojava; 2 | 3 | import java.io.ByteArrayOutputStream; 4 | import java.io.IOException; 5 | 6 | import javax.servlet.http.HttpServlet; 7 | import javax.servlet.http.HttpServletRequest; 8 | import javax.servlet.http.HttpServletResponse; 9 | 10 | import com.jsontojava.JsonToJava; 11 | 12 | @SuppressWarnings("serial") 13 | public class JsonToJavaServlet extends HttpServlet { 14 | public void doGet(HttpServletRequest req, HttpServletResponse resp) 15 | throws IOException { 16 | 17 | JsonToJava jsonToJava = new JsonToJava(); 18 | boolean parcel = req.getParameter("p")!= null; 19 | boolean gson = req.getParameter("g")!= null; 20 | jsonToJava.setUrl(req.getParameter("url")); 21 | jsonToJava.setPackage(req.getParameter("package")); 22 | jsonToJava.setBaseType(req.getParameter("class")); 23 | jsonToJava.useGsonAnnotations(gson); 24 | jsonToJava.useParcelable(parcel); 25 | 26 | jsonToJava.fetchJson(); 27 | ByteArrayOutputStream out = (ByteArrayOutputStream) jsonToJava 28 | .outputZipFile(new ByteArrayOutputStream()); 29 | byte[] data = out.toByteArray(); 30 | resp.setContentType("application/zip"); 31 | resp.setContentLength(data.length); 32 | resp.setHeader("Content-Disposition", 33 | "inline; filename=" + jsonToJava.getPackage() + ".zip"); 34 | resp.getOutputStream().write(data); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.history/c5/60587dd3523700131e2e8b8b6be2d577: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | filesCopiedToWebInfLib=appengine-api-1.0-sdk-1.8.5.jar|appengine-api-labs.jar|appengine-endpoints.jar|appengine-jsr107cache-1.8.5.jar|asm-4.0.jar|datanucleus-api-jdo-3.1.3.jar|datanucleus-api-jpa-3.1.3.jar|datanucleus-appengine-2.1.2.jar|datanucleus-core-3.1.3.jar|geronimo-jpa_2.0_spec-1.0.jar|jdo-api-3.0.1.jar|jsr107cache-1.1.jar|jta-1.1.jar 3 | gaeDatanucleusVersion=v2 4 | gaeHrdEnabled=true 5 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.history/cf/50818a7cb136001317b8c81bdf484e1e: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | filesCopiedToWebInfLib=appengine-api-1.0-sdk-1.8.5.jar|appengine-api-labs.jar|appengine-endpoints.jar|appengine-jsr107cache-1.8.5.jar|datanucleus-appengine-1.0.10.final.jar|datanucleus-core-1.1.5.jar|datanucleus-jpa-1.1.5.jar|geronimo-jpa_3.0_spec-1.1.1.jar|geronimo-jta_1.1_spec-1.1.1.jar|jdo2-api-2.3-eb.jar|jsr107cache-1.1.jar 3 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.history/e1/8016d97cb136001317b8c81bdf484e1e: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 1 5 | 6 | 9 | true 10 | 11 | 12 | 13 | 14 | 15 | 16 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.history/e5/80336960523700131e2e8b8b6be2d577: -------------------------------------------------------------------------------- 1 | package com.jonfhancock.jsontojava; 2 | 3 | import java.io.ByteArrayOutputStream; 4 | import java.io.IOException; 5 | 6 | import javax.servlet.http.HttpServlet; 7 | import javax.servlet.http.HttpServletRequest; 8 | import javax.servlet.http.HttpServletResponse; 9 | 10 | import com.jsontojava.JsonToJava; 11 | 12 | @SuppressWarnings("serial") 13 | public class JsonToJavaServlet extends HttpServlet { 14 | public void doGet(HttpServletRequest req, HttpServletResponse resp) 15 | throws IOException { 16 | 17 | JsonToJava jsonToJava = new JsonToJava(); 18 | 19 | jsonToJava.setUrl(req.getParameter("url")); 20 | jsonToJava.setPackage(req.getParameter("package")); 21 | jsonToJava.setBaseType(req.getParameter("class")); 22 | 23 | jsonToJava.fetchJson(); 24 | ByteArrayOutputStream out = (ByteArrayOutputStream) jsonToJava 25 | .outputZipFile(new ByteArrayOutputStream()); 26 | byte[] data = out.toByteArray(); 27 | resp.setContentType("application/zip"); 28 | resp.setContentLength(data.length); 29 | resp.setHeader("Content-Disposition", 30 | "inline; filename=" + jsonToJava.getPackage() + ".zip"); 31 | resp.getOutputStream().write(data); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.history/e6/00e3b5d14b3700131ff7a9d3598f6a95: -------------------------------------------------------------------------------- 1 | package com.jsontojava; 2 | 3 | import java.io.IOException; 4 | 5 | import org.apache.commons.cli.BasicParser; 6 | import org.apache.commons.cli.CommandLine; 7 | import org.apache.commons.cli.CommandLineParser; 8 | import org.apache.commons.cli.Option; 9 | import org.apache.commons.cli.OptionBuilder; 10 | import org.apache.commons.cli.Options; 11 | import org.apache.commons.cli.ParseException; 12 | 13 | public class Main { 14 | private static final String OPTION_PACKAGE = "package"; 15 | private static final String OPTION_URL = "url"; 16 | private static final String OPTION_ROOT = "class"; 17 | private static final String OPTION_GSON = "g"; 18 | private static final String OPTION_PARCELABLE = "p"; 19 | 20 | 21 | /** 22 | * @param args 23 | * @throws IOException 24 | */ 25 | public static void main(String[] args) throws IOException { 26 | // Options options = createOptions(); 27 | // 28 | // CommandLineParser parser = new BasicParser(); 29 | // CommandLine cmd = parser.parse( options, args); 30 | // JsonToJava jsonToJava = new JsonToJava(); 31 | // 32 | // jsonToJava.setUrl(cmd.getOptionValue(OPTION_URL)); 33 | // jsonToJava.setPackage(cmd.getOptionValue(OPTION_PACKAGE)); 34 | // jsonToJava.setBaseType(cmd.getOptionValue(OPTION_ROOT)); 35 | // 36 | // jsonToJava.fetchJson(); 37 | // jsonToJava.outputZipFile(); 38 | // 39 | // 40 | // } 41 | // 42 | // 43 | // 44 | // private static Options createOptions(){ 45 | // Options options = new Options(); 46 | // options.addOption(OPTION_PARCELABLE, false, "Enabled implementation of Parcelable for all classes generated"); 47 | // options.addOption(OPTION_GSON,false,"Enables Gson annotations"); 48 | // Option rootClass = OptionBuilder.hasArg().isRequired().withDescription("The name of the root class of the feed you are parsing").create(OPTION_ROOT); 49 | // options.addOption(rootClass); 50 | // Option url = OptionBuilder.hasArg().isRequired().withDescription("The url of the json feed you want to parse").create(OPTION_URL); 51 | // options.addOption(url); 52 | // Option pack = OptionBuilder.hasArg().isRequired().withDescription("The package name for the generated classes").create(OPTION_PACKAGE); 53 | // options.addOption(pack); 54 | // 55 | // return options; 56 | // 57 | // 58 | // } 59 | // 60 | // 61 | 62 | 63 | } 64 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.history/e7/70aff5b9ba36001317b8c81bdf484e1e: -------------------------------------------------------------------------------- 1 | package com.jonfhancock.jsontojava; 2 | 3 | import java.io.IOException; 4 | import javax.servlet.http.*; 5 | 6 | @SuppressWarnings("serial") 7 | public class JsonToJavaServlet extends HttpServlet { 8 | public void doGet(HttpServletRequest req, HttpServletResponse resp) 9 | throws IOException { 10 | resp.setContentType("text/plain"); 11 | resp.getWriter().println("Hello, world"); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.history/e9/20e0ba7cb136001317b8c81bdf484e1e: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | filesCopiedToWebInfLib=appengine-api-1.0-sdk-1.8.5.jar|appengine-api-labs.jar|appengine-endpoints.jar|appengine-jsr107cache-1.8.5.jar|datanucleus-appengine-1.0.10.final.jar|datanucleus-core-1.1.5.jar|datanucleus-jpa-1.1.5.jar|geronimo-jpa_3.0_spec-1.1.1.jar|geronimo-jta_1.1_spec-1.1.1.jar|jdo2-api-2.3-eb.jar|jsr107cache-1.1.jar 3 | gaeDatanucleusVersion=v2 4 | gaeHrdEnabled=true 5 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.history/eb/50ce61af543700131e2e8b8b6be2d577: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Bootstrap 101 Template 5 | 6 | 7 | 8 | 9 | 10 |

Hello, world!

11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.history/ef/60054bd7563700131e2e8b8b6be2d577: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Sign in · Twitter Bootstrap 7 | 8 | 9 | 10 | 11 | 12 | 13 | 45 | 46 | 47 | 48 | 51 | 52 | 53 | 55 | 57 | 59 | 61 | 62 | 63 | 64 | 65 | 66 |
67 | 68 | 82 | 83 |
84 | 85 | 86 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.history/ef/e094f1c74b3700131ff7a9d3598f6a95: -------------------------------------------------------------------------------- 1 | package com.jsontojava; 2 | 3 | import java.io.IOException; 4 | 5 | import org.apache.commons.cli.BasicParser; 6 | import org.apache.commons.cli.CommandLine; 7 | import org.apache.commons.cli.CommandLineParser; 8 | import org.apache.commons.cli.Option; 9 | import org.apache.commons.cli.OptionBuilder; 10 | import org.apache.commons.cli.Options; 11 | import org.apache.commons.cli.ParseException; 12 | 13 | public class Main { 14 | private static final String OPTION_PACKAGE = "package"; 15 | private static final String OPTION_URL = "url"; 16 | private static final String OPTION_ROOT = "class"; 17 | private static final String OPTION_GSON = "g"; 18 | private static final String OPTION_PARCELABLE = "p"; 19 | 20 | 21 | /** 22 | * @param args 23 | * @throws IOException 24 | * @throws ParseException 25 | */ 26 | public static void main(String[] args) throws IOException { 27 | // Options options = createOptions(); 28 | // 29 | // CommandLineParser parser = new BasicParser(); 30 | // CommandLine cmd = parser.parse( options, args); 31 | // JsonToJava jsonToJava = new JsonToJava(); 32 | // 33 | // jsonToJava.setUrl(cmd.getOptionValue(OPTION_URL)); 34 | // jsonToJava.setPackage(cmd.getOptionValue(OPTION_PACKAGE)); 35 | // jsonToJava.setBaseType(cmd.getOptionValue(OPTION_ROOT)); 36 | // 37 | // jsonToJava.fetchJson(); 38 | // jsonToJava.outputZipFile(); 39 | // 40 | // 41 | // } 42 | // 43 | // 44 | // 45 | // private static Options createOptions(){ 46 | // Options options = new Options(); 47 | // options.addOption(OPTION_PARCELABLE, false, "Enabled implementation of Parcelable for all classes generated"); 48 | // options.addOption(OPTION_GSON,false,"Enables Gson annotations"); 49 | // Option rootClass = OptionBuilder.hasArg().isRequired().withDescription("The name of the root class of the feed you are parsing").create(OPTION_ROOT); 50 | // options.addOption(rootClass); 51 | // Option url = OptionBuilder.hasArg().isRequired().withDescription("The url of the json feed you want to parse").create(OPTION_URL); 52 | // options.addOption(url); 53 | // Option pack = OptionBuilder.hasArg().isRequired().withDescription("The package name for the generated classes").create(OPTION_PACKAGE); 54 | // options.addOption(pack); 55 | // 56 | // return options; 57 | // 58 | // 59 | // } 60 | // 61 | // 62 | 63 | 64 | } 65 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.history/f/706c5c7cb136001317b8c81bdf484e1e: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | warSrcDir=war 3 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.history/f1/5059f4955a3700131e2e8b8b6be2d577: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | JSON To Java 7 | 8 | 9 | 10 | 11 | 12 | 13 | 45 | 46 | 47 | 48 | 51 | 52 | 53 | 55 | 57 | 59 | 61 | 62 | 63 | 64 | 65 | 66 |
67 | 68 | 97 | 98 |
99 | 100 | 101 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 122 | 123 | 124 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.history/f9/f0aee068553700131e2e8b8b6be2d577: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Sign in · Twitter Bootstrap 7 | 8 | 9 | 10 | 11 | 12 | 13 | 46 | 47 | 48 | 49 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 |
64 | 65 | 74 | 75 |
76 | 77 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.history/fa/709a31545d3700131e2e8b8b6be2d577: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | JSON To Java 7 | 8 | 9 | 10 | 11 | 12 | 13 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 |
53 | 54 | 83 | 84 |
85 | 86 | 87 | 89 | 90 | 91 | 92 | 109 | 110 | 111 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.projects/HelloServers/.indexes/af/history.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.projects/HelloServers/.indexes/af/history.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.projects/HelloServers/.location: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.projects/HelloServers/.location -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.projects/HelloServers/.markers: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.projects/HelloServers/.markers -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.projects/HelloServers/org.eclipse.jdt.core/state.dat: -------------------------------------------------------------------------------- 1 | org.eclipse.jdt.coreSTATE -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.projects/JsonToJava/.indexes/af/history.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.projects/JsonToJava/.indexes/af/history.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.projects/JsonToJava/.indexes/e4/81/5/history.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.projects/JsonToJava/.indexes/e4/81/5/history.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.projects/JsonToJava/.indexes/e4/81/74/5/history.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.projects/JsonToJava/.indexes/e4/81/74/5/history.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.projects/JsonToJava/.indexes/e8/a8/85/history.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.projects/JsonToJava/.indexes/e8/a8/85/history.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.projects/JsonToJava/.indexes/e8/a8/history.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.projects/JsonToJava/.indexes/e8/a8/history.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.projects/JsonToJava/.indexes/e8/history.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.projects/JsonToJava/.indexes/e8/history.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.projects/JsonToJava/.indexes/properties.index: -------------------------------------------------------------------------------- 1 | Bcom.google.gdt.eclipse.core.projects.ProjectChangeTimestampTrackerprojectChangeTimestamp 1382039185345 -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.projects/JsonToJava/.markers: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.projects/JsonToJava/.markers -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.projects/JsonToJava/org.eclipse.jdt.core/state.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.projects/JsonToJava/org.eclipse.jdt.core/state.dat -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.projects/MediaStore/.location: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.projects/MediaStore/.location -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.projects/MediaStore/.markers: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.projects/MediaStore/.markers -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.projects/MediaStore/org.eclipse.jdt.core/state.dat: -------------------------------------------------------------------------------- 1 | org.eclipse.jdt.coreSTATE -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.projects/TaskEngine/.location: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.projects/TaskEngine/.location -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.projects/TaskEngine/.markers: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.projects/TaskEngine/.markers -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.projects/TaskEngine/org.eclipse.jdt.core/state.dat: -------------------------------------------------------------------------------- 1 | org.eclipse.jdt.coreSTATE -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.projects/TaskQueueExamples/.location: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.projects/TaskQueueExamples/.location -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.projects/TaskQueueExamples/.markers: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.projects/TaskQueueExamples/.markers -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.projects/TaskQueueExamples/org.eclipse.jdt.core/state.dat: -------------------------------------------------------------------------------- 1 | org.eclipse.jdt.coreSTATE -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/history.version: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.index: -------------------------------------------------------------------------------- 1 | /org.eclipse.core.resourcescontentCacheState2contentCacheTimestamp 1381961703669org.eclipse.jdt.corestateVersionNumber27org.eclipse.jst.jsp.core+org.eclipse.jst.jsp.core.taglib.TaglibIndexCLEANorg.eclipse.wst.jsdt.corestateVersionNumber21 -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.version: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.root/6.tree: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.root/6.tree -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.runtime/.settings/com.google.appengine.eclipse.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | sdkSetXml=PHNka3MgZGVmYXVsdFNkaz0iQXBwIEVuZ2luZSI+Cgk8c2RrIG5hbWU9IkFwcCBFbmdpbmUiIGxvY2F0aW9uPSIvVXNlcnMvam9uZmhhbmNvY2svYXBwcy9FY2xpcHNlL3BsdWdpbnMvY29tLmdvb2dsZS5hcHBlbmdpbmUuZWNsaXBzZS5zZGtidW5kbGVfMS44LjUvYXBwZW5naW5lLWphdmEtc2RrLTEuOC41LyIgdmVyc2lvbj0iIi8+Cjwvc2Rrcz4K 3 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.runtime/.settings/com.google.gdt.eclipse.suite.prefs: -------------------------------------------------------------------------------- 1 | SdkRegistrants_1381960742398=com.google.appengine.eclipse.sdkbundle_1.8.5 2 | eclipse.preferences.version=1 3 | versionForLastForcedRebuild_HelloServers=3.4.2.v201310081834-rel-r43 4 | versionForLastForcedRebuild_JsonToJava=3.4.2.v201310081834-rel-r43 5 | versionForLastForcedRebuild_MediaStore=3.4.2.v201310081834-rel-r43 6 | versionForLastForcedRebuild_TaskEngine=3.4.2.v201310081834-rel-r43 7 | versionForLastForcedRebuild_TaskQueueExamples=3.4.2.v201310081834-rel-r43 8 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | version=1 3 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.debug.ui.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.debug.ui.PREF_LAUNCH_PERSPECTIVES=\n\n 3 | preferredTargets=default\:default| 4 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.builder.resourceCopyExclusionFilter= 3 | org.eclipse.jdt.core.classpathVariable.JRE_LIB=/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/jre/lib/rt.jar 4 | org.eclipse.jdt.core.classpathVariable.JRE_SRC=/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/src.zip 5 | org.eclipse.jdt.core.classpathVariable.JRE_SRCROOT=src 6 | org.eclipse.jdt.core.codeComplete.visibilityCheck=enabled 7 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 8 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 9 | org.eclipse.jdt.core.compiler.compliance=1.7 10 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.source=1.7 13 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.launching.prefs: -------------------------------------------------------------------------------- 1 | PREF_VM_INSTALL_SYSTEM_PROPERTY.org.eclipse.jdt.internal.launching.macosx.MacOSXType.com.apple.javajdk16.java.specification.version=1.6 2 | PREF_VM_INSTALL_SYSTEM_PROPERTY.org.eclipse.jdt.internal.launching.macosx.MacOSXType.com.oracle.java.7u45.jdk.java.specification.version=1.7 3 | eclipse.preferences.version=1 4 | org.eclipse.jdt.launching.PREF_VM_XML=\n\n\n\n\n\n\n 5 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.ui.prefs: -------------------------------------------------------------------------------- 1 | content_assist_lru_history= 2 | content_assist_number_of_computers=17 3 | content_assist_proposals_background=255,255,255 4 | content_assist_proposals_foreground=0,0,0 5 | eclipse.preferences.version=1 6 | fontPropagated=true 7 | org.eclipse.jdt.ui.editor.tab.width= 8 | org.eclipse.jdt.ui.formatterprofiles.version=12 9 | org.eclipse.jdt.ui.javadoclocations.migrated=true 10 | org.eclipse.jdt.ui.text.custom_templates= 11 | org.eclipse.jdt.ui.text.templates_migrated=true 12 | org.eclipse.jface.textfont=1|Monaco|11.0|0|COCOA|1|; 13 | proposalOrderMigrated=true 14 | spelling_locale_initialized=true 15 | tabWidthPropagated=true 16 | useAnnotationsPrefPage=true 17 | useQuickDiffPrefPage=true 18 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.pde.api.tools.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | knownEEFragments= 3 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.team.ui.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.team.ui.first_time=false 3 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.browser.prefs: -------------------------------------------------------------------------------- 1 | browsers=\n\n\n 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.editors.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | overviewRuler_migration=migrated_3.1 3 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.ide.prefs: -------------------------------------------------------------------------------- 1 | IMPORT_FILES_AND_FOLDERS_RELATIVE=true 2 | IMPORT_FILES_AND_FOLDERS_TYPE=23,1\:7,1 3 | PROBLEMS_FILTERS_MIGRATE=true 4 | eclipse.preferences.version=1 5 | platformState=1381961703669 6 | quickStart=false 7 | tipsAndTricks=true 8 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | showIntro=false 3 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.wst.jsdt.ui.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | fontPropagated=true 3 | org.eclipse.jface.textfont=1|Monaco|11.0|0|COCOA|1|; 4 | org.eclipse.wst.jsdt.ui.editor.tab.width= 5 | org.eclipse.wst.jsdt.ui.formatterprofiles.version=11 6 | org.eclipse.wst.jsdt.ui.javadoclocations.migrated=true 7 | proposalOrderMigrated=true 8 | tabWidthPropagated=true 9 | useAnnotationsPrefPage=true 10 | useQuickDiffPrefPage=true 11 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.wst.jsdt.web.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | jspIndexState=1 3 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.wst.server.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | runtimes=\n\n \n\n 3 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.wst.sse.ui.prefs: -------------------------------------------------------------------------------- 1 | content_assist_number_of_computers=18 2 | eclipse.preferences.version=1 3 | useAnnotationsPrefPage=true 4 | useQuickDiffPrefPage=true 5 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.wst.xml.ui.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.wst.xml.ui.internal.tabletree.XMLMultiPageEditorPart.lastActivePage=1 3 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.debug.core/.launches/JsonToJava.launch: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.debug.ui/launchConfigurationHistory.xml: -------------------------------------------------------------------------------- 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 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.equinox.p2.ui/dialog_settings.xml: -------------------------------------------------------------------------------- 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 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/1060078548.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/1060078548.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/107769345.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/107769345.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/1094285800.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/1094285800.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/112915137.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/112915137.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/1213662472.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/1213662472.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/1264444999.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/1264444999.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/1271342938.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/1271342938.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/1291603813.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/1291603813.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/1317241607.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/1317241607.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/1384487945.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/1384487945.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/1490158934.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/1490158934.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/1509721532.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/1509721532.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/156905802.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/156905802.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/162080741.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/162080741.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/1628143439.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/1628143439.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/1667244414.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/1667244414.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/1819685514.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/1819685514.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/1833648217.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/1833648217.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/1890339164.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/1890339164.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/1925216736.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/1925216736.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/2050025958.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/2050025958.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/2108030059.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/2108030059.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/2220222405.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/2220222405.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/2328043753.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/2328043753.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/2399042292.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/2399042292.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/2449339587.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/2449339587.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/2472421909.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/2472421909.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/2545238116.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/2545238116.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/2651200422.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/2651200422.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/2716637632.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/2716637632.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/2740737327.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/2740737327.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/2768548864.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/2768548864.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/2796365065.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/2796365065.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/2890659831.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/2890659831.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/294957792.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/294957792.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/2982917733.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/2982917733.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/302193953.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/302193953.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/3039720509.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/3039720509.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/3119494488.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/3119494488.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/3261838026.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/3261838026.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/3266567714.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/3266567714.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/3302703152.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/3302703152.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/3321539481.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/3321539481.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/3394953001.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/3394953001.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/3402582055.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/3402582055.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/342632969.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/342632969.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/3460468224.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/3460468224.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/3513380958.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/3513380958.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/3516038316.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/3516038316.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/3542844787.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/3542844787.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/3659915223.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/3659915223.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/3687793451.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/3687793451.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/3712507179.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/3712507179.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/3852597815.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/3852597815.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/3918140538.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/3918140538.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/4121012013.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/4121012013.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/4238209716.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/4238209716.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/515287155.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/515287155.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/633660734.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/633660734.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/791674651.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/791674651.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/81648094.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/81648094.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/840961333.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/840961333.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/925495247.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/925495247.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/externalLibsTimeStamps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/externalLibsTimeStamps -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/indexNamesMap.txt: -------------------------------------------------------------------------------- 1 | INDEX VERSION 1.126 2 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/invalidArchivesCache: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/javaLikeNames.txt: -------------------------------------------------------------------------------- 1 | java -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.core/nonChainingJarsCache: -------------------------------------------------------------------------------- 1 | '/JsonToJava/war/WEB-INF/lib/jta-1.1.jar6/JsonToJava/war/WEB-INF/lib/google-collections-1.0.jar:/JsonToJava/war/WEB-INF/lib/hibernate-core-3.5.2-Final.jar+/JsonToJava/war/WEB-INF/lib/antlr-2.7.6.jar2/JsonToJava/war/WEB-INF/lib/javassist-3.9.0.GA.jar1/JsonToJava/war/WEB-INF/lib/commons-lang3-3.1.jar//JsonToJava/war/WEB-INF/lib/xml-apis-1.0.b2.jar0/JsonToJava/war/WEB-INF/lib/slf4j-api-1.5.11.jar*/JsonToJava/war/WEB-INF/lib/c3p0-0.9.1.jar+/JsonToJava/war/WEB-INF/lib/dom4j-1.6.1.jar./JsonToJava/war/WEB-INF/lib/commons-io-2.4.jar1/JsonToJava/war/WEB-INF/lib/jtidy-r8-20060801.jar:/JsonToJava/war/WEB-INF/lib/hibernate-c3p0-3.5.2-Final.jar-/JsonToJava/war/WEB-INF/lib/joda-time-1.6.jar)/JsonToJava/war/WEB-INF/lib/cglib-2.2.jar,/JsonToJava/war/WEB-INF/lib/okhttp-1.1.1.jar'/JsonToJava/war/WEB-INF/lib/asm-3.1.jar4/JsonToJava/war/WEB-INF/lib/jcip-annotations-1.0.jarI/JsonToJava/war/WEB-INF/lib/modeshape-connector-store-jpa-2.1.0.Final.jarA/JsonToJava/war/WEB-INF/lib/hibernate-jpa-2.0-api-1.0.0.Final.jar 2 |
3 | 4 | 5 | 6 | 7 |
8 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.launching/.install.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.launching/libraryInfos.xml: -------------------------------------------------------------------------------- 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 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.ui/OpenTypeHistory.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.ui/QualifiedTypeNameHistory.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jdt.ui/dialog_settings.xml: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 | 5 | 6 | 7 | 8 | 9 |
10 |
11 |
12 |
13 |
14 |
15 | 16 |
17 |
18 |
19 |
20 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jst.jsp.core/jspsearch/1359840284.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jst.jsp.core/jspsearch/1359840284.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jst.jsp.core/jspsearch/2889311136.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jst.jsp.core/jspsearch/2889311136.index -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jst.jsp.core/taglibindex/2651200422.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.jst.jsp.core/taglibindex/2651200422.dat -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.ltk.core.refactoring/.refactorings/JsonToJava/2013/10/42/refactorings.history: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.ltk.core.refactoring/.refactorings/JsonToJava/2013/10/42/refactorings.index: -------------------------------------------------------------------------------- 1 | 1381962182113 Copy folder 2 | 1382031636378 Delete element 3 | 1382032560777 Move folders 4 | 1382032760288 Move folder 5 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.ltk.ui.refactoring/dialog_settings.xml: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 | 5 | 6 |
7 |
8 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.pde.core/.cache/clean-cache.properties: -------------------------------------------------------------------------------- 1 | #Cached timestamps 2 | #Thu Oct 17 15:07:59 PDT 2013 3 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.ui.ide/dialog_settings.xml: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 |
15 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.ui.intro/dialog_settings.xml: -------------------------------------------------------------------------------- 1 | 2 |
3 | 4 |
5 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.ui.workbench.texteditor/dialog_settings.xml: -------------------------------------------------------------------------------- 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 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.ui.workbench/dialog_settings.xml: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 |
16 | 17 | 18 |
19 |
20 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.ui.workbench/workingsets.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.wst.internet.cache/cache.xml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.wst.jsdt.core/externalLibsTimeStamps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.wst.jsdt.core/externalLibsTimeStamps -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.wst.jsdt.core/libraries/xhr.js: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2009, 2011 IBM Corporation and others. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the Eclipse Public License v1.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.eclipse.org/legal/epl-v10.html 7 | * 8 | * Contributors: 9 | * IBM Corporation - initial API and implementation 10 | ****************************************************************************** 11 | * 12 | * Based on information from https://developer.mozilla.org/En/XMLHttpRequest 13 | * and http://msdn2.microsoft.com/en-us/library/ms533062.aspx 14 | **/ 15 | 16 | /** 17 | * function createRequest 18 | * @type XMLHttpRequest 19 | * @memberOf Window 20 | */ 21 | Window.prototype.createRequest= function(){return new XMLHttpRequest();}; 22 | /** 23 | * Object XMLHttpRequest 24 | * @type constructor 25 | */ 26 | XMLHttpRequest.prototype=new Object(); 27 | function XMLHttpRequest(){}; 28 | 29 | /** 30 | * function onreadystatechange 31 | * @memberOf XMLHttpRequest 32 | */ 33 | XMLHttpRequest.prototype.onreadystatechange=function(){}; 34 | /** 35 | * property readyState 36 | * @type Number 37 | * @memberOf XMLHttpRequest 38 | */ 39 | XMLHttpRequest.prototype.readyState=0; 40 | /** 41 | * property responseText 42 | * @type String 43 | * @memberOf XMLHttpRequest 44 | */ 45 | XMLHttpRequest.prototype.responseText=""; 46 | /** 47 | * property responseXML 48 | * @type Document 49 | * @memberOf XMLHttpRequest 50 | */ 51 | XMLHttpRequest.prototype.responseXML=new Document(); 52 | /** 53 | * property status 54 | * @type Number 55 | * @memberOf XMLHttpRequest 56 | */ 57 | XMLHttpRequest.prototype.status=0; 58 | /** 59 | * property statusText 60 | * @type String 61 | * @memberOf XMLHttpRequest 62 | */ 63 | XMLHttpRequest.prototype.statusText=""; 64 | /** 65 | * function abort() 66 | * @memberOf XMLHttpRequest 67 | */ 68 | XMLHttpRequest.prototype.abort=function(){}; 69 | /** 70 | * function getAllResponseHeaders() 71 | * @type String 72 | * @memberOf XMLHttpRequest 73 | */ 74 | XMLHttpRequest.prototype.getAllResponseHeaders=function(){return "";}; 75 | /** 76 | * function open(method, url, async, username, password) 77 | * @param {String} method 78 | * @param {String} url 79 | * @param {Boolean} optional async 80 | * @param {String} optional username 81 | * @param {String} optional password 82 | * @memberOf XMLHttpRequest 83 | */ 84 | XMLHttpRequest.prototype.open=function(method, url, async, username, password){}; 85 | /** 86 | * function send(body) 87 | * @param {Object} body 88 | * @memberOf XMLHttpRequest 89 | */ 90 | XMLHttpRequest.prototype.send=function(body){}; 91 | /** 92 | * function setRequestHeader(header,value) 93 | * @param {String} header 94 | * @param {String} value 95 | * @memberOf XMLHttpRequest 96 | */ 97 | XMLHttpRequest.prototype.setRequestHeader=function(header,value){}; 98 | /** 99 | * function getAllResponseHeaders() 100 | * @param {String} header 101 | * @type String 102 | * @memberOf XMLHttpRequest 103 | */ 104 | XMLHttpRequest.prototype.getResponseHeader=function(header){return "";}; 105 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.wst.jsdt.core/variablesAndContainers.dat: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.wst.jsdt.ui/OpenTypeHistory.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.wst.jsdt.ui/QualifiedTypeNameHistory.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.wst.sse.core/task-tags.properties: -------------------------------------------------------------------------------- 1 | # 2 | #Thu Oct 17 09:40:36 PDT 2013 3 | task-tag-projects-already-scanned=TaskEngine,MediaStore,TaskQueueExamples,HelloServers,JsonToJava 4 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.wst.sse.ui/dialog_settings.xml: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 |
5 |
6 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/.plugins/org.eclipse.wst.xml.core/default_catalog.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.metadata/version.ini: -------------------------------------------------------------------------------- 1 | org.eclipse.core.runtime=1 -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | JsonToJava-AppEngine 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.wst.common.project.facet.core.builder 10 | 11 | 12 | 13 | 14 | org.eclipse.jdt.core.javabuilder 15 | 16 | 17 | 18 | 19 | com.google.gdt.eclipse.core.webAppProjectValidator 20 | 21 | 22 | 23 | 24 | com.google.appengine.eclipse.core.gaeProjectChangeNotifier 25 | 26 | 27 | 28 | 29 | com.google.appengine.eclipse.core.projectValidator 30 | 31 | 32 | 33 | 34 | com.google.appengine.eclipse.core.enhancerbuilder 35 | 36 | 37 | 38 | 39 | 40 | org.eclipse.jdt.core.javanature 41 | com.google.appengine.eclipse.core.gaeNature 42 | org.eclipse.wst.common.project.facet.core.nature 43 | 44 | 45 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.settings/com.google.appengine.eclipse.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | filesCopiedToWebInfLib=appengine-api-1.0-sdk-1.8.5.jar|appengine-api-labs.jar|appengine-endpoints.jar|appengine-jsr107cache-1.8.5.jar|asm-4.0.jar|datanucleus-api-jdo-3.1.3.jar|datanucleus-api-jpa-3.1.3.jar|datanucleus-appengine-2.1.2.jar|datanucleus-core-3.1.3.jar|geronimo-jpa_2.0_spec-1.0.jar|jdo-api-3.0.1.jar|jsr107cache-1.1.jar|jta-1.1.jar 3 | gaeDatanucleusVersion=v2 4 | gaeDeployDialogSettings= 5 | gaeHrdEnabled=true 6 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.settings/com.google.gdt.eclipse.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | warSrcDir=war 3 | warSrcDirIsOutput=true 4 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 4 | org.eclipse.jdt.core.compiler.compliance=1.6 5 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 6 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 7 | org.eclipse.jdt.core.compiler.source=1.6 8 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/src/META-INF/jdoconfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/src/META-INF/persistence.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | org.datanucleus.api.jpa.PersistenceProviderImpl 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/src/com/jonfhancock/jsontojava/JsonToJavaServlet.java: -------------------------------------------------------------------------------- 1 | package com.jonfhancock.jsontojava; 2 | 3 | import java.io.ByteArrayOutputStream; 4 | import java.io.IOException; 5 | 6 | import javax.servlet.http.HttpServlet; 7 | import javax.servlet.http.HttpServletRequest; 8 | import javax.servlet.http.HttpServletResponse; 9 | 10 | import com.jsontojava.JsonToJava; 11 | import com.jsontojava.OutputOption; 12 | 13 | @SuppressWarnings("serial") 14 | public class JsonToJavaServlet extends HttpServlet { 15 | public void doGet(HttpServletRequest req, HttpServletResponse resp) 16 | throws IOException { 17 | 18 | JsonToJava jsonToJava = new JsonToJava(); 19 | jsonToJava.setUrl(req.getParameter("url")); 20 | jsonToJava.setPackage(req.getParameter("package")); 21 | jsonToJava.setBaseType(req.getParameter("class")); 22 | String[] options = req.getParameterValues("options"); 23 | if(options != null){ 24 | for(String option:options){ 25 | jsonToJava.addOutputOption(OutputOption.valueOf(option)); 26 | } 27 | } 28 | System.out.println(options); 29 | jsonToJava.fetchJson(); 30 | ByteArrayOutputStream out = (ByteArrayOutputStream) jsonToJava 31 | .outputZipFile(new ByteArrayOutputStream()); 32 | byte[] data = out.toByteArray(); 33 | resp.setContentType("application/zip"); 34 | resp.setContentLength(data.length); 35 | resp.setHeader("Content-Disposition", 36 | "inline; filename=" + jsonToJava.getPackage() + ".zip"); 37 | resp.getOutputStream().write(data); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/src/log4j.properties: -------------------------------------------------------------------------------- 1 | # A default log4j configuration for log4j users. 2 | # 3 | # To use this configuration, deploy it into your application's WEB-INF/classes 4 | # directory. You are also encouraged to edit it as you like. 5 | 6 | # Configure the console as our one appender 7 | log4j.appender.A1=org.apache.log4j.ConsoleAppender 8 | log4j.appender.A1.layout=org.apache.log4j.PatternLayout 9 | log4j.appender.A1.layout.ConversionPattern=%d{HH:mm:ss,SSS} %-5p [%c] - %m%n 10 | 11 | # tighten logging on the DataNucleus Categories 12 | log4j.category.DataNucleus.JDO=WARN, A1 13 | log4j.category.DataNucleus.Persistence=WARN, A1 14 | log4j.category.DataNucleus.Cache=WARN, A1 15 | log4j.category.DataNucleus.MetaData=WARN, A1 16 | log4j.category.DataNucleus.General=WARN, A1 17 | log4j.category.DataNucleus.Utility=WARN, A1 18 | log4j.category.DataNucleus.Transaction=WARN, A1 19 | log4j.category.DataNucleus.Datastore=WARN, A1 20 | log4j.category.DataNucleus.ClassLoading=WARN, A1 21 | log4j.category.DataNucleus.Plugin=WARN, A1 22 | log4j.category.DataNucleus.ValueGeneration=WARN, A1 23 | log4j.category.DataNucleus.Enhancer=WARN, A1 24 | log4j.category.DataNucleus.SchemaTool=WARN, A1 25 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/war/WEB-INF/appengine-web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | jsontojava 4 | 1 5 | 6 | 9 | true 10 | 11 | 12 | 13 | 14 | 15 | 16 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/war/WEB-INF/classes/META-INF/jdoconfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/war/WEB-INF/classes/META-INF/persistence.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | org.datanucleus.api.jpa.PersistenceProviderImpl 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/war/WEB-INF/classes/log4j.properties: -------------------------------------------------------------------------------- 1 | # A default log4j configuration for log4j users. 2 | # 3 | # To use this configuration, deploy it into your application's WEB-INF/classes 4 | # directory. You are also encouraged to edit it as you like. 5 | 6 | # Configure the console as our one appender 7 | log4j.appender.A1=org.apache.log4j.ConsoleAppender 8 | log4j.appender.A1.layout=org.apache.log4j.PatternLayout 9 | log4j.appender.A1.layout.ConversionPattern=%d{HH:mm:ss,SSS} %-5p [%c] - %m%n 10 | 11 | # tighten logging on the DataNucleus Categories 12 | log4j.category.DataNucleus.JDO=WARN, A1 13 | log4j.category.DataNucleus.Persistence=WARN, A1 14 | log4j.category.DataNucleus.Cache=WARN, A1 15 | log4j.category.DataNucleus.MetaData=WARN, A1 16 | log4j.category.DataNucleus.General=WARN, A1 17 | log4j.category.DataNucleus.Utility=WARN, A1 18 | log4j.category.DataNucleus.Transaction=WARN, A1 19 | log4j.category.DataNucleus.Datastore=WARN, A1 20 | log4j.category.DataNucleus.ClassLoading=WARN, A1 21 | log4j.category.DataNucleus.Plugin=WARN, A1 22 | log4j.category.DataNucleus.ValueGeneration=WARN, A1 23 | log4j.category.DataNucleus.Enhancer=WARN, A1 24 | log4j.category.DataNucleus.SchemaTool=WARN, A1 25 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/war/WEB-INF/lib/appengine-api-1.0-sdk-1.8.5.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/war/WEB-INF/lib/appengine-api-1.0-sdk-1.8.5.jar -------------------------------------------------------------------------------- /JsonToJava-AppEngine/war/WEB-INF/lib/appengine-api-labs.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/war/WEB-INF/lib/appengine-api-labs.jar -------------------------------------------------------------------------------- /JsonToJava-AppEngine/war/WEB-INF/lib/appengine-endpoints.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/war/WEB-INF/lib/appengine-endpoints.jar -------------------------------------------------------------------------------- /JsonToJava-AppEngine/war/WEB-INF/lib/appengine-jsr107cache-1.8.5.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/war/WEB-INF/lib/appengine-jsr107cache-1.8.5.jar -------------------------------------------------------------------------------- /JsonToJava-AppEngine/war/WEB-INF/lib/asm-4.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/war/WEB-INF/lib/asm-4.0.jar -------------------------------------------------------------------------------- /JsonToJava-AppEngine/war/WEB-INF/lib/commons-io-2.4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/war/WEB-INF/lib/commons-io-2.4.jar -------------------------------------------------------------------------------- /JsonToJava-AppEngine/war/WEB-INF/lib/commons-lang3-3.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/war/WEB-INF/lib/commons-lang3-3.1.jar -------------------------------------------------------------------------------- /JsonToJava-AppEngine/war/WEB-INF/lib/datanucleus-api-jdo-3.1.3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/war/WEB-INF/lib/datanucleus-api-jdo-3.1.3.jar -------------------------------------------------------------------------------- /JsonToJava-AppEngine/war/WEB-INF/lib/datanucleus-api-jpa-3.1.3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/war/WEB-INF/lib/datanucleus-api-jpa-3.1.3.jar -------------------------------------------------------------------------------- /JsonToJava-AppEngine/war/WEB-INF/lib/datanucleus-appengine-2.1.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/war/WEB-INF/lib/datanucleus-appengine-2.1.2.jar -------------------------------------------------------------------------------- /JsonToJava-AppEngine/war/WEB-INF/lib/datanucleus-core-3.1.3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/war/WEB-INF/lib/datanucleus-core-3.1.3.jar -------------------------------------------------------------------------------- /JsonToJava-AppEngine/war/WEB-INF/lib/geronimo-jpa_2.0_spec-1.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/war/WEB-INF/lib/geronimo-jpa_2.0_spec-1.0.jar -------------------------------------------------------------------------------- /JsonToJava-AppEngine/war/WEB-INF/lib/jdo-api-3.0.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/war/WEB-INF/lib/jdo-api-3.0.1.jar -------------------------------------------------------------------------------- /JsonToJava-AppEngine/war/WEB-INF/lib/jsontojava-lib.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/war/WEB-INF/lib/jsontojava-lib.jar -------------------------------------------------------------------------------- /JsonToJava-AppEngine/war/WEB-INF/lib/jsr107cache-1.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/war/WEB-INF/lib/jsr107cache-1.1.jar -------------------------------------------------------------------------------- /JsonToJava-AppEngine/war/WEB-INF/lib/jta-1.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/war/WEB-INF/lib/jta-1.1.jar -------------------------------------------------------------------------------- /JsonToJava-AppEngine/war/WEB-INF/lib/modeshape-jpa-ddl-gen-2.1.0.Final-jar-with-dependencies.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/war/WEB-INF/lib/modeshape-jpa-ddl-gen-2.1.0.Final-jar-with-dependencies.jar -------------------------------------------------------------------------------- /JsonToJava-AppEngine/war/WEB-INF/logging.properties: -------------------------------------------------------------------------------- 1 | # A default java.util.logging configuration. 2 | # (All App Engine logging is through java.util.logging by default). 3 | # 4 | # To use this configuration, copy it into your application's WEB-INF 5 | # folder and add the following to your appengine-web.xml: 6 | # 7 | # 8 | # 9 | # 10 | # 11 | 12 | # Set the default logging level for all loggers to WARNING 13 | .level = WARNING 14 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/war/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | JsonToJava 9 | com.jonfhancock.jsontojava.JsonToJavaServlet 10 | 11 | 12 | JsonToJava 13 | /jsontojava 14 | 15 | 16 | index.html 17 | 18 | 19 | -------------------------------------------------------------------------------- /JsonToJava-AppEngine/war/assets/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/war/assets/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /JsonToJava-AppEngine/war/assets/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/war/assets/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /JsonToJava-AppEngine/war/assets/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/war/assets/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /JsonToJava-AppEngine/war/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-AppEngine/war/favicon.ico -------------------------------------------------------------------------------- /JsonToJava-AppEngine/war/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | JSON To Java 7 | 8 | 9 | 10 | 11 | 12 | 13 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 |
53 | 54 |
55 | Fork me on GitHub 56 |

JSON To Java

57 |

JSON To Java as a Service (JTJaaS) is intended to lighten the 58 | burden of java developers who need to create POJOs to parallel a 59 | JSON API.

60 |
61 | 62 |
63 | 64 |
65 |
66 |
67 | 68 |
69 | 70 |
71 |
72 |
73 | 74 |
75 | 76 |
77 |
78 | 79 |
80 |
81 |
82 | 85 |
86 |
87 |
88 |
89 |
90 |
91 | 94 |
95 |
96 |
97 |
98 |
99 |
100 | 103 |
104 |
105 |
106 |
107 |
108 | 109 |
110 |
111 |
112 |
113 | 114 | 115 | 117 | 118 | 119 | 120 | 128 | 129 | 130 | -------------------------------------------------------------------------------- /JsonToJava-CLI/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /JsonToJava-CLI/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | JsonToJava-CLI 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /JsonToJava-CLI/.settings/org.eclipse.ltk.core.refactoring.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.ltk.core.refactoring.enable.project.refactoring.history=false 3 | -------------------------------------------------------------------------------- /JsonToJava-CLI/build.xml: -------------------------------------------------------------------------------- 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 | -------------------------------------------------------------------------------- /JsonToJava-CLI/libs/commons-cli-1.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-CLI/libs/commons-cli-1.2.jar -------------------------------------------------------------------------------- /JsonToJava-CLI/src/com/jsontojava/cli/Main.java: -------------------------------------------------------------------------------- 1 | package com.jsontojava.cli; 2 | 3 | 4 | import java.io.File; 5 | import java.io.FileOutputStream; 6 | import java.io.IOException; 7 | import java.io.OutputStream; 8 | 9 | import org.apache.commons.cli.BasicParser; 10 | import org.apache.commons.cli.CommandLine; 11 | import org.apache.commons.cli.CommandLineParser; 12 | import org.apache.commons.cli.Option; 13 | import org.apache.commons.cli.OptionBuilder; 14 | import org.apache.commons.cli.Options; 15 | import org.apache.commons.cli.ParseException; 16 | 17 | import com.jsontojava.JsonToJava; 18 | import com.jsontojava.OutputOption; 19 | 20 | public class Main { 21 | private static final String OPTION_PACKAGE = "package"; 22 | private static final String OPTION_URL = "url"; 23 | private static final String OPTION_ROOT = "class"; 24 | private static final String OPTION_GSON = "g"; 25 | private static final String OPTION_PARCELABLE = "p"; 26 | private static final String OPTION_TO_STRING = "s"; 27 | 28 | 29 | /** 30 | * @param args 31 | * @throws IOException 32 | * @throws ParseException 33 | */ 34 | public static void main(String[] args) throws IOException, ParseException { 35 | Options options = createOptions(); 36 | 37 | CommandLineParser parser = new BasicParser(); 38 | CommandLine cmd = parser.parse( options, args); 39 | JsonToJava jsonToJava = new JsonToJava(); 40 | 41 | jsonToJava.setUrl(cmd.getOptionValue(OPTION_URL)); 42 | jsonToJava.setPackage(cmd.getOptionValue(OPTION_PACKAGE)); 43 | jsonToJava.setBaseType(cmd.getOptionValue(OPTION_ROOT)); 44 | if(cmd.hasOption(OPTION_GSON)){ 45 | jsonToJava.addOutputOption(OutputOption.GSON); 46 | } 47 | if(cmd.hasOption(OPTION_PARCELABLE)){ 48 | jsonToJava.addOutputOption(OutputOption.PARCELABLE); 49 | } 50 | if(cmd.hasOption(OPTION_TO_STRING)){ 51 | jsonToJava.addOutputOption(OutputOption.TO_STRING); 52 | } 53 | 54 | jsonToJava.fetchJson(); 55 | File zipFile = new File(jsonToJava.getPackage() + ".zip"); 56 | OutputStream os = new FileOutputStream(zipFile); 57 | jsonToJava.outputZipFile(os); 58 | os.close(); 59 | System.out.println("\nFinished creating java classes. Your files are located in " + zipFile.getAbsolutePath() ); 60 | 61 | 62 | 63 | 64 | } 65 | 66 | 67 | 68 | private static Options createOptions(){ 69 | Options options = new Options(); 70 | options.addOption(OPTION_PARCELABLE, false, "Enabled implementation of Parcelable for all classes generated"); 71 | options.addOption(OPTION_GSON,false,"Enables Gson annotations"); 72 | options.addOption(OPTION_TO_STRING, false, "Enables overriding the toString method for new classes"); 73 | Option rootClass = OptionBuilder.hasArg().isRequired().withDescription("The name of the root class of the feed you are parsing").create(OPTION_ROOT); 74 | options.addOption(rootClass); 75 | Option url = OptionBuilder.hasArg().isRequired().withDescription("The url of the json feed you want to parse").create(OPTION_URL); 76 | options.addOption(url); 77 | Option pack = OptionBuilder.hasArg().isRequired().withDescription("The package name for the generated classes").create(OPTION_PACKAGE); 78 | options.addOption(pack); 79 | 80 | return options; 81 | 82 | 83 | } 84 | 85 | 86 | 87 | 88 | } 89 | -------------------------------------------------------------------------------- /JsonToJava-Lib/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /JsonToJava-Lib/.gitignore: -------------------------------------------------------------------------------- 1 | /bin 2 | -------------------------------------------------------------------------------- /JsonToJava-Lib/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | JsonToJava-Lib 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /JsonToJava-Lib/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 4 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 5 | org.eclipse.jdt.core.compiler.compliance=1.6 6 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 7 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 8 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 9 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 10 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 11 | org.eclipse.jdt.core.compiler.source=1.6 12 | -------------------------------------------------------------------------------- /JsonToJava-Lib/OutputJar.jardesc: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /JsonToJava-Lib/libs/commons-io-2.4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-Lib/libs/commons-io-2.4.jar -------------------------------------------------------------------------------- /JsonToJava-Lib/libs/commons-lang3-3.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-Lib/libs/commons-lang3-3.1.jar -------------------------------------------------------------------------------- /JsonToJava-Lib/libs/modeshape-jpa-ddl-gen-2.1.0.Final-jar-with-dependencies.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava-Lib/libs/modeshape-jpa-ddl-gen-2.1.0.Final-jar-with-dependencies.jar -------------------------------------------------------------------------------- /JsonToJava-Lib/src/com/jsontojava/Main.java: -------------------------------------------------------------------------------- 1 | package com.jsontojava; 2 | 3 | import java.io.IOException; 4 | 5 | public class Main { 6 | private static final String OPTION_PACKAGE = "package"; 7 | private static final String OPTION_URL = "url"; 8 | private static final String OPTION_ROOT = "class"; 9 | private static final String OPTION_GSON = "g"; 10 | private static final String OPTION_PARCELABLE = "p"; 11 | 12 | 13 | // /** 14 | // * @param args 15 | // * @throws IOException 16 | // */ 17 | // public static void main(String[] args) throws IOException { 18 | // Options options = createOptions(); 19 | // 20 | // CommandLineParser parser = new BasicParser(); 21 | // CommandLine cmd = parser.parse( options, args); 22 | // JsonToJava jsonToJava = new JsonToJava(); 23 | // 24 | // jsonToJava.setUrl(cmd.getOptionValue(OPTION_URL)); 25 | // jsonToJava.setPackage(cmd.getOptionValue(OPTION_PACKAGE)); 26 | // jsonToJava.setBaseType(cmd.getOptionValue(OPTION_ROOT)); 27 | // 28 | // jsonToJava.fetchJson(); 29 | // jsonToJava.outputZipFile(); 30 | // 31 | // 32 | // } 33 | // 34 | // 35 | // 36 | // private static Options createOptions(){ 37 | // Options options = new Options(); 38 | // options.addOption(OPTION_PARCELABLE, false, "Enabled implementation of Parcelable for all classes generated"); 39 | // options.addOption(OPTION_GSON,false,"Enables Gson annotations"); 40 | // Option rootClass = OptionBuilder.hasArg().isRequired().withDescription("The name of the root class of the feed you are parsing").create(OPTION_ROOT); 41 | // options.addOption(rootClass); 42 | // Option url = OptionBuilder.hasArg().isRequired().withDescription("The url of the json feed you want to parse").create(OPTION_URL); 43 | // options.addOption(url); 44 | // Option pack = OptionBuilder.hasArg().isRequired().withDescription("The package name for the generated classes").create(OPTION_PACKAGE); 45 | // options.addOption(pack); 46 | // 47 | // return options; 48 | // 49 | // 50 | // } 51 | // 52 | // 53 | 54 | 55 | } 56 | -------------------------------------------------------------------------------- /JsonToJava-Lib/src/com/jsontojava/OutputOption.java: -------------------------------------------------------------------------------- 1 | package com.jsontojava; 2 | 3 | public enum OutputOption { 4 | PARCELABLE,GSON,JACKSON,ORG_JSON,GREEN_DAO,CONTENT_PROVIDER,RETROFIT,TO_STRING 5 | 6 | } 7 | -------------------------------------------------------------------------------- /JsonToJava-Lib/src/com/jsontojava/TypeUtils.java: -------------------------------------------------------------------------------- 1 | package com.jsontojava; 2 | 3 | import java.util.Arrays; 4 | 5 | public class TypeUtils { 6 | 7 | public static final String PRIMITIVE_LONG = "long"; 8 | public static final String PRIMITIVE_DOUBLE = "double"; 9 | public static final String PRIMITIVE_INT = "int"; 10 | public static final String PRIMITIVE_BOOLEAN = "boolean"; 11 | public static final String TYPE_LONG = "Long"; 12 | public static final String TYPE_STRING = "String"; 13 | public static final String TYPE_DOUBLE = "Double"; 14 | public static final String TYPE_INTEGER = "Integer"; 15 | public static final String TYPE_BOOLEAN = "Boolean"; 16 | public static final String TYPE_NULL = "Null"; 17 | 18 | public static final String[] PRIMITIVE_TYPES = new String[]{PRIMITIVE_LONG,PRIMITIVE_DOUBLE,PRIMITIVE_INT,PRIMITIVE_BOOLEAN,TYPE_LONG,TYPE_STRING,TYPE_DOUBLE,TYPE_INTEGER,TYPE_BOOLEAN}; 19 | public static boolean isPrimitiveType(Object current) { 20 | String clazz = current.getClass().getSimpleName(); 21 | 22 | return isPrimitiveType(clazz); 23 | } 24 | 25 | public static boolean isPrimitiveType(String clazz) { 26 | return Arrays.asList(PRIMITIVE_TYPES).contains(clazz); 27 | } 28 | 29 | public static String getPrimitiveClassType(Object current) { 30 | String clazz = current.getClass().getSimpleName(); 31 | 32 | if (clazz.equals(TYPE_BOOLEAN)) { 33 | clazz = TYPE_BOOLEAN; 34 | } 35 | if (clazz.equals(TYPE_INTEGER)) { 36 | clazz = TYPE_INTEGER; 37 | } 38 | if (clazz.equals(TYPE_DOUBLE)) { 39 | clazz = TYPE_DOUBLE; 40 | } 41 | if (clazz.equals(TYPE_STRING)) { 42 | if(((String) current).matches("^[0-9]+(\\.[0-9]+)?$")){ 43 | try { 44 | 45 | long l = Long.parseLong((String) current); 46 | 47 | clazz = TYPE_LONG; 48 | 49 | if (Math.abs(l) < Integer.MAX_VALUE / 2) { 50 | clazz = TYPE_INTEGER; 51 | } 52 | } catch (NumberFormatException e) { 53 | try { 54 | Double.parseDouble((String) current); 55 | clazz = TYPE_DOUBLE; 56 | } catch (NumberFormatException e2) { 57 | 58 | } 59 | } 60 | } 61 | 62 | } 63 | return clazz; 64 | } 65 | 66 | public static String getPrimitiveType(Object current) { 67 | String clazz = current.getClass().getSimpleName(); 68 | 69 | if (clazz.equals(TYPE_BOOLEAN)) { 70 | clazz = PRIMITIVE_BOOLEAN; 71 | } 72 | if (clazz.equals(TYPE_INTEGER)) { 73 | clazz = PRIMITIVE_INT; 74 | } 75 | if (clazz.equals(TYPE_DOUBLE)) { 76 | clazz = PRIMITIVE_DOUBLE; 77 | } 78 | if (clazz.equals(TYPE_STRING)) { 79 | if(((String) current).matches("^[0-9]+(\\.[0-9]+)?$")){ 80 | 81 | try { 82 | long l = Long.parseLong((String) current); 83 | clazz = PRIMITIVE_LONG; 84 | 85 | if (Math.abs(l) < Integer.MAX_VALUE / 2) { 86 | clazz = PRIMITIVE_INT; 87 | } 88 | } catch (NumberFormatException e) { 89 | try { 90 | Double.parseDouble((String) current); 91 | clazz = PRIMITIVE_DOUBLE; 92 | } catch (NumberFormatException e2) { 93 | 94 | } 95 | } 96 | } 97 | } 98 | return clazz; 99 | } 100 | } 101 | -------------------------------------------------------------------------------- /JsonToJava-Lib/src/org/json/CookieList.java: -------------------------------------------------------------------------------- 1 | package org.json; 2 | 3 | /* 4 | Copyright (c) 2002 JSON.org 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | The Software shall be used for Good, not Evil. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 24 | SOFTWARE. 25 | */ 26 | 27 | import java.util.Iterator; 28 | 29 | /** 30 | * Convert a web browser cookie list string to a JSONObject and back. 31 | * @author JSON.org 32 | * @version 2010-12-24 33 | */ 34 | public class CookieList { 35 | 36 | /** 37 | * Convert a cookie list into a JSONObject. A cookie list is a sequence 38 | * of name/value pairs. The names are separated from the values by '='. 39 | * The pairs are separated by ';'. The names and the values 40 | * will be unescaped, possibly converting '+' and '%' sequences. 41 | * 42 | * To add a cookie to a cooklist, 43 | * cookielistJSONObject.put(cookieJSONObject.getString("name"), 44 | * cookieJSONObject.getString("value")); 45 | * @param string A cookie list string 46 | * @return A JSONObject 47 | * @throws JSONException 48 | */ 49 | public static JSONObject toJSONObject(String string) throws JSONException { 50 | JSONObject jo = new JSONObject(); 51 | JSONTokener x = new JSONTokener(string); 52 | while (x.more()) { 53 | String name = Cookie.unescape(x.nextTo('=')); 54 | x.next('='); 55 | jo.put(name, Cookie.unescape(x.nextTo(';'))); 56 | x.next(); 57 | } 58 | return jo; 59 | } 60 | 61 | 62 | /** 63 | * Convert a JSONObject into a cookie list. A cookie list is a sequence 64 | * of name/value pairs. The names are separated from the values by '='. 65 | * The pairs are separated by ';'. The characters '%', '+', '=', and ';' 66 | * in the names and values are replaced by "%hh". 67 | * @param jo A JSONObject 68 | * @return A cookie list string 69 | * @throws JSONException 70 | */ 71 | public static String toString(JSONObject jo) throws JSONException { 72 | boolean b = false; 73 | Iterator keys = jo.keys(); 74 | String string; 75 | StringBuffer sb = new StringBuffer(); 76 | while (keys.hasNext()) { 77 | string = keys.next().toString(); 78 | if (!jo.isNull(string)) { 79 | if (b) { 80 | sb.append(';'); 81 | } 82 | sb.append(Cookie.escape(string)); 83 | sb.append("="); 84 | sb.append(Cookie.escape(jo.getString(string))); 85 | b = true; 86 | } 87 | } 88 | return sb.toString(); 89 | } 90 | } 91 | -------------------------------------------------------------------------------- /JsonToJava-Lib/src/org/json/HTTPTokener.java: -------------------------------------------------------------------------------- 1 | package org.json; 2 | 3 | /* 4 | Copyright (c) 2002 JSON.org 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | The Software shall be used for Good, not Evil. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 24 | SOFTWARE. 25 | */ 26 | 27 | /** 28 | * The HTTPTokener extends the JSONTokener to provide additional methods 29 | * for the parsing of HTTP headers. 30 | * @author JSON.org 31 | * @version 2012-11-13 32 | */ 33 | public class HTTPTokener extends JSONTokener { 34 | 35 | /** 36 | * Construct an HTTPTokener from a string. 37 | * @param string A source string. 38 | */ 39 | public HTTPTokener(String string) { 40 | super(string); 41 | } 42 | 43 | 44 | /** 45 | * Get the next token or string. This is used in parsing HTTP headers. 46 | * @throws JSONException 47 | * @return A String. 48 | */ 49 | public String nextToken() throws JSONException { 50 | char c; 51 | char q; 52 | StringBuffer sb = new StringBuffer(); 53 | do { 54 | c = next(); 55 | } while (Character.isWhitespace(c)); 56 | if (c == '"' || c == '\'') { 57 | q = c; 58 | for (;;) { 59 | c = next(); 60 | if (c < ' ') { 61 | throw syntaxError("Unterminated string."); 62 | } 63 | if (c == q) { 64 | return sb.toString(); 65 | } 66 | sb.append(c); 67 | } 68 | } 69 | for (;;) { 70 | if (c == 0 || Character.isWhitespace(c)) { 71 | return sb.toString(); 72 | } 73 | sb.append(c); 74 | c = next(); 75 | } 76 | } 77 | } 78 | -------------------------------------------------------------------------------- /JsonToJava-Lib/src/org/json/JSONException.java: -------------------------------------------------------------------------------- 1 | package org.json; 2 | 3 | /** 4 | * The JSONException is thrown by the JSON.org classes when things are amiss. 5 | * 6 | * @author JSON.org 7 | * @version 2013-02-10 8 | */ 9 | public class JSONException extends RuntimeException { 10 | private static final long serialVersionUID = 0; 11 | private Throwable cause; 12 | 13 | /** 14 | * Constructs a JSONException with an explanatory message. 15 | * 16 | * @param message 17 | * Detail about the reason for the exception. 18 | */ 19 | public JSONException(String message) { 20 | super(message); 21 | } 22 | 23 | /** 24 | * Constructs a new JSONException with the specified cause. 25 | */ 26 | public JSONException(Throwable cause) { 27 | super(cause.getMessage()); 28 | this.cause = cause; 29 | } 30 | 31 | /** 32 | * Returns the cause of this exception or null if the cause is nonexistent 33 | * or unknown. 34 | * 35 | * @returns the cause of this exception or null if the cause is nonexistent 36 | * or unknown. 37 | */ 38 | public Throwable getCause() { 39 | return this.cause; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /JsonToJava-Lib/src/org/json/JSONString.java: -------------------------------------------------------------------------------- 1 | package org.json; 2 | /** 3 | * The JSONString interface allows a toJSONString() 4 | * method so that a class can change the behavior of 5 | * JSONObject.toString(), JSONArray.toString(), 6 | * and JSONWriter.value(Object). The 7 | * toJSONString method will be used instead of the default behavior 8 | * of using the Object's toString() method and quoting the result. 9 | */ 10 | public interface JSONString { 11 | /** 12 | * The toJSONString method allows a class to produce its own JSON 13 | * serialization. 14 | * 15 | * @return A strictly syntactically correct JSON text. 16 | */ 17 | public String toJSONString(); 18 | } 19 | -------------------------------------------------------------------------------- /JsonToJava-Lib/src/org/json/JSONStringer.java: -------------------------------------------------------------------------------- 1 | package org.json; 2 | 3 | /* 4 | Copyright (c) 2006 JSON.org 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | The Software shall be used for Good, not Evil. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 24 | SOFTWARE. 25 | */ 26 | 27 | import java.io.StringWriter; 28 | 29 | /** 30 | * JSONStringer provides a quick and convenient way of producing JSON text. 31 | * The texts produced strictly conform to JSON syntax rules. No whitespace is 32 | * added, so the results are ready for transmission or storage. Each instance of 33 | * JSONStringer can produce one JSON text. 34 | *

35 | * A JSONStringer instance provides a value method for appending 36 | * values to the 37 | * text, and a key 38 | * method for adding keys before values in objects. There are array 39 | * and endArray methods that make and bound array values, and 40 | * object and endObject methods which make and bound 41 | * object values. All of these methods return the JSONWriter instance, 42 | * permitting cascade style. For example,

43 |  * myString = new JSONStringer()
44 |  *     .object()
45 |  *         .key("JSON")
46 |  *         .value("Hello, World!")
47 |  *     .endObject()
48 |  *     .toString();
which produces the string
49 |  * {"JSON":"Hello, World!"}
50 | *

51 | * The first method called must be array or object. 52 | * There are no methods for adding commas or colons. JSONStringer adds them for 53 | * you. Objects and arrays can be nested up to 20 levels deep. 54 | *

55 | * This can sometimes be easier than using a JSONObject to build a string. 56 | * @author JSON.org 57 | * @version 2008-09-18 58 | */ 59 | public class JSONStringer extends JSONWriter { 60 | /** 61 | * Make a fresh JSONStringer. It can be used to build one JSON text. 62 | */ 63 | public JSONStringer() { 64 | super(new StringWriter()); 65 | } 66 | 67 | /** 68 | * Return the JSON text. This method is used to obtain the product of the 69 | * JSONStringer instance. It will return null if there was a 70 | * problem in the construction of the JSON text (such as the calls to 71 | * array were not properly balanced with calls to 72 | * endArray). 73 | * @return The JSON text. 74 | */ 75 | public String toString() { 76 | return this.mode == 'd' ? this.writer.toString() : null; 77 | } 78 | } 79 | -------------------------------------------------------------------------------- /JsonToJava-Lib/src/org/json/Property.java: -------------------------------------------------------------------------------- 1 | package org.json; 2 | 3 | /* 4 | Copyright (c) 2002 JSON.org 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | The Software shall be used for Good, not Evil. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 24 | SOFTWARE. 25 | */ 26 | 27 | import java.util.Enumeration; 28 | import java.util.Iterator; 29 | import java.util.Properties; 30 | 31 | /** 32 | * Converts a Property file data into JSONObject and back. 33 | * @author JSON.org 34 | * @version 2013-05-23 35 | */ 36 | public class Property { 37 | /** 38 | * Converts a property file object into a JSONObject. The property file object is a table of name value pairs. 39 | * @param properties java.util.Properties 40 | * @return JSONObject 41 | * @throws JSONException 42 | */ 43 | public static JSONObject toJSONObject(java.util.Properties properties) throws JSONException { 44 | JSONObject jo = new JSONObject(); 45 | if (properties != null && !properties.isEmpty()) { 46 | Enumeration enumProperties = properties.propertyNames(); 47 | while(enumProperties.hasMoreElements()) { 48 | String name = (String)enumProperties.nextElement(); 49 | jo.put(name, properties.getProperty(name)); 50 | } 51 | } 52 | return jo; 53 | 54 | } 55 | 56 | /** 57 | * Converts the JSONObject into a property file object. 58 | * @param jo JSONObject 59 | * @return java.util.Properties 60 | * @throws JSONException 61 | */ 62 | public static Properties toProperties(JSONObject jo) throws JSONException { 63 | Properties properties = new Properties(); 64 | if (jo != null) { 65 | Iterator keys = jo.keys(); 66 | 67 | while (keys.hasNext()) { 68 | String name = keys.next().toString(); 69 | properties.put(name, jo.getString(name)); 70 | } 71 | } 72 | return properties; 73 | } 74 | } -------------------------------------------------------------------------------- /JsonToJava-Lib/src/org/json/zip/BitReader.java: -------------------------------------------------------------------------------- 1 | package org.json.zip; 2 | 3 | import java.io.IOException; 4 | 5 | public interface BitReader { 6 | /** 7 | * Read one bit. 8 | * 9 | * @return true if it is a 1 bit. 10 | */ 11 | public boolean bit() throws IOException; 12 | 13 | /** 14 | * Returns the number of bits that have been read from this bitreader. 15 | * 16 | * @return The number of bits read so far. 17 | */ 18 | public long nrBits(); 19 | 20 | /** 21 | * Check that the rest of the block has been padded with zeroes. 22 | * 23 | * @param factor 24 | * The size in bits of the block to pad. This will typically be 25 | * 8, 16, 32, 64, 128, 256, etc. 26 | * @return true if the block was zero padded, or false if the the padding 27 | * contained any one bits. 28 | * @throws IOException 29 | */ 30 | public boolean pad(int factor) throws IOException; 31 | 32 | /** 33 | * Read some bits. 34 | * 35 | * @param width 36 | * The number of bits to read. (0..32) 37 | * @throws IOException 38 | * @return the bits 39 | */ 40 | public int read(int width) throws IOException; 41 | } 42 | -------------------------------------------------------------------------------- /JsonToJava-Lib/src/org/json/zip/BitWriter.java: -------------------------------------------------------------------------------- 1 | package org.json.zip; 2 | 3 | import java.io.IOException; 4 | 5 | /** 6 | * A bitwriter is a an interface that allows for doing output at the bit level. 7 | * Most IO interfaces only allow for writing at the byte level or higher. 8 | */ 9 | public interface BitWriter { 10 | /** 11 | * Returns the number of bits that have been written to this bitwriter. 12 | */ 13 | public long nrBits(); 14 | 15 | /** 16 | * Write a 1 bit. 17 | * 18 | * @throws IOException 19 | */ 20 | public void one() throws IOException; 21 | 22 | /** 23 | * Pad the rest of the block with zeros and flush. 24 | * 25 | * @param factor 26 | * The size in bits of the block to pad. This will typically be 27 | * 8, 16, 32, 64, 128, 256, etc. 28 | * @return true if the block was zero padded, or false if the the padding 29 | * contains any one bits. 30 | * @throws IOException 31 | */ 32 | public void pad(int factor) throws IOException; 33 | 34 | /** 35 | * Write some bits. Up to 32 bits can be written at a time. 36 | * 37 | * @param bits 38 | * The bits to be written. 39 | * @param width 40 | * The number of bits to write. (0..32) 41 | * @throws IOException 42 | */ 43 | public void write(int bits, int width) throws IOException; 44 | 45 | /** 46 | * Write a 0 bit. 47 | * 48 | * @throws IOException 49 | */ 50 | public void zero() throws IOException; 51 | } 52 | -------------------------------------------------------------------------------- /JsonToJava-Lib/src/org/json/zip/Keep.java: -------------------------------------------------------------------------------- 1 | package org.json.zip; 2 | 3 | 4 | /* 5 | Copyright (c) 2013 JSON.org 6 | 7 | Permission is hereby granted, free of charge, to any person obtaining a copy 8 | of this software and associated documentation files (the "Software"), to deal 9 | in the Software without restriction, including without limitation the rights 10 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | copies of the Software, and to permit persons to whom the Software is 12 | furnished to do so, subject to the following conditions: 13 | 14 | The above copyright notice and this permission notice shall be included in all 15 | copies or substantial portions of the Software. 16 | 17 | The Software shall be used for Good, not Evil. 18 | 19 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 20 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 21 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 22 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 23 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 24 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 25 | SOFTWARE. 26 | */ 27 | 28 | /** 29 | * A keep is a data structure that associates strings (or substrings) with 30 | * numbers. This allows the sending of small integers instead of strings. 31 | * 32 | * @author JSON.org 33 | * @version 2013-04-18 34 | */ 35 | abstract class Keep implements None, PostMortem { 36 | protected int capacity; 37 | protected int length; 38 | protected int power; 39 | protected long[] uses; 40 | 41 | public Keep(int bits) { 42 | this.capacity = JSONzip.twos[bits]; 43 | this.length = 0; 44 | this.power = 0; 45 | this.uses = new long[this.capacity]; 46 | } 47 | 48 | /** 49 | * When an item ages, its use count is reduced by at least half. 50 | * 51 | * @param use 52 | * The current use count of an item. 53 | * @return The new use count for that item. 54 | */ 55 | public static long age(long use) { 56 | return use >= 32 ? 16 : use / 2; 57 | } 58 | 59 | /** 60 | * Return the number of bits required to contain an integer based on the 61 | * current length of the keep. As the keep fills up, the number of bits 62 | * required to identify one of its items goes up. 63 | */ 64 | public int bitsize() { 65 | while (JSONzip.twos[this.power] < this.length) { 66 | this.power += 1; 67 | } 68 | return this.power; 69 | } 70 | 71 | /** 72 | * Increase the usage count on an integer value. 73 | */ 74 | public void tick(int integer) { 75 | this.uses[integer] += 1; 76 | } 77 | 78 | /** 79 | * Get the value associated with an integer. 80 | * @param integer The number of an item in the keep. 81 | * @return The value. 82 | */ 83 | abstract public Object value(int integer); 84 | } 85 | -------------------------------------------------------------------------------- /JsonToJava-Lib/src/org/json/zip/None.java: -------------------------------------------------------------------------------- 1 | package org.json.zip; 2 | 3 | /** 4 | * None is an interface that makes the constant none (short for 5 | * negative one or long for -1) available to any class that implements it. 6 | * The none value is used to stand for an integer that is not an integer, 7 | * such as the negative result of a search. 8 | */ 9 | public interface None { 10 | /** 11 | * Negative One. 12 | */ 13 | public static final int none = -1; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /JsonToJava-Lib/src/org/json/zip/PostMortem.java: -------------------------------------------------------------------------------- 1 | package org.json.zip; 2 | 3 | /* 4 | Copyright (c) 2013 JSON.org 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | The Software shall be used for Good, not Evil. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 24 | SOFTWARE. 25 | */ 26 | 27 | /** 28 | * The PostMortem interface allows for testing the internal state of JSONzip 29 | * processors. Testing that JSONzip can compress an object and reproduce a 30 | * corresponding object is not sufficient. Complete testing requires that the 31 | * same internal data structures were constructed on both ends. If those 32 | * structures are not equivalent, then it is likely that the implementations 33 | * are not correct, even if convention tests are passed. 34 | * 35 | * PostMortem allows for testing of deep structures without breaking 36 | * encapsulation. 37 | */ 38 | public interface PostMortem { 39 | /** 40 | * Determine if two objects are equivalent. 41 | * 42 | * @param pm 43 | * Another object of the same type. 44 | * @return true if they match. 45 | */ 46 | public boolean postMortem(PostMortem pm); 47 | } 48 | -------------------------------------------------------------------------------- /JsonToJava-Lib/src/org/json/zip/README: -------------------------------------------------------------------------------- 1 | FOR EVALUATION PURPOSES ONLY. THIS PACKAGE HAS NOT BEEN TESTED ADEQUATELY FOR 2 | PRODUCTION USE. 3 | -------------------------------------------------------------------------------- /JsonToJava.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonfhancock/jsontojava/18809788d8f05f3cedfe4fa707df7e15d5ff43b5/JsonToJava.jar -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Json2Java 2 | ========= 3 | 4 | I was fed up with writing Java classes to mirror json models. So I wrote this Java app to automate the process. 5 | 6 |

What this tool can do right now:

7 | Give it: 8 |
    9 |
  • a url to a json file
  • 10 |
  • a package name for the classes it will generate
  • 11 |
  • the name of the base class to start with.
  • 12 |
  • optionally, the p option will make your classes parcelable.
  • 13 |
  • optionally, the g option will give your classes gson annotations for serialization.
  • 14 |
  • optionally, the s option will override the toString method.
  • 15 |
16 | 17 | 18 | 19 | It will create the folder structure for the package you provide, then it will read the json at the url you provide, and output java classes into a zip file. 20 | 21 | The easiest way to actuall use this is to go to http://jsontojava.appspot.com/ 22 | There you can just put in the variables and click download. 23 | 24 | When run from the commandline, it looks like this: 25 | 26 | java -jar JsonToJava.jar -url http://example.com/folder.json -package com.example.api.model -class Folder -p -g 27 | 28 | 29 | Each class will implement Parcelable for easy passing of information in Android (optional). 30 | Each class will have a default empty constructor. 31 | The members of each class will follow Android naming conventions with an "m" prefix and camel case. 32 | Each member will have a corresponding static final String that relates it to it's json counterpart 33 | Each member will have a @SerializedName annotation for very easy Gson parsing. (optional) 34 | If a member called "mId" or "mUniqueId" is found, then equals and hashcode will be overridden so comparisons are made on the id. 35 | 36 |

What I want this tool to do in the future in no particular order

37 |
    38 |
  • Accept either a url or a block of json pasted in a text box
  • 39 |
  • Extract superclasses
  • 40 |
  • Accept multiple urls to build up the whole model
  • 41 |
  • Allow the user to choose between Gson annotations, Jackson annotations, org.json constructors and toJson() methods, or none of the above
  • 42 |
  • Give users the ability to rename classes
  • 43 |
  • Give users the ability to ignore classes
  • 44 |
45 | --------------------------------------------------------------------------------