Class 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 Detail

      • StyleUtils

        public StyleUtils()
    • Method Detail

      • 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