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 Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getCssClasses()
      Retrieves the CSS style classes defined as a string for the style.
      java.lang.String getHtmlElement()
      Retrieves the HTML element defined for the style.
      java.lang.String getId()
      Retrieves the style ID.
      java.lang.String getLabel()
      Retrieves the readable name of the style.
    • Method Detail

      • getId

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