org.apache.commons.configuration
public class ConfigurationMap extends java.util.AbstractMap
The ConfigurationMap wraps a
configuration-collection
Configuration
instance to provide a Map interface.
Note: This implementation is incomplete.
| Constructor and Description |
|---|
ConfigurationMap(Configuration configuration)
Creates a new instance of a
ConfigurationMap
that wraps the specified Configuration
instance. |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set |
entrySet()
Returns a set with the entries contained in this configuration-based map.
|
java.lang.Object |
get(java.lang.Object key)
Returns the value of the specified key.
|
Configuration |
getConfiguration()
Returns the wrapped
Configuration object. |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Stores the value for the specified key.
|
public ConfigurationMap(Configuration configuration)
ConfigurationMap
that wraps the specified Configuration
instance.configuration - Configuration
instance.public Configuration getConfiguration()
Configuration object.public java.util.Set entrySet()
entrySet in interface java.util.MapentrySet in class java.util.AbstractMapMap.entrySet()public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
put in interface java.util.Mapput in class java.util.AbstractMapkey - the key (will be converted to a string)value - the valueMap.put(java.lang.Object, java.lang.Object)public java.lang.Object get(java.lang.Object key)
get in interface java.util.Mapget in class java.util.AbstractMapkey - the keyMap.get(java.lang.Object)Copyright © 2001-2016. All Rights Reserved.