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
-
-
Constructor Summary
Constructors Constructor Description HtmlModificationListenerLogger(java.util.logging.Logger log)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
fireConditionModification(ITagNodeCondition condition, TagNode tagNode)
Fired when cleaner modifies html due toITagNodeCondition
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.
-
-
-
Method Detail
-
fireConditionModification
public void fireConditionModification(ITagNodeCondition condition, TagNode tagNode)
Description copied from interface:HtmlModificationListener
Fired when cleaner modifies html due toITagNodeCondition
match.- Specified by:
fireConditionModification
in 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:HtmlModificationListener
Fired when cleaner fixes some error in html syntax.- Specified by:
fireHtmlError
in 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: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 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:HtmlModificationListener
Fired when cleaner modifies html due to user specified rules.- Specified by:
fireUserDefinedModification
in interfaceHtmlModificationListener
- Parameters:
safety
- - true if change made doesn't hurts end document.tagNode
- - problematic node.
-
-