org.mmbase.util.xml
Class UtilReader.PropertiesMap

java.lang.Object
  extended byjava.util.AbstractMap
      extended byorg.mmbase.util.xml.UtilReader.PropertiesMap
All Implemented Interfaces:
Map
Enclosing class:
UtilReader

public static class UtilReader.PropertiesMap
extends AbstractMap

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 inherited from class java.util.Map
Map.Entry
 
Constructor Summary
UtilReader.PropertiesMap()
          Creates an empty Map (not very useful since this Map is unmodifiable).
UtilReader.PropertiesMap(Map map)
          Wrapping the given map.
 
Method Summary
 Set entrySet()
          
 Object getProperty(Object key, Object 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 map)
Wrapping the given map.

Method Detail

entrySet

public Set entrySet()


getProperty

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



MMBase build 1.8.1.20060716