org.mmbase.util.xml
Class UtilReader.PropertiesMap<E>

java.lang.Object
  extended by java.util.AbstractMap<String,E>
      extended by org.mmbase.util.xml.UtilReader.PropertiesMap<E>
All Implemented Interfaces:
Map<String,E>
Enclosing class:
UtilReader

public static class UtilReader.PropertiesMap<E>
extends AbstractMap<String,E>

A unmodifiable Map, with extra 'Properties'-like methods. The entries of this Map are typically backed by the resources of an UtilReader (and the Map dynamically changes if the resources change).

Since:
MMBase-1.8

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
UtilReader.PropertiesMap()
          Creates an empty Map (not very useful since this Map is unmodifiable).
UtilReader.PropertiesMap(Map<String,E> map)
          Wrapping the given map.
 
Method Summary
 Set<Map.Entry<String,E>> entrySet()
          
 E getProperty(String key, E defaultValue)
          Returns the object mapped with 'key', or defaultValue if there is none.
 
Methods inherited from class java.util.AbstractMap
clear, clone, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UtilReader.PropertiesMap

public UtilReader.PropertiesMap()
Creates an empty Map (not very useful since this Map is unmodifiable).


UtilReader.PropertiesMap

public UtilReader.PropertiesMap(Map<String,E> map)
Wrapping the given map.

Method Detail

entrySet

public Set<Map.Entry<String,E>> entrySet()

Specified by:
entrySet in interface Map<String,E>
Specified by:
entrySet in class AbstractMap<String,E>

getProperty

public E getProperty(String key,
                     E defaultValue)
Returns the object mapped with 'key', or defaultValue if there is none.



MMBase 2.0-SNAPSHOT - null