Class RegexNodeScanner
java.lang.Object
org.craftercms.core.util.xml.impl.RegexNodeScanner
- All Implemented Interfaces:
NodeScanner
NodeScanner
implementation that scans the document to find nodes that match certain regex patterns.- Author:
- Alfonso Vásquez
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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)
-
Field Details
-
patterns
-
matchEntireNodeText
protected boolean matchEntireNodeText
-
-
Constructor Details
-
RegexNodeScanner
public RegexNodeScanner()
-
-
Method Details
-
setPatterns
-
setMatchEntireNodeText
public void setMatchEntireNodeText(boolean matchEntireNodeText) -
scan
Description copied from interface:NodeScanner
Scans the specified document for nodes that fit a certain condition.- Specified by:
scan
in interfaceNodeScanner
- Returns:
- the list of nodes that fit the condition
-
equals
-
hashCode
public int hashCode()
-