net.geant.edugain.attributes.matchers
Class RegularExpressionHelper
java.lang.Object
net.geant.edugain.attributes.matchers.RegularExpressionHelper
class RegularExpressionHelper
- extends java.lang.Object
Helper class for Regular expression matching.
This utility class is used by the matchers when regular expression matching
is necessary.
- Author:
- Adam Lantos
|
Field Summary |
private org.apache.log4j.Logger |
log
|
private java.util.regex.Pattern |
pattern
Compiled regular expression pattern. |
|
Method Summary |
java.util.List<java.lang.String> |
doMatch(java.lang.String value)
Do the actual matching against the value and return the matcher groups
as List<String>. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pattern
private java.util.regex.Pattern pattern
- Compiled regular expression pattern.
log
private org.apache.log4j.Logger log
RegularExpressionHelper
public RegularExpressionHelper(MatchType configuration)
- Instantiate and initialize the matcher with the configuration data.
- Parameters:
configuration -
doMatch
public java.util.List<java.lang.String> doMatch(java.lang.String value)
- Do the actual matching against the value and return the matcher groups
as List<String>.
- Parameters:
value - the String to match.
- Returns:
- the matching groups for this expression.