Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
55 lines (49 loc) · 1.71 KB

File metadata and controls

55 lines (49 loc) · 1.71 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package com.jsontojava;
import java.io.IOException;
public class Main {
private static final String OPTION_PACKAGE = "package";
private static final String OPTION_URL = "url";
private static final String OPTION_ROOT = "class";
private static final String OPTION_GSON = "g";
private static final String OPTION_PARCELABLE = "p";
// /**
// * @param args
// * @throws IOException
// */
// public static void main(String[] args) throws IOException {
// Options options = createOptions();
//
// CommandLineParser parser = new BasicParser();
// CommandLine cmd = parser.parse( options, args);
// JsonToJava jsonToJava = new JsonToJava();
//
// jsonToJava.setUrl(cmd.getOptionValue(OPTION_URL));
// jsonToJava.setPackage(cmd.getOptionValue(OPTION_PACKAGE));
// jsonToJava.setBaseType(cmd.getOptionValue(OPTION_ROOT));
//
// jsonToJava.fetchJson();
// jsonToJava.outputZipFile();
//
//
// }
//
//
//
// private static Options createOptions(){
// Options options = new Options();
// options.addOption(OPTION_PARCELABLE, false, "Enabled implementation of Parcelable for all classes generated");
// options.addOption(OPTION_GSON,false,"Enables Gson annotations");
// Option rootClass = OptionBuilder.hasArg().isRequired().withDescription("The name of the root class of the feed you are parsing").create(OPTION_ROOT);
// options.addOption(rootClass);
// Option url = OptionBuilder.hasArg().isRequired().withDescription("The url of the json feed you want to parse").create(OPTION_URL);
// options.addOption(url);
// Option pack = OptionBuilder.hasArg().isRequired().withDescription("The package name for the generated classes").create(OPTION_PACKAGE);
// options.addOption(pack);
//
// return options;
//
//
// }
//
//
}
Morty Proxy This is a proxified and sanitized view of the page, visit original site.