Package org.htmlcleaner.audit
Interface HtmlModificationListener
-
- All Known Implementing Classes:
CleanerProperties
,HtmlModificationListenerLogger
public interface HtmlModificationListener
Implementors can be registered onCleanerProperties
to receive notifications about modifications made by html cleaner.- Author:
- Konstantin Burov (aectann@gmail.com)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
fireConditionModification(ITagNodeCondition condition, TagNode tagNode)
Fired when cleaner modifies html due toITagNodeCondition
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 toITagNodeCondition
match.- Parameters:
condition
- that was applied to make the modificationtagNode
- - problematic node.
-
-