~ubuntu-branches/ubuntu/wily/opencollada/wily-proposed

« back to all changes in this revision

Viewing changes to xsd2cppsax/src/de/netallied/xsd2cppsax/saxfwl/Main.java

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2015-05-14 17:23:27 UTC
  • Revision ID: package-import@ubuntu.com-20150514172327-f862u8envms01fra
Tags: upstream-0.1.0~20140703.ddf8f47+dfsg1
ImportĀ upstreamĀ versionĀ 0.1.0~20140703.ddf8f47+dfsg1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 *   Copyright © 2008-2012 NetAllied Systems GmbH, Ravensburg, Germany. 
 
3
 *       
 
4
 *   Licensed under the MIT Open Source License, 
 
5
 *   for details please see LICENSE file or the website
 
6
 *   http://www.opensource.org/licenses/mit-license.php
 
7
*/
 
8
package de.netallied.xsd2cppsax.saxfwl;
 
9
 
 
10
/**
 
11
 * Entry point for saxfwl generator.
 
12
 * 
 
13
 */
 
14
public class Main {
 
15
 
 
16
    /**
 
17
     * main.
 
18
     * 
 
19
     * @param args
 
20
     *            Commandline args
 
21
     */
 
22
    public static void main(String[] args) {
 
23
        String xmlFile = null;
 
24
        if (args.length != 1) {
 
25
            printUsage();
 
26
            return;
 
27
        } else {
 
28
            xmlFile = args[0];
 
29
        }
 
30
 
 
31
        SaxFWLGen genner = new SaxFWLGen();
 
32
        genner.start(xmlFile);
 
33
    }
 
34
 
 
35
    /**
 
36
     * Prints usage to command line.
 
37
     */
 
38
    public static void printUsage() {
 
39
        System.out.println("saxfwlgen <xml config>");
 
40
    }
 
41
 
 
42
}