Package org.opencms.jsp.decorator
Class CmsDecorationMap
java.lang.Object
org.opencms.jsp.decorator.CmsDecorationMap
- All Implemented Interfaces:
Comparable<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.
- Since:
- 6.1.3
-
Field Summary
-
Constructor Summary
ConstructorDescriptionCmsDecorationMap
(CmsObject cms, CmsResource res, CmsDecorationDefintion decDef) Constructor, creates a new CmsDecorationMap.CmsDecorationMap
(CmsDecorationDefintion decDef, String name, Locale locale) Constructor, creates a new, empty CmsDecorationMap. -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
Returns the decorationMap.Returns the locale.getName()
Returns the name.int
hashCode()
void
setDecorationMap
(Map<String, CmsDecorationObject> decorationMap) Sets the decorationMap.toString()
-
Field Details
-
CSV_SEPERATOR
The seperator for the CSV file.- See Also:
-
-
Constructor Details
-
CmsDecorationMap
Constructor, creates a new, empty CmsDecorationMap.- Parameters:
decDef
- the CmsDecorationDefintion to be used in this decoration mapname
- The name of the decoration maplocale
- the locale for this decoration map
-
CmsDecorationMap
public CmsDecorationMap(CmsObject cms, CmsResource res, CmsDecorationDefintion decDef) throws CmsException Constructor, creates a new CmsDecorationMap.- Parameters:
cms
- the CmsObjectres
- the resource to extrace the decorations fromdecDef
- the CmsDecorationDefintion to be used in this decoration map- Throws:
CmsException
- if something goes wrong
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<CmsDecorationMap>
- See Also:
-
equals
-
getDecorationMap
Returns the decorationMap.- Returns:
- the decorationMap
-
getLocale
Returns the locale.- Returns:
- the locale
-
getName
Returns the name.- Returns:
- the name
-
hashCode
-
setDecorationMap
Sets the decorationMap.- Parameters:
decorationMap
- the decorationMap to set
-
toString
-