Package org.opencms.ade.configuration
Class CmsFormatterUtils
java.lang.Object
org.opencms.ade.configuration.CmsFormatterUtils
Helper class for formatter-related functionality.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAllFormatterKeys
(CmsADEConfigData configData, CmsContainerElementBean element) Gets the set of all formatter keys from the settings.static String
getFormatterKey
(String containerName, Map<String, String> settings) Gets the formatter key for the given container name from an element's settings.static String
getFormatterKey
(String containerName, CmsContainerElementBean element) Gets the formatter key for the given container name from an element's settings.static String
removeFormatterKey
(String containerName, Map<String, String> settings) Gets the formatter key for the given container name from an element's settings.
-
Constructor Details
-
CmsFormatterUtils
public CmsFormatterUtils()
-
-
Method Details
-
getAllFormatterKeys
public static Set<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
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
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
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
-