Class StyleUtils


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

      Constructors 
      Constructor Description
      StyleUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String[] getAllowedStyleElements​(Component component)
      Retrieves a list of allowed style HTML elements for a component.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StyleUtils

        public StyleUtils()
    • Method Detail

      • getAllowedStyleElements

        @Nullable
        public static java.lang.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