@Test @Ignore public void ExportSet() throws UnsupportedEncodingException, FileNotFoundException, InvalidMarkupException, IOException{ new ExportRunner(loadPrivate("testset")).Export(); }
public void Export() throws IOException, InvalidMarkupException { List<InfobaseSetPlugin> plugins = new ArrayList<InfobaseSetPlugin>(); plugins.add(new ExportStructure(createProvider())); plugins.add(new ApplyProcessor(new MultiRunner(new FixHttpLinks(), new LinkMapper(this.set), new PullElements(this.set)))); plugins.add(new RenameFiles()); plugins.add(new ResolveHyperlinks()); if (!Boolean.FALSE.equals(set.getBool("export_inventory"))) { plugins.add(new ExportInventory()); } if (!Boolean.FALSE.equals(set.getBool("use_highslide"))) { plugins.add(new ApplyProcessor(new MultiRunner(new Notes(), new Popups()))); } plugins.add(new ApplyProcessor(new FauxTabs(this.set))); plugins.add(new ApplyProcessor(new MultiRunner(new CleanupSlxStuff(EnumSet.of( CleanupSlxStuff.CleanupOptions.DropTypeAttr, CleanupSlxStuff.CleanupOptions.RenameBookmarks, CleanupSlxStuff.CleanupOptions.RenameRecordToDiv)), new ReplaceUnderline(), new SplitSelfClosingTags(), new HtmlTidy()))); plugins.add(new ExportCssFile()); if (!Boolean.FALSE.equals(set.getBool("export_hidden_text"))) { plugins.add(new ExportHiddenText()); } if (!Boolean.FALSE.equals(set.getBool("export_xml"))) { plugins.add(new ExportXmlFile()); } if (!Boolean.FALSE.equals(set.getBool("export_html"))) { plugins.add(new ExportHtmlFiles()); } InfobaseSetVisitor visitor = new InfobaseSetVisitor(set, plugins); visitor.complete(); }
ExportRunner { public void Export() throws IOException, InvalidMarkupException { List<InfobaseSetPlugin> plugins = new ArrayList<InfobaseSetPlugin>(); plugins.add(new ExportStructure(createProvider())); plugins.add(new ApplyProcessor(new MultiRunner(new FixHttpLinks(), new LinkMapper(this.set), new PullElements(this.set)))); plugins.add(new RenameFiles()); plugins.add(new ResolveHyperlinks()); if (!Boolean.FALSE.equals(set.getBool("export_inventory"))) { plugins.add(new ExportInventory()); } if (!Boolean.FALSE.equals(set.getBool("use_highslide"))) { plugins.add(new ApplyProcessor(new MultiRunner(new Notes(), new Popups()))); } plugins.add(new ApplyProcessor(new FauxTabs(this.set))); plugins.add(new ApplyProcessor(new MultiRunner(new CleanupSlxStuff(EnumSet.of( CleanupSlxStuff.CleanupOptions.DropTypeAttr, CleanupSlxStuff.CleanupOptions.RenameBookmarks, CleanupSlxStuff.CleanupOptions.RenameRecordToDiv)), new ReplaceUnderline(), new SplitSelfClosingTags(), new HtmlTidy()))); plugins.add(new ExportCssFile()); if (!Boolean.FALSE.equals(set.getBool("export_hidden_text"))) { plugins.add(new ExportHiddenText()); } if (!Boolean.FALSE.equals(set.getBool("export_xml"))) { plugins.add(new ExportXmlFile()); } if (!Boolean.FALSE.equals(set.getBool("export_html"))) { plugins.add(new ExportHtmlFiles()); } InfobaseSetVisitor visitor = new InfobaseSetVisitor(set, plugins); visitor.complete(); } }
ExportRunner { public void Export() throws IOException, InvalidMarkupException { List<InfobaseSetPlugin> plugins = new ArrayList<InfobaseSetPlugin>(); plugins.add(new ExportStructure(createProvider())); plugins.add(new ApplyProcessor(new MultiRunner(new FixHttpLinks(), new LinkMapper(this.set), new PullElements(this.set)))); plugins.add(new RenameFiles()); plugins.add(new ResolveHyperlinks()); if (!Boolean.FALSE.equals(set.getBool("export_inventory"))) { plugins.add(new ExportInventory()); } if (!Boolean.FALSE.equals(set.getBool("use_highslide"))) { plugins.add(new ApplyProcessor(new MultiRunner(new Notes(), new Popups()))); } plugins.add(new ApplyProcessor(new FauxTabs(this.set))); plugins.add(new ApplyProcessor(new MultiRunner(new CleanupSlxStuff(EnumSet.of( CleanupSlxStuff.CleanupOptions.DropTypeAttr, CleanupSlxStuff.CleanupOptions.RenameBookmarks, CleanupSlxStuff.CleanupOptions.RenameRecordToDiv)), new ReplaceUnderline(), new SplitSelfClosingTags(), new HtmlTidy()))); plugins.add(new ExportCssFile()); if (!Boolean.FALSE.equals(set.getBool("export_hidden_text"))) { plugins.add(new ExportHiddenText()); } if (!Boolean.FALSE.equals(set.getBool("export_xml"))) { plugins.add(new ExportXmlFile()); } if (!Boolean.FALSE.equals(set.getBool("export_html"))) { plugins.add(new ExportHtmlFiles()); } InfobaseSetVisitor visitor = new InfobaseSetVisitor(set, plugins); visitor.complete(); } ExportRunner(InfobaseSet set); }
ExportRunner { public void Export() throws IOException, InvalidMarkupException { List<InfobaseSetPlugin> plugins = new ArrayList<InfobaseSetPlugin>(); plugins.add(new ExportStructure(createProvider())); plugins.add(new ApplyProcessor(new MultiRunner(new FixHttpLinks(), new LinkMapper(this.set), new PullElements(this.set)))); plugins.add(new RenameFiles()); plugins.add(new ResolveHyperlinks()); if (!Boolean.FALSE.equals(set.getBool("export_inventory"))) { plugins.add(new ExportInventory()); } if (!Boolean.FALSE.equals(set.getBool("use_highslide"))) { plugins.add(new ApplyProcessor(new MultiRunner(new Notes(), new Popups()))); } plugins.add(new ApplyProcessor(new FauxTabs(this.set))); plugins.add(new ApplyProcessor(new MultiRunner(new CleanupSlxStuff(EnumSet.of( CleanupSlxStuff.CleanupOptions.DropTypeAttr, CleanupSlxStuff.CleanupOptions.RenameBookmarks, CleanupSlxStuff.CleanupOptions.RenameRecordToDiv)), new ReplaceUnderline(), new SplitSelfClosingTags(), new HtmlTidy()))); plugins.add(new ExportCssFile()); if (!Boolean.FALSE.equals(set.getBool("export_hidden_text"))) { plugins.add(new ExportHiddenText()); } if (!Boolean.FALSE.equals(set.getBool("export_xml"))) { plugins.add(new ExportXmlFile()); } if (!Boolean.FALSE.equals(set.getBool("export_html"))) { plugins.add(new ExportHtmlFiles()); } InfobaseSetVisitor visitor = new InfobaseSetVisitor(set, plugins); visitor.complete(); } ExportRunner(InfobaseSet set); void Run(); void Index(); void Export(); }
ExportRunner { public void Export() throws IOException, InvalidMarkupException { List<InfobaseSetPlugin> plugins = new ArrayList<InfobaseSetPlugin>(); plugins.add(new ExportStructure(createProvider())); plugins.add(new ApplyProcessor(new MultiRunner(new FixHttpLinks(), new LinkMapper(this.set), new PullElements(this.set)))); plugins.add(new RenameFiles()); plugins.add(new ResolveHyperlinks()); if (!Boolean.FALSE.equals(set.getBool("export_inventory"))) { plugins.add(new ExportInventory()); } if (!Boolean.FALSE.equals(set.getBool("use_highslide"))) { plugins.add(new ApplyProcessor(new MultiRunner(new Notes(), new Popups()))); } plugins.add(new ApplyProcessor(new FauxTabs(this.set))); plugins.add(new ApplyProcessor(new MultiRunner(new CleanupSlxStuff(EnumSet.of( CleanupSlxStuff.CleanupOptions.DropTypeAttr, CleanupSlxStuff.CleanupOptions.RenameBookmarks, CleanupSlxStuff.CleanupOptions.RenameRecordToDiv)), new ReplaceUnderline(), new SplitSelfClosingTags(), new HtmlTidy()))); plugins.add(new ExportCssFile()); if (!Boolean.FALSE.equals(set.getBool("export_hidden_text"))) { plugins.add(new ExportHiddenText()); } if (!Boolean.FALSE.equals(set.getBool("export_xml"))) { plugins.add(new ExportXmlFile()); } if (!Boolean.FALSE.equals(set.getBool("export_html"))) { plugins.add(new ExportHtmlFiles()); } InfobaseSetVisitor visitor = new InfobaseSetVisitor(set, plugins); visitor.complete(); } ExportRunner(InfobaseSet set); void Run(); void Index(); void Export();  }