Interface TagVisitor

All Superinterfaces:
Serializable

public interface TagVisitor extends Serializable
Visits Tags that are part of a DOM tree.
  • Method Details

    • onRead

      void onRead(Tag parent, Tag tag) throws RepositoryException
      Called by HtmlProcessor.read(String, List) for each Tag in the DOM tree.
      Parameters:
      parent - The parent of the tag parameter, or null if the tag is the root node of the DOM tree
      tag - The visited tag
      Throws:
      RepositoryException - when an error occurred. Visiting will continue for the other tags.
    • onWrite

      void onWrite(Tag parent, Tag tag) throws RepositoryException
      Called by HtmlProcessor.write(String, List) for each Tag in the DOM tree.
      Parameters:
      parent - The parent of the tag parameter, or null if the tag is the root node of the DOM tree
      tag - The visited tag
      Throws:
      RepositoryException - when an error occurred. Visiting will continue for the other tags.
    • before

      void before()
      Called before the visitor is applied to the DOM tree.
    • after

      void after()
      Called after the visitor is applied to the DOM tree.