Skip to content

Commit

Permalink
Tidy xsd2raw
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbattle committed May 13, 2024
1 parent 885bb03 commit 012f95e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions xsd2vdm/src/main/java/xsd2vdm/Xsd2Raw.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 012f95e

Please sign in to comment.