Skip to content

Commit

Permalink
add new installation
Browse files Browse the repository at this point in the history
Upload JSONExport.app to installation.
  • Loading branch information
RivailleAckerman authored and RivailleAckerman committed Sep 19, 2016
1 parent d7f4ca2 commit e9e727e
Show file tree
Hide file tree
Showing 38 changed files with 2,505 additions and 0 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
54 changes: 54 additions & 0 deletions JSONExport.app/Contents/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BuildMachineOSBuild</key>
<string>15G1004</string>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>JSONExport</string>
<key>CFBundleIconFile</key>
<string>AppIcon</string>
<key>CFBundleIdentifier</key>
<string>ahmed.ali.JSONExport</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>JSONExport</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0.3</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>MacOSX</string>
</array>
<key>CFBundleVersion</key>
<string>1</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string>8A218a</string>
<key>DTPlatformVersion</key>
<string>GM</string>
<key>DTSDKBuild</key>
<string>16A300</string>
<key>DTSDKName</key>
<string>macosx10.12</string>
<key>DTXcode</key>
<string>0800</string>
<key>DTXcodeBuild</key>
<string>8A218a</string>
<key>LSMinimumSystemVersion</key>
<string>10.10</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2014 Ahmed Ali. All rights reserved.</string>
<key>NSMainStoryboardFile</key>
<string>Main</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
</dict>
</plist>
Binary file added JSONExport.app/Contents/MacOS/JSONExport
Binary file not shown.
1 change: 1 addition & 0 deletions JSONExport.app/Contents/PkgInfo
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
APPL????
Binary file added JSONExport.app/Contents/Resources/AppIcon.icns
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
69 changes: 69 additions & 0 deletions JSONExport.app/Contents/Resources/Java-Android Gson.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"langName": "Java",
"displayLangName": "Java Gson for Android",
"briefDescription" : "Defines how your JSON objects can be mapped to Java classes using Android's org.json JSONObject.",
"fileExtension": "java",
"genericType": "Object",
"arrayType": "<!ElementType!>[]",
"dataTypes": {
"intType": "int",
"boolType": "boolean",
"characterType": "char",
"floatType": "float",
"longType": "long",
"doubleType": "double",
"stringType": "String"
},
"supportsFirstLineStatement" : "true",
"firstLineHint" : "Package name",
"staticImports": "import org.json.*;\nimport java.util.*;\nimport com.google.gson.annotations.SerializedName;\n",
"importForEachCustomType": "",
"modelDefinition": "\npublic class <!ModelName!>",
"modelDefinitionWithParent" : "\npublic class <!ModelName!> extends <!ParentClass!>",
"modelStart": "{\n",
"modelEnd": "\n}",
"instanceVarDefinition": "\t@SerializedName(\"<!JsonKeyName!>\")\n\tprivate <!VarType!> <!VarName!>;\n",
"setter" : "\tpublic void set<!CapitalizedVarName!>(<!VarType!> <!VarName!>){\n\t\tthis.<!VarName!> = <!VarName!>;\n\t}\n",
"getter" : "\tpublic <!VarType!> get<!CapitalizedVarName!>(){\n\t\treturn this.<!VarName!>;\n\t}\n",
"booleanGetter" : "\tpublic <!VarType!> is<!CapitalizedVarName!>()\n\t{\n\t\treturn this.<!VarName!>;\n\t}\n",
"reservedKeywords" : ["abstract", "assert", "boolean", "break", "byte", "case", "catch", "char", "class", "const", "continue", "default", "do", "double", "else", "enum", "extends", "false", "final", "finally", "float", "for", "goto", "if", "implements", "import", "instanceof", "int", "interface", "long", "native", "new", "null", "package", "private", "protected", "public", "return", "short", "static", "strictfp", "super", "switch", "synchronized", "this", "throw", "throws", "transient", "true", "try", "void", "volatile", "while"],
"wordsToRemoveToGetArrayElementsType": [
"[",
"]"
],
"basicTypesWithSpecialFetchingNeeds" : [
"Object",
"String"
],
"basicTypesWithSpecialFetchingNeedsReplacements" : [

"",""
],
"constructors": [
{
"comment": "\t/**\n\t * Instantiate the instance using the passed jsonObject to set the properties values\n\t */\n",
"signature": "\tpublic <!ModelName!>(JSONObject jsonObject)",
"bodyStart": "{\n\t\tif(jsonObject == null){\n\t\t\treturn;\n\t\t}\n",
"bodyEnd": "\t}\n",
"fetchBasicTypePropertyFromMap": "\t\t<!VarName!> = jsonObject.opt<!CapitalizedVarType!>(\"<!JsonKeyName!>\");\n",
"fetchArrayOfBasicTypePropertyFromMap" : "\t\tJSONArray <!VarName!>Tmp = jsonObject.optJSONArray(\"<!JsonKeyName!>\");\n\t\tif(<!VarName!>Tmp != null){\n\t\t\t<!VarName!> = new <!ElementType!>[<!VarName!>Tmp.length()];\n\t\t\tfor(int i = 0; i < <!VarName!>Tmp.length(); i++){\n\t\t\t\t<!VarName!>[i] = <!VarName!>Tmp.get(i);\n\t\t\t}\n\t\t}\n",
"fetchBasicTypeWithSpecialNeedsPropertyFromMap": "\t\t<!VarName!> = jsonObject.opt<!VarBasicTypeReplacement!>(\"<!JsonKeyName!>\");\n",
"fetchCustomTypePropertyFromMap": "\t\t<!VarName!> = new <!VarType!>(jsonObject.optJSONObject(\"<!JsonKeyName!>\"));\n",
"fetchArrayOfCustomTypePropertyFromMap": "\t\tJSONArray <!VarName!>JsonArray = jsonObject.optJSONArray(\"<!JsonKeyName!>\");\n\t\tif(<!VarName!>JsonArray != null){\n\t\t\tArrayList<<!ElementType!>> <!VarName!>ArrayList = new ArrayList<>();\n\t\t\tfor (int i = 0; i < <!VarName!>JsonArray.length(); i++) {\n\t\t\t\tJSONObject <!VarName!>Object = <!VarName!>JsonArray.optJSONObject(i);\n\t\t\t\t<!VarName!>ArrayList.add(new <!ElementType!>(<!VarName!>Object));\n\t\t\t}\n\t\t\t<!VarName!> = (<!ElementType!>[]) <!VarName!>ArrayList.toArray();\n\t\t}"
}
],
"utilityMethods": [
{
"comment": "\t/**\n\t * Returns all the available property values in the form of JSONObject instance where the key is the approperiate json key and the value is the value of the corresponding field\n\t */\n",
"signature": "\tpublic JSONObject toJsonObject()",
"bodyStart": "\n\t{\n",
"bodyEnd": "\t}\n",
"body": "\t\tJSONObject jsonObject = new JSONObject();\n\t\ttry {\n",
"forEachProperty": "\t\t\tjsonObject.put(\"<!JsonKeyName!>\", <!VarName!>);\n",
"forEachCustomTypeProperty" : "\t\t\tjsonObject.put(\"<!JsonKeyName!>\", <!VarName!>.toJsonObject());\n",

"forEachArrayOfCustomTypeProperty": "\t\t\tif(<!VarName!> != null && <!VarName!>.length > 0){\n\t\t\t\tJSONArray <!VarName!>JsonArray = new JSONArray();\n\t\t\t\tfor(<!ElementType!> <!VarName!>Element : <!VarName!>){\n\t\t\t\t\t<!VarName!>JsonArray.put(<!VarName!>Element.toJsonObject());\n\t\t\t\t}\n\t\t\t\tjsonObject.put(\"<!JsonKeyName!>\", <!VarName!>JsonArray);\n\t\t\t}\n",
"returnStatement": "\t\t} catch (JSONException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn jsonObject;\n"
}
]
}
69 changes: 69 additions & 0 deletions JSONExport.app/Contents/Resources/Java-Android Realm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"langName": "Java-Realm",
"displayLangName": "Java Realm for Android",
"briefDescription" : "Defines how your JSON objects can be mapped to Java classes using Android's org.json JSONObject with support to Realm.",
"fileExtension": "java",
"genericType": "Object",
"arrayType": "RealmList<<!ElementType!>>",
"dataTypes": {
"intType": "int",
"boolType": "boolean",
"characterType": "char",
"floatType": "float",
"longType": "long",
"doubleType": "double",
"stringType": "String"
},
"supportsFirstLineStatement" : "true",
"firstLineHint" : "Package name",
"staticImports": "import org.json.*;\nimport io.realm.*;\nimport io.realm.annotations.*;\n",
"importForEachCustomType": "",
"modelDefinition": "\n@RealmClass\npublic class <!ModelName!> extends RealmObject",
"modelDefinitionWithParent" : "\npublic class <!ModelName!> extends <!ParentClass!>",
"modelStart": "{\n",
"modelEnd": "\n}",
"instanceVarDefinition": "\tprivate <!VarType!> <!VarName!>;\n",
"setter" : "\tpublic void set<!CapitalizedVarName!>(<!VarType!> <!VarName!>){\n\t\tthis.<!VarName!> = <!VarName!>;\n\t}\n",
"getter" : "\tpublic <!VarType!> get<!CapitalizedVarName!>(){\n\t\treturn this.<!VarName!>;\n\t}\n",
"booleanGetter" : "\tpublic <!VarType!> is<!CapitalizedVarName!>()\n\t{\n\t\treturn this.<!VarName!>;\n\t}\n",
"reservedKeywords" : ["abstract", "assert", "boolean", "break", "byte", "case", "catch", "char", "class", "const", "continue", "default", "do", "double", "else", "enum", "extends", "false", "final", "finally", "float", "for", "goto", "if", "implements", "import", "instanceof", "int", "interface", "long", "native", "new", "null", "package", "private", "protected", "public", "return", "short", "static", "strictfp", "super", "switch", "synchronized", "this", "throw", "throws", "transient", "true", "try", "void", "volatile", "while"],
"wordsToRemoveToGetArrayElementsType": [
"RealmList",
"<",
">"
],
"basicTypesWithSpecialFetchingNeeds" : [
"Object", "String"
],
"basicTypesWithSpecialFetchingNeedsReplacements" : [

"", ""
],
"constructors": [
{
"comment": "\t/**\n\t * Creates instance using the passed realm and jsonObject to set the properties values\n\t */\n",
"signature": "\tpublic static <!ModelName!> fromJson(Realm realm, JSONObject jsonObject)",
"bodyStart": "{\n\t\tif(jsonObject == null){\n\t\t\treturn null;\n\t\t}\n\t\t<!ModelName!> <!LowerCaseModelName!> = realm.createObject(<!ModelName!>.class);\n",
"bodyEnd": "\t\treturn <!LowerCaseModelName!>;\n\t}\n",
"fetchBasicTypePropertyFromMap": "\t\t<!LowerCaseModelName!>.<!VarName!> = jsonObject.opt<!CapitalizedVarType!>(\"<!JsonKeyName!>\");\n",
"fetchArrayOfBasicTypePropertyFromMap" : "\t\tJSONArray <!VarName!>Tmp = jsonObject.optJSONArray(\"<!JsonKeyName!>\");\n\t\tif(<!VarName!>Tmp != null){\n\t\t\t<!VarName!> = new <!ElementType!>[<!VarName!>Tmp.length()];\n\t\t\tfor(int i = 0; i < <!VarName!>Tmp.length(); i++){\n\t\t\t\t<!VarName!>[i] = <!VarName!>Tmp.get(i);\n\t\t\t}\n\t\t}\n",
"fetchBasicTypeWithSpecialNeedsPropertyFromMap": "\t\t<!LowerCaseModelName!>.<!VarName!> = jsonObject.opt<!VarBasicTypeReplacement!>(\"<!JsonKeyName!>\");\n",
"fetchCustomTypePropertyFromMap": "\t\t<!LowerCaseModelName!>.<!VarName!> = <!VarType!>.fromJson(realm, jsonObject.optJSONObject(\"<!JsonKeyName!>\"));\n",
"fetchArrayOfCustomTypePropertyFromMap": "\t\tJSONArray <!VarName!>JsonArray = jsonObject.optJSONArray(\"<!JsonKeyName!>\");\n\t\tif(<!VarName!>JsonArray != null){\n\t\t\tfor (int i = 0; i < <!VarName!>JsonArray.length(); i++) {\n\t\t\t\tJSONObject <!VarName!>Object = <!VarName!>JsonArray.optJSONObject(i);\n\t\t\t\t<!ElementType!> <!VarName!>Value = <!ElementType!>.fromJson(realm, <!VarName!>Object);\n\t\t\t\tif(<!VarName!>Value != null){\n\t\t\t\t\t<!LowerCaseModelName!>.get<!CapitalizedVarName!>().add(<!VarName!>Value);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n"
}
],
"utilityMethods": [
{
"comment": "\t/**\n\t * Returns all the available property values in the form of JSONObject instance where the key is the approperiate json key and the value is the value of the corresponding field\n\t */\n",
"signature": "\tpublic static JSONObject toJsonObject(<!ModelName!> <!LowerCaseModelName!>)",
"bodyStart": "\n\t{\n",
"bodyEnd": "\t}\n",
"body": "\t\tJSONObject jsonObject = new JSONObject();\n\t\ttry {\n",
"forEachProperty": "\t\t\tjsonObject.put(\"<!JsonKeyName!>\", <!LowerCaseModelName!>.<!VarName!>);\n",
"forEachCustomTypeProperty" : "\t\t\tjsonObject.put(\"<!JsonKeyName!>\", <!VarType!>.toJsonObject(<!LowerCaseModelName!>.<!VarName!>));\n",

"forEachArrayOfCustomTypeProperty": "\t\t\tif(<!LowerCaseModelName!>.<!VarName!> != null && <!LowerCaseModelName!>.<!VarName!>.size() > 0){\n\t\t\t\tJSONArray <!VarName!>JsonArray = new JSONArray();\n\t\t\t\tfor(<!ElementType!> <!VarName!>Element : <!LowerCaseModelName!>.<!VarName!>){\n\t\t\t\t\t<!VarName!>JsonArray.put(<!ElementType!>.toJsonObject(<!VarName!>Element));\n\t\t\t\t}\n\t\t\t\tjsonObject.put(\"<!JsonKeyName!>\", <!VarName!>JsonArray);\n\t\t\t}\n",
"returnStatement": "\t\t} catch (JSONException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn jsonObject;\n"
}
]
}
69 changes: 69 additions & 0 deletions JSONExport.app/Contents/Resources/Java-Android.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"langName": "Java",
"displayLangName": "Java for Android",
"briefDescription" : "Defines how your JSON objects can be mapped to Java classes using Android's org.json JSONObject.",
"fileExtension": "java",
"genericType": "Object",
"arrayType": "<!ElementType!>[]",
"dataTypes": {
"intType": "int",
"boolType": "boolean",
"characterType": "char",
"floatType": "float",
"longType": "long",
"doubleType": "double",
"stringType": "String"
},
"supportsFirstLineStatement" : "true",
"firstLineHint" : "Package name",
"staticImports": "import org.json.*;\nimport java.util.*;\n",
"importForEachCustomType": "",
"modelDefinition": "\npublic class <!ModelName!>",
"modelDefinitionWithParent" : "\npublic class <!ModelName!> extends <!ParentClass!>",
"modelStart": "{\n",
"modelEnd": "\n}",
"instanceVarDefinition": "\tprivate <!VarType!> <!VarName!>;\n",
"setter" : "\tpublic void set<!CapitalizedVarName!>(<!VarType!> <!VarName!>){\n\t\tthis.<!VarName!> = <!VarName!>;\n\t}\n",
"getter" : "\tpublic <!VarType!> get<!CapitalizedVarName!>(){\n\t\treturn this.<!VarName!>;\n\t}\n",
"booleanGetter" : "\tpublic <!VarType!> is<!CapitalizedVarName!>()\n\t{\n\t\treturn this.<!VarName!>;\n\t}\n",
"reservedKeywords" : ["abstract", "assert", "boolean", "break", "byte", "case", "catch", "char", "class", "const", "continue", "default", "do", "double", "else", "enum", "extends", "false", "final", "finally", "float", "for", "goto", "if", "implements", "import", "instanceof", "int", "interface", "long", "native", "new", "null", "package", "private", "protected", "public", "return", "short", "static", "strictfp", "super", "switch", "synchronized", "this", "throw", "throws", "transient", "true", "try", "void", "volatile", "while"],
"wordsToRemoveToGetArrayElementsType": [
"[",
"]"
],
"basicTypesWithSpecialFetchingNeeds" : [
"Object",
"String"
],
"basicTypesWithSpecialFetchingNeedsReplacements" : [

"",""
],
"constructors": [
{
"comment": "\t/**\n\t * Instantiate the instance using the passed jsonObject to set the properties values\n\t */\n",
"signature": "\tpublic <!ModelName!>(JSONObject jsonObject)",
"bodyStart": "{\n\t\tif(jsonObject == null){\n\t\t\treturn;\n\t\t}\n",
"bodyEnd": "\t}\n",
"fetchBasicTypePropertyFromMap": "\t\t<!VarName!> = jsonObject.opt<!CapitalizedVarType!>(\"<!JsonKeyName!>\");\n",
"fetchArrayOfBasicTypePropertyFromMap" : "\t\tJSONArray <!VarName!>Tmp = jsonObject.optJSONArray(\"<!JsonKeyName!>\");\n\t\tif(<!VarName!>Tmp != null){\n\t\t\t<!VarName!> = new <!ElementType!>[<!VarName!>Tmp.length()];\n\t\t\tfor(int i = 0; i < <!VarName!>Tmp.length(); i++){\n\t\t\t\t<!VarName!>[i] = <!VarName!>Tmp.get(i);\n\t\t\t}\n\t\t}\n",
"fetchBasicTypeWithSpecialNeedsPropertyFromMap": "\t\t<!VarName!> = jsonObject.opt<!VarBasicTypeReplacement!>(\"<!JsonKeyName!>\");\n",
"fetchCustomTypePropertyFromMap": "\t\t<!VarName!> = new <!VarType!>(jsonObject.optJSONObject(\"<!JsonKeyName!>\"));\n",
"fetchArrayOfCustomTypePropertyFromMap": "\t\tJSONArray <!VarName!>JsonArray = jsonObject.optJSONArray(\"<!JsonKeyName!>\");\n\t\tif(<!VarName!>JsonArray != null){\n\t\t\tArrayList<<!ElementType!>> <!VarName!>ArrayList = new ArrayList<>();\n\t\t\tfor (int i = 0; i < <!VarName!>JsonArray.length(); i++) {\n\t\t\t\tJSONObject <!VarName!>Object = <!VarName!>JsonArray.optJSONObject(i);\n\t\t\t\t<!VarName!>ArrayList.add(new <!ElementType!>(<!VarName!>Object));\n\t\t\t}\n\t\t\t<!VarName!> = (<!ElementType!>[]) <!VarName!>ArrayList.toArray();\n\t\t}"
}
],
"utilityMethods": [
{
"comment": "\t/**\n\t * Returns all the available property values in the form of JSONObject instance where the key is the approperiate json key and the value is the value of the corresponding field\n\t */\n",
"signature": "\tpublic JSONObject toJsonObject()",
"bodyStart": "\n\t{\n",
"bodyEnd": "\t}\n",
"body": "\t\tJSONObject jsonObject = new JSONObject();\n\t\ttry {\n",
"forEachProperty": "\t\t\tjsonObject.put(\"<!JsonKeyName!>\", <!VarName!>);\n",
"forEachCustomTypeProperty" : "\t\t\tjsonObject.put(\"<!JsonKeyName!>\", <!VarName!>.toJsonObject());\n",

"forEachArrayOfCustomTypeProperty": "\t\t\tif(<!VarName!> != null && <!VarName!>.length > 0){\n\t\t\t\tJSONArray <!VarName!>JsonArray = new JSONArray();\n\t\t\t\tfor(<!ElementType!> <!VarName!>Element : <!VarName!>){\n\t\t\t\t\t<!VarName!>JsonArray.put(<!VarName!>Element.toJsonObject());\n\t\t\t\t}\n\t\t\t\tjsonObject.put(\"<!JsonKeyName!>\", <!VarName!>JsonArray);\n\t\t\t}\n",
"returnStatement": "\t\t} catch (JSONException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn jsonObject;\n"
}
]
}
Loading

0 comments on commit e9e727e

Please sign in to comment.