public class RegexNodeScanner extends Object implements NodeScanner
NodeScanner implementation that scans the document to find nodes that match certain regex patterns.| Modifier and Type | Class and Description |
|---|---|
protected class |
RegexNodeScanner.RegexMatcherVisitor |
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
matchEntireNodeText |
protected Pattern[] |
patterns |
| Constructor and Description |
|---|
RegexNodeScanner() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
hashCode() |
List<org.dom4j.Node> |
scan(org.dom4j.Document document)
Scans the specified document for nodes that fit a certain condition.
|
void |
setMatchEntireNodeText(boolean matchEntireNodeText) |
void |
setPatterns(Pattern... patterns) |
protected Pattern[] patterns
protected boolean matchEntireNodeText
public void setPatterns(Pattern... patterns)
public void setMatchEntireNodeText(boolean matchEntireNodeText)
public List<org.dom4j.Node> scan(org.dom4j.Document document)
NodeScannerscan in interface NodeScannerCopyright © 2018 CrafterCMS. All rights reserved.