|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opencms.jsp.decorator.CmsDecorationMap
public class CmsDecorationMap
The CmsDecorationMap is the object representation of a single decoartion file.
The semicolon seperated elements of the decoartion file are stored in a map.
The map uses the decoration as keys and CmsDecorationObjects as values.
Multiple CmsDecorationMaps form a CmsDecorationBundle.
| Field Summary | |
|---|---|
static java.lang.String |
CSV_SEPERATOR
The seperator for the CSV file. |
| Constructor Summary | |
|---|---|
CmsDecorationMap(CmsDecorationDefintion decDef,
java.lang.String name,
java.util.Locale locale)
Constructor, creates a new, empty CmsDecorationMap. |
|
CmsDecorationMap(CmsObject cms,
CmsResource res,
CmsDecorationDefintion decDef)
Constructor, creates a new CmsDecorationMap. |
|
| Method Summary | |
|---|---|
int |
compareTo(CmsDecorationMap o)
|
boolean |
equals(java.lang.Object obj)
|
java.util.Map<java.lang.String,CmsDecorationObject> |
getDecorationMap()
Returns the decorationMap. |
java.util.Locale |
getLocale()
Returns the locale. |
java.lang.String |
getName()
Returns the name. |
int |
hashCode()
|
void |
setDecorationMap(java.util.Map<java.lang.String,CmsDecorationObject> decorationMap)
Sets the decorationMap. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CSV_SEPERATOR
| Constructor Detail |
|---|
public CmsDecorationMap(CmsDecorationDefintion decDef,
java.lang.String name,
java.util.Locale locale)
decDef - the CmsDecorationDefintion to be used in this decoration mapname - The name of the decoration maplocale - the locale for this decoration map
public CmsDecorationMap(CmsObject cms,
CmsResource res,
CmsDecorationDefintion decDef)
throws CmsException
cms - the CmsObjectres - the resource to extrace the decorations fromdecDef - the CmsDecorationDefintion to be used in this decoration map
CmsException - if something goes wrong| Method Detail |
|---|
public int compareTo(CmsDecorationMap o)
compareTo in interface java.lang.Comparable<CmsDecorationMap>Comparable.compareTo(java.lang.Object)public boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectObject.equals(java.lang.Object)public java.util.Map<java.lang.String,CmsDecorationObject> getDecorationMap()
public java.util.Locale getLocale()
public java.lang.String getName()
public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public void setDecorationMap(java.util.Map<java.lang.String,CmsDecorationObject> decorationMap)
decorationMap - the decorationMap to setpublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||