@Test public void test() throws IOException { Generator.main(new String[] {"--prefix", "org.jsonx.invoice", "-d", destDir.getAbsolutePath(), getFile("account.jsdx").getAbsolutePath()}); }
@SuppressWarnings("null") public static void main(final String[] args) throws IOException { if (args.length == 0 || args[0] == null || args[0].length() == 0) trapPrintUsage(); String prefix = ""; File destDir = null; File schemaFile = null; for (int i = 0; i < args.length; ++i) { if ("--prefix".equals(args[i])) prefix = args[++i]; else if ("-d".equals(args[i])) destDir = new File(args[++i]).getAbsoluteFile(); else schemaFile = new File(args[i]).getAbsoluteFile(); } if (schemaFile == null) trapPrintUsage(); SchemaElement.parse(schemaFile.toURI().toURL(), prefix).toSource(destDir); }
Generator { @SuppressWarnings("null") public static void main(final String[] args) throws IOException { if (args.length == 0 || args[0] == null || args[0].length() == 0) trapPrintUsage(); String prefix = ""; File destDir = null; File schemaFile = null; for (int i = 0; i < args.length; ++i) { if ("--prefix".equals(args[i])) prefix = args[++i]; else if ("-d".equals(args[i])) destDir = new File(args[++i]).getAbsoluteFile(); else schemaFile = new File(args[i]).getAbsoluteFile(); } if (schemaFile == null) trapPrintUsage(); SchemaElement.parse(schemaFile.toURI().toURL(), prefix).toSource(destDir); } }
Generator { @SuppressWarnings("null") public static void main(final String[] args) throws IOException { if (args.length == 0 || args[0] == null || args[0].length() == 0) trapPrintUsage(); String prefix = ""; File destDir = null; File schemaFile = null; for (int i = 0; i < args.length; ++i) { if ("--prefix".equals(args[i])) prefix = args[++i]; else if ("-d".equals(args[i])) destDir = new File(args[++i]).getAbsoluteFile(); else schemaFile = new File(args[i]).getAbsoluteFile(); } if (schemaFile == null) trapPrintUsage(); SchemaElement.parse(schemaFile.toURI().toURL(), prefix).toSource(destDir); } private  Generator(); }
Generator { @SuppressWarnings("null") public static void main(final String[] args) throws IOException { if (args.length == 0 || args[0] == null || args[0].length() == 0) trapPrintUsage(); String prefix = ""; File destDir = null; File schemaFile = null; for (int i = 0; i < args.length; ++i) { if ("--prefix".equals(args[i])) prefix = args[++i]; else if ("-d".equals(args[i])) destDir = new File(args[++i]).getAbsoluteFile(); else schemaFile = new File(args[i]).getAbsoluteFile(); } if (schemaFile == null) trapPrintUsage(); SchemaElement.parse(schemaFile.toURI().toURL(), prefix).toSource(destDir); } private  Generator(); @SuppressWarnings("null") static void main(final String[] args); }
Generator { @SuppressWarnings("null") public static void main(final String[] args) throws IOException { if (args.length == 0 || args[0] == null || args[0].length() == 0) trapPrintUsage(); String prefix = ""; File destDir = null; File schemaFile = null; for (int i = 0; i < args.length; ++i) { if ("--prefix".equals(args[i])) prefix = args[++i]; else if ("-d".equals(args[i])) destDir = new File(args[++i]).getAbsoluteFile(); else schemaFile = new File(args[i]).getAbsoluteFile(); } if (schemaFile == null) trapPrintUsage(); SchemaElement.parse(schemaFile.toURI().toURL(), prefix).toSource(destDir); } private  Generator(); @SuppressWarnings("null") static void main(final String[] args);  }