org.htmlcleaner.audit
Interface HtmlModificationListener

All Known Implementing Classes:
CleanerProperties, HtmlModificationListenerLogger

public interface HtmlModificationListener

Implementors can be registered on CleanerProperties to receive notifications about modifications made by html cleaner.

Author:
Konstantin Burov (aectann@gmail.com)

Method Summary
 void fireConditionModification(ITagNodeCondition condition, TagNode tagNode)
          Fired when cleaner modifies html due to ITagNodeCondition match.
 void fireHtmlError(boolean certain, TagNode tagNode, ErrorType errorType)
          Fired when cleaner fixes some error in html syntax.
 void fireUglyHtml(boolean certainty, TagNode tagNode, ErrorType errorType)
          Fired when cleaner fixes ugly html -- when syntax was correct but task was implemented by weird code.
 void fireUserDefinedModification(boolean certainty, TagNode tagNode, ErrorType errorType)
          Fired when cleaner modifies html due to user specified rules.
 

Method Detail

fireHtmlError

void fireHtmlError(boolean certain,
                   TagNode tagNode,
                   ErrorType errorType)
Fired when cleaner fixes some error in html syntax.

Parameters:
certain - - true if change made doesn't hurts end document.
tagNode - - problematic node.
errorType -

fireUglyHtml

void fireUglyHtml(boolean certainty,
                  TagNode tagNode,
                  ErrorType errorType)
Fired when cleaner fixes ugly html -- when syntax was correct but task was implemented by weird code. For example when deprecated tags are removed.

Parameters:
certainty - - true if change made doesn't hurts end document.
tagNode - - problematic node.
errorType -

fireConditionModification

void fireConditionModification(ITagNodeCondition condition,
                               TagNode tagNode)
Fired when cleaner modifies html due to ITagNodeCondition match.

Parameters:
condition - that was applied to make the modification
tagNode - - problematic node.

fireUserDefinedModification

void fireUserDefinedModification(boolean certainty,
                                 TagNode tagNode,
                                 ErrorType errorType)
Fired when cleaner modifies html due to user specified rules.

Parameters:
certainty - - true if change made doesn't hurts end document.
tagNode - - problematic node.
errorType -


Copyright © 2006-2014. All Rights Reserved.