net.geant.edugain.attributes.matchers
Class RegularExpressionHelper

java.lang.Object
  extended by 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.
 
Constructor Summary
RegularExpressionHelper(MatchType configuration)
          Instantiate and initialize the matcher with the configuration data.
 
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
 

Field Detail

pattern

private java.util.regex.Pattern pattern
Compiled regular expression pattern.


log

private org.apache.log4j.Logger log
Constructor Detail

RegularExpressionHelper

public RegularExpressionHelper(MatchType configuration)
Instantiate and initialize the matcher with the configuration data.

Parameters:
configuration -
Method Detail

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.