Class SimpleRegexMatcher
java.lang.Object
org.apache.commons.digester3.RegexMatcher
org.apache.commons.digester3.SimpleRegexMatcher
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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.commons.logging.LoggetLog()Gets theLogimplementation.booleanReturns true if the given pattern matches the given path according to the regex algorithm that this strategy applies.voidsetLog(org.apache.commons.logging.Log log) Sets the currentLogimplementation used by this class.
-
Constructor Details
-
SimpleRegexMatcher
public SimpleRegexMatcher()
-
-
Method Details
-
getLog
Gets theLogimplementation.- Returns:
- the
Logimplementation.
-
setLog
Sets the currentLogimplementation used by this class.- Parameters:
log- the currentLogimplementation used by this class.
-
match
Returns true if the given pattern matches the given path according to the regex algorithm that this strategy applies.- Specified by:
matchin classRegexMatcher- Parameters:
basePattern- the standard digester path representing the elementregexPattern- the regex pattern the path will be tested against- Returns:
- true if the given pattern matches the given path
-