org.jasig.services.persondir.support.merger
Class MultivaluedAttributeMerger
java.lang.Object
org.jasig.services.persondir.support.merger.MultivaluedAttributeMerger
- All Implemented Interfaces:
- IAttributeMerger
public class MultivaluedAttributeMerger
- extends Object
- implements IAttributeMerger
Merger that retains values from both maps. If a value exists for
a key in both maps the following is done:
- If both maps have a
List they are merged into a single List
- If one map has a
List and the other a single value the value is added to the List
- If both maps have a single value a
List is created from the two.
- Version:
- $Revision: 2892 $ $Date: 2006-12-19 13:25:03 -0600 (Tue, 19 Dec 2006) $
- Author:
- Eric Dalquist edalquist@unicon.net
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultivaluedAttributeMerger
public MultivaluedAttributeMerger()
mergeAttributes
public Map mergeAttributes(Map dest,
Map source)
- Please note that the
dest map is modified.
- Specified by:
mergeAttributes in interface IAttributeMerger
- Parameters:
dest - - modify this mapsource - - in consideration of this map
- Returns:
- the modified Map
- See Also:
org.jasig.portal.services.persondir.support.merger.IAttributeMerger#mergeAttributes(java.util.Map, java.util.Map)
Copyright © 1998-2007 Java Architectures Special Interest Group. All Rights Reserved.