Package com.adobe.cq.wcm.style
Class StyleUtils
- java.lang.Object
-
- com.adobe.cq.wcm.style.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.
-
-
-
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
-
-