1 package org.jahia.services.htmlparser;2 3 import org.w3c.dom.Document ;4 5 /**6 *7 * <p>Title: Html DOM Visitor</p>8 * <p>Description: </p>9 * <p>Copyright: Copyright (c) 2002</p>10 * <p>Company: </p>11 * @author Khue Nguyen12 * @version 1.013 */14 public interface HtmlDOMVisitor {15 16 /**17 * let the visitor initiate itself18 *19 * @param siteId , current site20 * @return21 */22 public abstract void init(int siteId);23 24 /**25 * process the Document build by the HtmlParser from parsing the Html content.26 *27 * @param doc28 * @return29 */30 public abstract Document parseDOM(Document doc);31 32 }