Package org.htmlcleaner.audit
Class HtmlModificationListenerLogger
java.lang.Object
org.htmlcleaner.audit.HtmlModificationListenerLogger
- All Implemented Interfaces:
HtmlModificationListener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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.
-
Constructor Details
-
HtmlModificationListenerLogger
-
-
Method Details
-
fireConditionModification
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
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.errorType
-
-
fireUglyHtml
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.errorType
-
-
fireUserDefinedModification
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.errorType
-
-