1 package org.jahia.services.htmlparser; 14 15 import java.util.Iterator ; 16 import java.util.Vector ; 17 18 import org.jahia.engines.EngineMessages; 19 import org.jahia.exceptions.JahiaException; 20 import org.jahia.services.JahiaService; 21 import org.jahia.settings.SettingsBean; 22 23 32 public abstract class HtmlParserService extends JahiaService 33 { 34 35 39 public abstract SettingsBean getSettingsBean(); 40 41 46 public abstract HtmlParser getParser(); 47 48 54 public abstract HtmlParser getParser(int siteId); 55 56 66 public abstract String parse(String inputString, Vector DOMVisitors); 67 68 78 public abstract String parse(String inputString, Vector DOMVisitors, 79 int siteId); 80 81 86 public abstract Iterator getMarkupDefinitions(); 87 88 93 public abstract MarkupDefinition getMarkupDefinition(int id); 94 95 100 public abstract MarkupDefinition getMarkupDefinition(String markupName); 101 102 107 public abstract void saveMarkupDefinition(MarkupDefinition markupDefinition) 108 throws JahiaException; 109 110 115 public abstract void removeMarkupDefinition(int id) 116 throws JahiaException; 117 118 123 public abstract Iterator getMarkupSettings(); 124 125 131 public abstract Iterator getMarkupSettings(String type); 132 133 140 public abstract Iterator getMarkupSettings(int siteId); 141 142 147 public abstract MarkupSetting getMarkupSetting(int id); 148 149 154 public abstract void saveMarkupSetting(MarkupSetting markupSetting) 155 throws JahiaException; 156 157 162 public abstract void removeMarkupSetting(int id) 163 throws JahiaException; 164 165 171 public abstract Vector getHtmlDOMVisitors(int siteId) 172 throws JahiaException; 173 174 180 public abstract EngineMessages checkTextParsingErrors(String value); 181 182 } 183 184 | Popular Tags |