org.apache.commons.digester
public class SimpleRegexMatcher extends RegexMatcher
Simple regex pattern matching algorithm.
This uses just two wildcards:
* matches any sequence of none, one or more characters
? matches any one character
Since: 1.5
| Field Summary | |
|---|---|
| static Log | baseLog Default log (class wide) |
| Log | log Custom log (can be set per object) |
| Method Summary | |
|---|---|
| Log | getLog()
Gets the Log implementation. |
| boolean | match(String basePattern, String regexPattern)
Matches using simple regex algorithm.
|
| boolean | match(String basePattern, String regexPattern, int baseAt, int regexAt)
Implementation of regex matching algorithm.
|
| void | setLog(Log log)
Sets the current Log implementation used by this class. |
Log implementation.Parameters: basePattern the standard digester path representing the element regexPattern the regex pattern the path will be tested against
Returns: true if the given pattern matches the given path
Log implementation used by this class.