public class CmsDecorationBundle
extends java.lang.Object
The map inside the decoration bundle uses the decoration as keys and CmsDecorationObjects as values.
A decoration bundle contains either all decoarions for one locale (similar to a resource bundle), or is locale independend. If its a locale independend bundle, the included locale is set to null.
| 构造器和说明 |
|---|
CmsDecorationBundle()
Constructor, creates a new, empty CmsDecorationBundle.
|
CmsDecorationBundle(java.util.Locale locale)
Constructor, creates a new CmsDecorationBundle for a given locale.
|
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.Object |
get(java.lang.Object key)
Gets an object from the decoration bundle.
|
java.util.Map<java.lang.String,CmsDecorationObject> |
getAll()
Gets the map of all decoarion bundle entries.
|
java.util.Locale |
getLocale()
Gets the locale of this decoration bundle.
|
java.util.Set<java.lang.String> |
keySet()
Gets the keyset of the decoration bundle map.
|
void |
put(java.lang.String key,
CmsDecorationObject value)
Stores an obiect in the decoration bundle.
|
void |
putAll(java.util.Map<java.lang.String,CmsDecorationObject> map)
Puts a complete map of objects into bundle.
|
void |
setLocale(java.util.Locale locale)
Sets the locale of the decoration bundle.
|
public CmsDecorationBundle()
public CmsDecorationBundle(java.util.Locale locale)
locale - the locale of this bundle or nullpublic java.lang.Object get(java.lang.Object key)
key - the key of the object ot getpublic java.util.Map<java.lang.String,CmsDecorationObject> getAll()
public java.util.Locale getLocale()
public java.util.Set<java.lang.String> keySet()
public void put(java.lang.String key,
CmsDecorationObject value)
key - the key of the object to storevalue - the value of the object to storepublic void putAll(java.util.Map<java.lang.String,CmsDecorationObject> map)
map - the map to put into the bundlepublic void setLocale(java.util.Locale locale)
locale - the locale to set