public class HeadingsParseFilter extends java.lang.Object implements HtmlParseFilter
| Modifier and Type | Field and Description |
|---|---|
protected static java.util.regex.Pattern |
whitespacePattern
Pattern used to strip surpluss whitespace
|
X_POINT_ID| Constructor and Description |
|---|
HeadingsParseFilter() |
| Modifier and Type | Method and Description |
|---|---|
ParseResult |
filter(Content content,
ParseResult parseResult,
HTMLMetaTags metaTags,
org.w3c.dom.DocumentFragment doc)
Adds metadata or otherwise modifies a parse of HTML content, given the DOM
tree of a page.
|
Configuration |
getConf() |
protected java.util.List<java.lang.String> |
getElement(org.w3c.dom.DocumentFragment doc,
java.lang.String element)
Finds the specified element and returns its value
|
protected static java.lang.String |
getNodeValue(org.w3c.dom.Node node)
Returns the text value of the specified Node and child nodes
|
void |
setConf(Configuration conf) |
protected static java.util.regex.Pattern whitespacePattern
public ParseResult filter(Content content, ParseResult parseResult, HTMLMetaTags metaTags, org.w3c.dom.DocumentFragment doc)
HtmlParseFilterfilter in interface HtmlParseFilterpublic void setConf(Configuration conf)
setConf in interface Configurablepublic Configuration getConf()
getConf in interface Configurableprotected java.util.List<java.lang.String> getElement(org.w3c.dom.DocumentFragment doc,
java.lang.String element)
protected static java.lang.String getNodeValue(org.w3c.dom.Node node)
Copyright © 2019 The Apache Software Foundation