org.apache.commons.configuration
Class ConfigurationMap

java.lang.Object
  extended byjava.util.AbstractMap
      extended byorg.apache.commons.configuration.ConfigurationMap
All Implemented Interfaces:
Map

public class ConfigurationMap
extends AbstractMap

The ConfigurationMap wraps a configuration-collection Configuration instance to provide a Map interface.

Author:
Ricardo Gladwell

Nested Class Summary
(package private) static class ConfigurationMap.ConfigurationSet
           
 
Nested classes inherited from class java.util.AbstractMap
 
Nested classes inherited from class java.util.Map
Map.Entry
 
Field Summary
(package private)  Configuration configuration
          The Configuration wrapped by this class.
 
Fields inherited from class java.util.AbstractMap
 
Constructor Summary
ConfigurationMap(Configuration configuration)
          Creates a new instance of a ConfigurationMap that wraps the specified Configuration instance.
 
Method Summary
 Set entrySet()
           
 Object get(Object key)
           
 Object put(Object key, Object value)
           
 
Methods inherited from class java.util.AbstractMap
clear, clone, containsKey, containsValue, equals, hashCode, isEmpty, keySet, putAll, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

configuration

Configuration configuration
The Configuration wrapped by this class.

Constructor Detail

ConfigurationMap

public ConfigurationMap(Configuration configuration)
Creates a new instance of a ConfigurationMap that wraps the specified Configuration instance.

Parameters:
configuration - Configuration instance.
Method Detail

entrySet

public Set entrySet()
See Also:
Map.entrySet()

put

public Object put(Object key,
                  Object value)
See Also:
Map.put(java.lang.Object, java.lang.Object)

get

public Object get(Object key)
See Also:
Map.get(java.lang.Object)


Copyright © 2001-2004 The Apache Software Foundation. All Rights Reserved.