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

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.AbstractStringMatchFunctor
All Implemented Interfaces:
MatchFunctor
Direct Known Subclasses:
AbstractAttributeTargetedStringMatchFunctor, AttributeIssuerStringMatchFunctor, AttributeRequesterStringMatchFunctor, AuthenticationMethodStringMatchFunctor, PrincipalStringMatchFunctor

public abstract class AbstractStringMatchFunctor
extends AbstractMatchFunctor

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


Constructor Summary
AbstractStringMatchFunctor()
           
 
Method Summary
 String getMatchString()
          Gets the string to match for a positive evaluation.
 boolean isCaseSensitive()
          Gets whether the match evaluation is case sensitive.
protected  boolean isMatch(Object value)
          Matches the given value against the provided match string.
 void setCaseSensitive(boolean isCaseSensitive)
          Sets whether the match evaluation is case sensitive.
 void setMatchString(String match)
          Sets the string to match for a positive evaluation.
 
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

AbstractStringMatchFunctor

public AbstractStringMatchFunctor()
Method Detail

getMatchString

public String getMatchString()
Gets the string to match for a positive evaluation.

Returns:
string to match for a positive evaluation

setMatchString

public void setMatchString(String match)
Sets the string to match for a positive evaluation.

Parameters:
match - string to match for a positive evaluation

isCaseSensitive

public boolean isCaseSensitive()
Gets whether the match evaluation is case sensitive.

Returns:
whether the match evaluation is case sensitive

setCaseSensitive

public void setCaseSensitive(boolean isCaseSensitive)
Sets whether the match evaluation is case sensitive.

Parameters:
isCaseSensitive - whether the match evaluation is case sensitive

isMatch

protected boolean isMatch(Object value)
Matches the given value against the provided match string. 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-2011 Internet2. All Rights Reserved.