public class CmsDecorationMap extends java.lang.Object implements java.lang.Comparable<CmsDecorationMap>
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.
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
CSV_SEPERATOR
The seperator for the CSV file.
|
构造器和说明 |
---|
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.
|
限定符和类型 | 方法和说明 |
---|---|
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() |
public static final java.lang.String CSV_SEPERATOR
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 mappublic 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 mapCmsException
- if something goes wrongpublic int compareTo(CmsDecorationMap o)
compareTo
在接口中 java.lang.Comparable<CmsDecorationMap>
Comparable.compareTo(java.lang.Object)
public boolean equals(java.lang.Object obj)
equals
在类中 java.lang.Object
Object.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
在类中 java.lang.Object
Object.hashCode()
public void setDecorationMap(java.util.Map<java.lang.String,CmsDecorationObject> decorationMap)
decorationMap
- the decorationMap to setpublic java.lang.String toString()
toString
在类中 java.lang.Object
Object.toString()