edu.internet2.middleware.shibboleth.common.attribute.filtering.provider.match.basic
Class AbstractRegexMatchFunctor

java.lang.Object
  extended by edu.internet2.middleware.shibboleth.common.attribute.filtering.provider.match.basic.AbstractMatchFunctor
      extended by edu.internet2.middleware.shibboleth.common.attribute.filtering.provider.match.basic.AbstractRegexMatchFunctor
All Implemented Interfaces:
MatchFunctor
Direct Known Subclasses:
AbstractAttributeTargetedRegexMatchFunctor, AttributeIssuerRegexMatchFunctor, AttributeRequesterRegexMatchFunctor, AuthenticationMethodRegexMatchFunctor, PrincipalRegexMatchFunctor

public abstract class AbstractRegexMatchFunctor
extends AbstractMatchFunctor

Base class for match function that match a string value against a given regular expression.


Constructor Summary
AbstractRegexMatchFunctor()
           
 
Method Summary
 String getRegularExpression()
          Gets the regular expression to match.
protected  boolean isMatch(Object value)
          Matches the given value against the provided regular expression.
 void setRegularExpression(String expression)
          Sets the regular expression to match.
 
Methods inherited from class edu.internet2.middleware.shibboleth.common.attribute.filtering.provider.match.basic.AbstractMatchFunctor
doEvaluatePolicyRequirement, doEvaluateValue, evaluateDenyRule, evaluatePermitValue, evaluatePolicyRequirement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractRegexMatchFunctor

public AbstractRegexMatchFunctor()
Method Detail

getRegularExpression

public String getRegularExpression()
Gets the regular expression to match.

Returns:
regular expression to match

setRegularExpression

public void setRegularExpression(String expression)
Sets the regular expression to match.

Parameters:
expression - regular expression to match

isMatch

protected boolean isMatch(Object value)
Matches the given value against the provided regular expression. Object.toString() is used to produce the string value to evaluate.

Parameters:
value - the value to evaluate
Returns:
true if the value matches the given match string, false if not


Copyright © 2006-2008 Internet2. All Rights Reserved.