Package com.adobe.cq.wcm.style
Interface StyleInfo
-
@ProviderType public interface StyleInfoAStyleInfoprovides methods for retrieving style information. It represents a style resource defined in a content policy below acq:stylesnode.- Since:
- com.adobe.cq.wcm.style 1.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetCssClasses()Retrieves the CSS style classes defined as a string for the style.java.lang.StringgetHtmlElement()Retrieves the HTML element defined for the style.java.lang.StringgetId()Retrieves the style ID.java.lang.StringgetLabel()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,
nullotherwise - 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,
nullotherwise - 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,
nullotherwise - 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,
nullotherwise - Since:
- com.adobe.cq.wcm.style 1.0.0
-
-