org.apache.maven.shared.filtering
Class CompositeMap
java.lang.Object
java.util.AbstractMap
org.apache.maven.shared.filtering.CompositeMap
- All Implemented Interfaces:
- Map
public class CompositeMap
- extends AbstractMap
A Map composed with some others (optional adding SystemProperties and envvar)
The get Method look in the Map list to return the corresponding value
- Version:
- $Id: CompositeMap.java 744583 2009-02-14 23:27:29Z bentmann $
- Author:
- olamy
| Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
| Methods inherited from class java.util.AbstractMap |
clear, clone, containsKey, containsValue, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, toString, values |
CompositeMap
public CompositeMap(List maps)
- Parameters:
maps -
CompositeMap
public CompositeMap(List maps,
boolean useSystemProperties,
boolean systemPropertiesFirst)
- Parameters:
maps - an orderer List of MapuseSystemProperties - using or not the System PropertiessystemPropertiesFirst - if with get( key ) the sysProps must wins (the internal ordered List
will have in first the System Properties)
get
public Object get(Object key)
- Specified by:
get in interface Map- Overrides:
get in class AbstractMap
entrySet
public Set entrySet()
- Specified by:
entrySet in interface Map- Specified by:
entrySet in class AbstractMap
- See Also:
AbstractMap.entrySet()
getMaps
public List getMaps()
addMap
public void addMap(Map map)
isSystemPropertiesFirst
public boolean isSystemPropertiesFirst()
setSystemPropertiesFirst
public void setSystemPropertiesFirst(boolean systemPropertiesFirst)
Copyright © 2002-2011 Apache Software Foundation. All Rights Reserved.