Interface TagRule
-
- All Known Implementing Classes:
BasicRule,BlockExtractingRule,BodyTagRule,ContentBlockExtractingRule,DivExtractingPageParser.TopLevelDivExtractingRule,FramesetRule,HeadExtractingRule,HtmlAttributesRule,MetaTagRule,MSOfficeDocumentPropertiesRule,ParameterExtractingRule,StateTransitionRule,TagReplaceRule,TitleExtractingRule
public interface TagRule
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidprocess(Tag tag)voidsetContext(HTMLProcessorContext context)booleanshouldProcess(String name)Called by the HTMLProcessor to determine if a rule should be called for a given tag.
-
-
-
Method Detail
-
setContext
void setContext(HTMLProcessorContext context)
-
shouldProcess
boolean shouldProcess(String name)
Called by the HTMLProcessor to determine if a rule should be called for a given tag. The name parameter will always be passed in lowercase.
-
process
void process(Tag tag)
-
-