-
- All Implemented Interfaces:
-
ai.platon.pulsar.common.config.Parameterized,java.lang.AutoCloseable
public interface ParseFilter implements Parameterized, AutoCloseable
Extension point for DOM-based parsers. Permits one to add additional metadata to parses provided by the html or tika plugins. All plugins found which implement this extension point are run sequentially on the parse.
-
-
Method Summary
Modifier and Type Method Description abstract UnitaddFirst(ParseFilter child)abstract UnitaddLast(ParseFilter child)abstract Unitinitialize()abstract CheckStateisRelevant(ParseContext parseContext)abstract UnitonBeforeFilter(ParseContext parseContext)abstract FilterResultfilter(ParseContext parseContext)abstract UnitonAfterFilter(ParseContext parseContext)Unitclose()abstract IntegergetId()abstract ParseFiltergetParent()abstract UnitsetParent(ParseFilter parent)abstract List<ParseFilter>getChildren()IntegergetParentId()BooleangetIsRoot()BooleangetIsLeaf()-
-
Method Detail
-
addFirst
abstract Unit addFirst(ParseFilter child)
-
addLast
abstract Unit addLast(ParseFilter child)
-
initialize
abstract Unit initialize()
-
isRelevant
abstract CheckState isRelevant(ParseContext parseContext)
-
onBeforeFilter
abstract Unit onBeforeFilter(ParseContext parseContext)
-
filter
abstract FilterResult filter(ParseContext parseContext)
-
onAfterFilter
abstract Unit onAfterFilter(ParseContext parseContext)
-
getParent
abstract ParseFilter getParent()
-
setParent
abstract Unit setParent(ParseFilter parent)
-
getChildren
abstract List<ParseFilter> getChildren()
-
getParentId
Integer getParentId()
-
-
-
-