01: // This file is part of KeY - Integrated Deductive Software Design
02: // Copyright (C) 2001-2007 Universitaet Karlsruhe, Germany
03: // Universitaet Koblenz-Landau, Germany
04: // Chalmers University of Technology, Sweden
05: //
06: // The KeY system is protected by the GNU General Public License.
07: // See LICENSE.TXT for details.
08: //This file is part of KeY - Integrated Deductive Software Design
09: //Copyright (C) 2001-2003 Universitaet Karlsruhe, Germany
10: // and Chalmers University of Technology, Sweden
11: //
12: //The KeY system is protected by the GNU General Public License.
13: //See LICENSE.TXT for details.
14: //
15:
16: package de.uka.ilkd.key.rule.export.html;
17:
18: import de.uka.ilkd.key.rule.export.RuleExportModel;
19:
20: public class HTMLTacletExporter {
21: private RuleExportModel model = null;
22:
23: public HTMLTacletExporter() {
24: }
25:
26: public void setModel(RuleExportModel model) {
27: this .model = model;
28: }
29:
30: public RuleExportModel getModel() {
31: return model;
32: }
33:
34: public void run(String outputDir) {
35: HTMLModel htmlModel = new HTMLModel(outputDir);
36: HTMLContainer htmlContainer = htmlModel;
37:
38: HTMLFileIndex index = new HTMLFileIndex(htmlModel,
39: htmlContainer);
40: HTMLFileByRuleSet byRuleSet = new HTMLFileByRuleSet(htmlModel,
41: htmlContainer);
42: HTMLFileByDisplayName byDisplayName = new HTMLFileByDisplayName(
43: htmlModel, htmlContainer);
44: HTMLFileByRuleName byRuleName = new HTMLFileByRuleName(
45: htmlModel, htmlContainer);
46: HTMLFileByOption byChoice = new HTMLFileByOption(htmlModel,
47: htmlContainer);
48:
49: htmlModel.initAllFiles(model);
50:
51: htmlModel.writeAllFiles();
52: }
53:
54: }
|