|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ofbiz.base.util.collections.ResourceBundleMapWrapper
public class ResourceBundleMapWrapper
Generic ResourceBundle Map Wrapper, given ResourceBundle allows it to be used as a Map
Nested Class Summary | |
---|---|
static class |
ResourceBundleMapWrapper.InternalRbmWrapper
|
Nested classes/interfaces inherited from interface java.util.Map |
---|
java.util.Map.Entry<K,V> |
Field Summary | |
---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
context
|
protected java.util.ResourceBundle |
initialResourceBundle
|
protected MapStack<java.lang.String> |
rbmwStack
|
Constructor Summary | |
---|---|
protected |
ResourceBundleMapWrapper()
|
|
ResourceBundleMapWrapper(java.util.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(java.util.ResourceBundle initialResourceBundle,
java.util.Map<java.lang.String,java.lang.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. |
|
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. |
Method Summary | |
---|---|
void |
addBottomResourceBundle(java.util.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) |
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) |
void |
addBottomResourceBundle(java.lang.String resource)
Don't pass the locale to make sure it has the same locale as the base |
void |
clear()
|
boolean |
containsKey(java.lang.Object arg0)
|
boolean |
containsValue(java.lang.Object arg0)
|
java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Object>> |
entrySet()
|
java.lang.Object |
get(java.lang.Object arg0)
|
java.util.ResourceBundle |
getInitialResourceBundle()
|
boolean |
isEmpty()
|
java.util.Set<java.lang.String> |
keySet()
|
void |
pushResourceBundle(java.util.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... |
java.lang.Object |
put(java.lang.String key,
java.lang.Object value)
|
void |
putAll(java.util.Map<? extends java.lang.String,? extends java.lang.Object> arg0)
|
java.lang.Object |
remove(java.lang.Object arg0)
|
int |
size()
|
java.util.Collection<java.lang.Object> |
values()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Field Detail |
---|
protected MapStack<java.lang.String> rbmwStack
protected java.util.ResourceBundle initialResourceBundle
protected java.util.Map<java.lang.String,java.lang.Object> context
Constructor Detail |
---|
protected ResourceBundleMapWrapper()
public ResourceBundleMapWrapper(ResourceBundleMapWrapper.InternalRbmWrapper initialInternalRbmWrapper)
public ResourceBundleMapWrapper(java.util.ResourceBundle initialResourceBundle)
public ResourceBundleMapWrapper(java.util.ResourceBundle initialResourceBundle, java.util.Map<java.lang.String,java.lang.Object> context)
Method Detail |
---|
public void addBottomResourceBundle(java.util.ResourceBundle topResourceBundle)
public void addBottomResourceBundle(ResourceBundleMapWrapper.InternalRbmWrapper topInternalRbmWrapper)
public void addBottomResourceBundle(java.lang.String resource)
public void pushResourceBundle(java.util.ResourceBundle topResourceBundle)
public java.util.ResourceBundle getInitialResourceBundle()
public void clear()
clear
in interface java.util.Map<java.lang.String,java.lang.Object>
public boolean containsKey(java.lang.Object arg0)
containsKey
in interface java.util.Map<java.lang.String,java.lang.Object>
public boolean containsValue(java.lang.Object arg0)
containsValue
in interface java.util.Map<java.lang.String,java.lang.Object>
public java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Object>> entrySet()
entrySet
in interface java.util.Map<java.lang.String,java.lang.Object>
public java.lang.Object get(java.lang.Object arg0)
get
in interface java.util.Map<java.lang.String,java.lang.Object>
public boolean isEmpty()
isEmpty
in interface java.util.Map<java.lang.String,java.lang.Object>
public java.util.Set<java.lang.String> keySet()
keySet
in interface java.util.Map<java.lang.String,java.lang.Object>
public java.lang.Object put(java.lang.String key, java.lang.Object value)
put
in interface java.util.Map<java.lang.String,java.lang.Object>
public void putAll(java.util.Map<? extends java.lang.String,? extends java.lang.Object> arg0)
putAll
in interface java.util.Map<java.lang.String,java.lang.Object>
public java.lang.Object remove(java.lang.Object arg0)
remove
in interface java.util.Map<java.lang.String,java.lang.Object>
public int size()
size
in interface java.util.Map<java.lang.String,java.lang.Object>
public java.util.Collection<java.lang.Object> values()
values
in interface java.util.Map<java.lang.String,java.lang.Object>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |