@ConsumerType public interface Text extends Component
Text Sling Model used for the /apps/core/wcm/components/text component.| Modifier and Type | Method and Description |
|---|---|
default @NotNull String |
getExportedType() |
default String |
getText()
Retrieves the text value to be displayed.
|
default boolean |
isRichText()
Checks if the text to be displayed is rich text or not.
|
default String getText()
null if no value can be returneddefault in 12.1.0default boolean isRichText()
true if the text is rich (HTML formatting), false otherwisedefault in 12.1.0@NotNull default @NotNull String getExportedType()
getExportedType in interface ComponentgetExportedType in interface com.adobe.cq.export.json.ComponentExporterComponentExporter.getExportedType()Copyright © 2020. All rights reserved.