Interface StyleInfo


  • @ProviderType
    public interface StyleInfo
    A StyleInfo provides methods for retrieving style information. It represents a style resource defined in a content policy below a cq:styles node.
    Since:
    com.adobe.cq.wcm.style 1.0.0
    • Method Detail

      • getId

        @Nullable
        String getId()
        Retrieves the style ID.
        Returns:
        the unique style ID if it exists, null otherwise
        Since:
        com.adobe.cq.wcm.style 1.0.0
      • getLabel

        @Nullable
        String getLabel()
        Retrieves the readable name of the style.
        Returns:
        the readable name of the style if it exists, null otherwise
        Since:
        com.adobe.cq.wcm.style 1.0.0
      • getCssClasses

        @Nullable
        String getCssClasses()
        Retrieves the CSS style classes defined as a string for the style.
        Returns:
        the CSS style classes string if it exists, null otherwise
        Since:
        com.adobe.cq.wcm.style 1.0.0
      • getHtmlElement

        @Nullable
        String getHtmlElement()
        Retrieves the HTML element defined for the style.
        Returns:
        the HTML element if it exists, null otherwise
        Since:
        com.adobe.cq.wcm.style 1.0.0