Package org.htmlcleaner.audit
Class HtmlModificationListenerLogger
- java.lang.Object
-
- org.htmlcleaner.audit.HtmlModificationListenerLogger
-
- All Implemented Interfaces:
HtmlModificationListener
public class HtmlModificationListenerLogger extends java.lang.Object implements HtmlModificationListener
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.logging.Loggerlog
-
Constructor Summary
Constructors Constructor Description HtmlModificationListenerLogger(java.util.logging.Logger log)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfireConditionModification(ITagNodeCondition condition, TagNode tagNode)Fired when cleaner modifies html due toITagNodeConditionmatch.voidfireHtmlError(boolean safety, TagNode tagNode, ErrorType errorType)Fired when cleaner fixes some error in html syntax.voidfireUglyHtml(boolean safety, TagNode tagNode, ErrorType errorType)Fired when cleaner fixes ugly html -- when syntax was correct but task was implemented by weird code.voidfireUserDefinedModification(boolean safety, TagNode tagNode, ErrorType errorType)Fired when cleaner modifies html due to user specified rules.
-
-
-
Method Detail
-
fireConditionModification
public void fireConditionModification(ITagNodeCondition condition, TagNode tagNode)
Description copied from interface:HtmlModificationListenerFired when cleaner modifies html due toITagNodeConditionmatch.- Specified by:
fireConditionModificationin interfaceHtmlModificationListener- Parameters:
condition- that was applied to make the modificationtagNode- - problematic node.
-
fireHtmlError
public void fireHtmlError(boolean safety, TagNode tagNode, ErrorType errorType)Description copied from interface:HtmlModificationListenerFired when cleaner fixes some error in html syntax.- Specified by:
fireHtmlErrorin interfaceHtmlModificationListener- 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:HtmlModificationListenerFired 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:
fireUglyHtmlin interfaceHtmlModificationListener- 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:HtmlModificationListenerFired when cleaner modifies html due to user specified rules.- Specified by:
fireUserDefinedModificationin interfaceHtmlModificationListener- Parameters:
safety- - true if change made doesn't hurts end document.tagNode- - problematic node.
-
-