|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.digester3.RegexMatcher org.apache.commons.digester3.SimpleRegexMatcher
public class SimpleRegexMatcher
Simple regex pattern matching algorithm.
This uses just two wildcards:
*
matches any sequence of none, one or more characters
?
matches any one character
Constructor Summary | |
---|---|
SimpleRegexMatcher()
|
Method Summary | |
---|---|
org.apache.commons.logging.Log |
getLog()
Gets the Log implementation. |
boolean |
match(String basePattern,
String regexPattern)
Returns true if the given pattern matches the given path according to the regex algorithm that this strategy applies. |
void |
setLog(org.apache.commons.logging.Log log)
Sets the current Log implementation used by this class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleRegexMatcher()
Method Detail |
---|
public org.apache.commons.logging.Log getLog()
Log
implementation.
Log
implementation.public void setLog(org.apache.commons.logging.Log log)
Log
implementation used by this class.
log
- the current Log
implementation used by this class.public boolean match(String basePattern, String regexPattern)
match
in class RegexMatcher
basePattern
- the standard digester path representing the elementregexPattern
- the regex pattern the path will be tested against
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |