View Javadoc

1   /*
2    * @(#) ParseXSDS.java Dec 4, 2004
3    * 
4    * 
5    * Copyright (c) 2003-2005 Delft University of Technology, Jaffalaan 5, 2628 BX
6    * Delft, the Netherlands. All rights reserved.
7    * 
8    * See for project information <a href="http://www.simulation.tudelft.nl/">
9    * www.simulation.tudelft.nl </a>.
10   * 
11   * The source code and binary code of this software is proprietary information
12   * of Delft University of Technology.
13   */
14  package org.gscg.experiment.xsd;
15  
16  import java.util.logging.Level;
17  
18  import nl.tudelft.simulation.logger.Logger;
19  
20  
21  
22  /***
23   * Parses all xsds based on the latest xml information.
24   * 
25   * Copyright (c) 2003-2005 Delft University of Technology, Jaffalaan 5, 2628 BX
26   * Delft, the Netherlands. All rights reserved.
27   * 
28   * See for project information <a href="http://www.simulation.tudelft.nl/">
29   * www.simulation.tudelft.nl </a>.
30   * 
31   * The source code and binary code of this software is proprietary information
32   * of Delft University of Technology.
33   * 
34   * @author <a
35   *         href="http://www.tbm.tudelft.nl/webstaf/stijnh/index.htm">Stijn-Pieter
36   *         van Houten </a>
37   * @version $Revision: 1.1 $ $Date: 2005/06/16 12:34:01 $
38   * @since 1.0.0
39   */
40  public class ParseXSDS
41  {
42  	/***
43  	 * constructs a new ParseXSDS
44  	 */
45  	public ParseXSDS()
46  	{
47  		super();
48  		this.parse();
49  		// quit
50  		System.exit(0);
51  	}
52  
53  	/***
54  	 * starts parsing
55  	 */
56  	private void parse()
57  	{
58  		// we set the default log level to prevent
59  		// showing unimportant warning in the console
60  		Logger.setLogLevel(Level.SEVERE);
61  
62  		// renew the manufacturer XSD
63  		new ManufacturerXSDParser();
64  
65  		// renew the distributor XSD
66  		new DistributorXSDParser();
67  
68  		// renew the market XSD
69  		new MarketXSDParser();
70  
71  		// renew the supplychain script XSD
72  		new ScriptXSDParser();
73  
74  		System.out.println("XSD's have been updated based on latest data");
75  	}
76  
77  	/***
78  	 * Method main
79  	 * 
80  	 * @param args command line arguments
81  	 */
82  	public static void main(final String[] args)
83  	{
84  		new ParseXSDS();
85  	}
86  }