edu.internet2.middleware.grouper.ui.util
Class MapBundleWrapper

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap
          extended by edu.internet2.middleware.grouper.ui.util.MapBundleWrapper
All Implemented Interfaces:
Serializable, Cloneable, Map

public class MapBundleWrapper
extends HashMap

Convenience class to allow a ResourceBundle to be acessed as a Map - used in JSTL. If a key starts with '*' the '*' is discarded, however, if no value is found and empty String is returned rather than ???key???

Version:
$Id: MapBundleWrapper.java,v 1.4 2008-03-31 20:04:34 mchyzer Exp $
Author:
Gary Brown.
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
MapBundleWrapper(ResourceBundle bundle1, boolean theReturnNullsIfNotFound)
           
 
Method Summary
 Object get(Object key)
          (non-Javadoc)
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

MapBundleWrapper

public MapBundleWrapper(ResourceBundle bundle1,
                        boolean theReturnNullsIfNotFound)
Parameters:
bundle1 - to wrap
theReturnNullsIfNotFound - if dont do question marks if not found
Method Detail

get

public Object get(Object key)
(non-Javadoc)

Specified by:
get in interface Map
Overrides:
get in class HashMap
See Also:
Map.get(java.lang.Object)