diff --git a/xsd2vdm/src/main/java/xsd2vdm/Xsd2Raw.java b/xsd2vdm/src/main/java/xsd2vdm/Xsd2Raw.java index 0c30900..b0f038b 100644 --- a/xsd2vdm/src/main/java/xsd2vdm/Xsd2Raw.java +++ b/xsd2vdm/src/main/java/xsd2vdm/Xsd2Raw.java @@ -69,6 +69,21 @@ else if (args.length == 2) System.exit(1); } + Xsd2Raw xsd2raw = new Xsd2Raw(xsdFile, vdmFile); + xsd2raw.process(); + } + + private final File xsdFile; + private final PrintStream vdmFile; + + public Xsd2Raw(File xsdFile, PrintStream vdmFile) + { + this.xsdFile = xsdFile; + this.vdmFile = vdmFile; + } + + public void process() throws Exception + { Xsd2VDM.loadProperties(xsdFile); SAXParserFactory factory = SAXParserFactory.newInstance(); SAXParser saxParser = factory.newSAXParser();