Class StyleUtils

java.lang.Object
com.adobe.cq.wcm.style.StyleUtils

public final class StyleUtils extends Object
Useful helper methods for the WCM style feature.
Since:
com.adobe.cq.wcm.style 1.0.0
  • Constructor Details

    • StyleUtils

      public StyleUtils()
  • Method Details

    • getAllowedStyleElements

      @Nullable public static String[] getAllowedStyleElements(@Nullable Component component)
      Retrieves a list of allowed style HTML elements for a component. If no elements is defined for the component, it walks the component hierarchy.
      Returns:
      an array of allowed style HTML elements, null otherwise
      Since:
      com.adobe.cq.wcm.style 1.0.0