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
Constructor and Description |
---|
SimpleRegexMatcher() |
Modifier and Type | Method and Description |
---|---|
org.apache.commons.logging.Log |
getLog()
Gets the
Log implementation. |
boolean |
match(java.lang.String basePattern,
java.lang.String regexPattern)
Matches using simple regex algorithm.
|
void |
setLog(org.apache.commons.logging.Log log)
Sets the current
Log implementation used by this class. |
public org.apache.commons.logging.Log getLog()
Log
implementation.public void setLog(org.apache.commons.logging.Log log)
Log
implementation used by this class.public boolean match(java.lang.String basePattern, java.lang.String regexPattern)
match
in class RegexMatcher
basePattern
- the standard digester path representing the elementregexPattern
- the regex pattern the path will be tested againstCopyright © 2001-2012 Apache Software Foundation. All Rights Reserved.