|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.digester.RegexMatcher
org.apache.commons.digester.SimpleRegexMatcher
Simple regex pattern matching algorithm.
This uses just two wildcards:
* matches any sequence of none, one or more characters
? matches any one character
| Field Summary | |
private static Log |
baseLog
Default log (class wide) |
private Log |
log
Custom log (can be set per object) |
| Constructor Summary | |
SimpleRegexMatcher()
|
|
| Method Summary | |
Log |
getLog()
Gets the Log implementation. |
boolean |
match(java.lang.String basePattern,
java.lang.String regexPattern)
Matches using simple regex algorithm. |
private boolean |
match(java.lang.String basePattern,
java.lang.String regexPattern,
int baseAt,
int regexAt)
Implementation of regex matching algorithm. |
void |
setLog(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 |
| Field Detail |
private static final Log baseLog
private Log log
| Constructor Detail |
public SimpleRegexMatcher()
| Method Detail |
public Log getLog()
Log implementation.
public void setLog(Log log)
Log implementation used by this class.
public boolean match(java.lang.String basePattern,
java.lang.String regexPattern)
match in class RegexMatcherbasePattern - the standard digester path representing the elementregexPattern - the regex pattern the path will be tested against
private boolean match(java.lang.String basePattern,
java.lang.String regexPattern,
int baseAt,
int regexAt)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||