edu.internet2.middleware.shibboleth.common.attribute.filtering.provider.match.basic
Class AbstractRegexMatchFunctor
java.lang.Object
edu.internet2.middleware.shibboleth.common.attribute.filtering.provider.match.basic.AbstractMatchFunctor
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.
Field Summary |
private Pattern |
regex
Regular expression to match. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
regex
private Pattern regex
- Regular expression to match.
AbstractRegexMatchFunctor
public AbstractRegexMatchFunctor()
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 © 1999-2012. All Rights Reserved.