@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()
Returns the type of the resource for which the export is performed.
|
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()
ComponentExporterReturns the type of the resource for which the export is performed.
NOTE: methods whose JSON serialization would lead to the same JSON property name (":type") will not be serialized.
getExportedType in interface ComponentgetExportedType in interface ComponentExporterComponentExporter.getExportedType()Copyright © 2010 - 2020 Adobe. All Rights Reserved