Package org.opencms.ade.configuration
Class CmsFormatterUtils
- java.lang.Object
-
- org.opencms.ade.configuration.CmsFormatterUtils
-
public class CmsFormatterUtils extends java.lang.Object
Helper class for formatter-related functionality.
-
-
Constructor Summary
Constructors Constructor Description CmsFormatterUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Set<java.lang.String>
getAllFormatterKeys(CmsADEConfigData configData, CmsContainerElementBean element)
Gets the set of all formatter keys from the settings.static java.lang.String
getFormatterKey(java.lang.String containerName, java.util.Map<java.lang.String,java.lang.String> settings)
Gets the formatter key for the given container name from an element's settings.static java.lang.String
getFormatterKey(java.lang.String containerName, CmsContainerElementBean element)
Gets the formatter key for the given container name from an element's settings.static java.lang.String
removeFormatterKey(java.lang.String containerName, java.util.Map<java.lang.String,java.lang.String> settings)
Gets the formatter key for the given container name from an element's settings.
-
-
-
Constructor Detail
-
CmsFormatterUtils
public CmsFormatterUtils()
-
-
Method Detail
-
getAllFormatterKeys
public static java.util.Set<java.lang.String> getAllFormatterKeys(CmsADEConfigData configData, CmsContainerElementBean element)
Gets the set of all formatter keys from the settings.- Parameters:
configData
- the sitemap configurationelement
- the container element- Returns:
- the set of all formatter keys
-
getFormatterKey
public static java.lang.String getFormatterKey(java.lang.String containerName, CmsContainerElementBean element)
Gets the formatter key for the given container name from an element's settings.- Parameters:
containerName
- the container nameelement
- the element from which to get the formatter key- Returns:
- the formatter key
-
getFormatterKey
public static java.lang.String getFormatterKey(java.lang.String containerName, java.util.Map<java.lang.String,java.lang.String> settings)
Gets the formatter key for the given container name from an element's settings.- Parameters:
containerName
- the container namesettings
- the settings from which to get the formatter key- Returns:
- the formatter key
-
removeFormatterKey
public static java.lang.String removeFormatterKey(java.lang.String containerName, java.util.Map<java.lang.String,java.lang.String> settings)
Gets the formatter key for the given container name from an element's settings.- Parameters:
containerName
- the container namesettings
- the settings from which to remove the formatter key- Returns:
- the formatter key
-
-