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.
| 28 | * implement this extension point are run sequentially on the parse. |
| 29 | */ |
| 30 | public interface ParseFilter extends FieldPluggable, Configurable { |
| 31 | /** The name of the extension point. */ |
| 32 | final static String X_POINT_ID = ParseFilter.class.getName(); |
| 33 | |
| 34 | /** |
| 35 | * Adds metadata or otherwise modifies a parse, given the DOM tree of a page. |
| 36 | */ |
| 37 | Parse filter(String url, WebPage page, Parse parse, HTMLMetaTags metaTags, |
| 38 | DocumentFragment doc); |
| 39 | |
| 40 | } |
no test coverage detected