edu.internet2.middleware.shibboleth.common.attribute.resolver.provider.attributeDefinition
Class ValueMap

java.lang.Object
  extended by edu.internet2.middleware.shibboleth.common.attribute.resolver.provider.attributeDefinition.ValueMap

public class ValueMap
extends Object

Performs many to one mapping of source values to a return value. SourceValue strings may include regular expressions and the ReturnValue may include back references to capturing groups as supported by Pattern.


Nested Class Summary
 class ValueMap.SourceValue
          Represents incoming attribute values and rules used for matching them.
 
Constructor Summary
ValueMap()
          Constructor.
 
Method Summary
 Set<String> evaluate(String attributeValue)
          Evaluate an incoming attribute value against this value map.
 String getReturnValue()
          Gets the return value.
 Collection<ValueMap.SourceValue> getSourceValues()
          Gets the collection of source values.
 void setReturnValue(String newReturnValue)
          Sets the return value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueMap

public ValueMap()
Constructor.

Method Detail

getReturnValue

public String getReturnValue()
Gets the return value.

Returns:
the return value

setReturnValue

public void setReturnValue(String newReturnValue)
Sets the return value.

Parameters:
newReturnValue - the return value

getSourceValues

public Collection<ValueMap.SourceValue> getSourceValues()
Gets the collection of source values.

Returns:
the collection of source values

evaluate

public Set<String> evaluate(String attributeValue)
Evaluate an incoming attribute value against this value map.

Parameters:
attributeValue - incoming attribute value
Returns:
set of new values the incoming value mapped to


Copyright © 2006-2009 Internet2. All Rights Reserved.