Class CmsFormatterUtils

java.lang.Object
org.opencms.ade.configuration.CmsFormatterUtils

public class CmsFormatterUtils extends Object
Helper class for formatter-related functionality.
  • Constructor Details

  • Method Details

    • getAllFormatterKeys

      Gets the set of all formatter keys from the settings.
      Parameters:
      configData - the sitemap configuration
      element - the container element
      Returns:
      the set of all formatter keys
    • getFormatterKey

      public static String getFormatterKey(String containerName, CmsContainerElementBean element)
      Gets the formatter key for the given container name from an element's settings.
      Parameters:
      containerName - the container name
      element - the element from which to get the formatter key
      Returns:
      the formatter key
    • getFormatterKey

      public static String getFormatterKey(String containerName, Map<String,String> settings)
      Gets the formatter key for the given container name from an element's settings.
      Parameters:
      containerName - the container name
      settings - the settings from which to get the formatter key
      Returns:
      the formatter key
    • removeFormatterKey

      public static String removeFormatterKey(String containerName, Map<String,String> settings)
      Gets the formatter key for the given container name from an element's settings.
      Parameters:
      containerName - the container name
      settings - the settings from which to remove the formatter key
      Returns:
      the formatter key