org.htmlcleaner.audit
Class HtmlModificationListenerLogger

java.lang.Object
  extended by org.htmlcleaner.audit.HtmlModificationListenerLogger
All Implemented Interfaces:
HtmlModificationListener

public class HtmlModificationListenerLogger
extends Object
implements HtmlModificationListener


Constructor Summary
HtmlModificationListenerLogger(Logger log)
           
 
Method Summary
 void fireConditionModification(ITagNodeCondition condition, TagNode tagNode)
          Fired when cleaner modifies html due to ITagNodeCondition match.
 void fireHtmlError(boolean safety, TagNode tagNode, ErrorType errorType)
          Fired when cleaner fixes some error in html syntax.
 void fireUglyHtml(boolean safety, TagNode tagNode, ErrorType errorType)
          Fired when cleaner fixes ugly html -- when syntax was correct but task was implemented by weird code.
 void fireUserDefinedModification(boolean safety, TagNode tagNode, ErrorType errorType)
          Fired when cleaner modifies html due to user specified rules.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlModificationListenerLogger

public HtmlModificationListenerLogger(Logger log)
Method Detail

fireConditionModification

public void fireConditionModification(ITagNodeCondition condition,
                                      TagNode tagNode)
Description copied from interface: HtmlModificationListener
Fired when cleaner modifies html due to ITagNodeCondition match.

Specified by:
fireConditionModification in interface HtmlModificationListener
Parameters:
condition - that was applied to make the modification
tagNode - - problematic node.

fireHtmlError

public void fireHtmlError(boolean safety,
                          TagNode tagNode,
                          ErrorType errorType)
Description copied from interface: HtmlModificationListener
Fired when cleaner fixes some error in html syntax.

Specified by:
fireHtmlError in interface HtmlModificationListener
Parameters:
safety - - true if change made doesn't hurts end document.
tagNode - - problematic node.

fireUglyHtml

public void fireUglyHtml(boolean safety,
                         TagNode tagNode,
                         ErrorType errorType)
Description copied from interface: HtmlModificationListener
Fired when cleaner fixes ugly html -- when syntax was correct but task was implemented by weird code. For example when deprecated tags are removed.

Specified by:
fireUglyHtml in interface HtmlModificationListener
Parameters:
safety - - true if change made doesn't hurts end document.
tagNode - - problematic node.

fireUserDefinedModification

public void fireUserDefinedModification(boolean safety,
                                        TagNode tagNode,
                                        ErrorType errorType)
Description copied from interface: HtmlModificationListener
Fired when cleaner modifies html due to user specified rules.

Specified by:
fireUserDefinedModification in interface HtmlModificationListener
Parameters:
safety - - true if change made doesn't hurts end document.
tagNode - - problematic node.


Copyright © 2006-2014. All Rights Reserved.