Class ResourceBundleMapWrapper

java.lang.Object
org.apache.ofbiz.base.util.collections.ResourceBundleMapWrapper
All Implemented Interfaces:
Serializable, Map<String,Object>

public class ResourceBundleMapWrapper extends Object implements Map<String,Object>, Serializable
Generic ResourceBundle Map Wrapper, given ResourceBundle allows it to be used as a Map
See Also:
  • Constructor Details

    • ResourceBundleMapWrapper

      protected ResourceBundleMapWrapper()
    • ResourceBundleMapWrapper

      public ResourceBundleMapWrapper(ResourceBundleMapWrapper.InternalRbmWrapper initialInternalRbmWrapper)
      When creating new from a InternalRbmWrapper the one passed to the constructor should be the most specific or local InternalRbmWrapper, with more common ones pushed onto the stack progressively.
    • ResourceBundleMapWrapper

      public ResourceBundleMapWrapper(ResourceBundle initialResourceBundle)
      When creating new from a ResourceBundle the one passed to the constructor should be the most specific or local ResourceBundle, with more common ones pushed onto the stack progressively.
    • ResourceBundleMapWrapper

      public ResourceBundleMapWrapper(ResourceBundle initialResourceBundle, Map<String,Object> context)
      When creating new from a ResourceBundle the one passed to the constructor should be the most specific or local ResourceBundle, with more common ones pushed onto the stack progressively.
  • Method Details

    • addBottomResourceBundle

      public void addBottomResourceBundle(ResourceBundle topResourceBundle)
      Puts ResourceBundle on the BOTTOM of the stack (bottom meaning will be overriden by higher layers on the stack, ie everything else already there)
    • addBottomResourceBundle

      public void addBottomResourceBundle(ResourceBundleMapWrapper.InternalRbmWrapper topInternalRbmWrapper)
      Puts InternalRbmWrapper on the BOTTOM of the stack (bottom meaning will be overriden by higher layers on the stack, ie everything else already there)
    • addBottomResourceBundle

      public void addBottomResourceBundle(String resource)
      Don't pass the locale to make sure it has the same locale as the base
    • pushResourceBundle

      public void pushResourceBundle(ResourceBundle topResourceBundle)
      In general we don't want to use this, better to start with the more specific ResourceBundle and add layers of common ones... Puts ResourceBundle on the top of the stack (top meaning will override lower layers on the stack)
    • getInitialResourceBundle

      public ResourceBundle getInitialResourceBundle()
      Gets initial resource bundle.
      Returns:
      the initial resource bundle
    • clear

      public void clear()
      Specified by:
      clear in interface Map<String,Object>
    • containsKey

      public boolean containsKey(Object arg0)
      Specified by:
      containsKey in interface Map<String,Object>
    • containsValue

      public boolean containsValue(Object arg0)
      Specified by:
      containsValue in interface Map<String,Object>
    • entrySet

      public Set<Map.Entry<String,Object>> entrySet()
      Specified by:
      entrySet in interface Map<String,Object>
    • get

      public Object get(Object arg0)
      Specified by:
      get in interface Map<String,Object>
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface Map<String,Object>
    • keySet

      public Set<String> keySet()
      Specified by:
      keySet in interface Map<String,Object>
    • put

      public Object put(String key, Object value)
      Specified by:
      put in interface Map<String,Object>
    • putAll

      public void putAll(Map<? extends String,? extends Object> arg0)
      Specified by:
      putAll in interface Map<String,Object>
    • remove

      public Object remove(Object arg0)
      Specified by:
      remove in interface Map<String,Object>
    • size

      public int size()
      Specified by:
      size in interface Map<String,Object>
    • values

      public Collection<Object> values()
      Specified by:
      values in interface Map<String,Object>