public abstract class TextContentHelper extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
primaryText
Primary text.
|
protected String |
secondaryText
Secondary text.
|
protected String |
tertiaryText
Tertiary text.
|
Constructor and Description |
---|
TextContentHelper() |
Modifier and Type | Method and Description |
---|---|
abstract TextContent |
build()
Abstract method to build an instance of TextContent.
|
static PlainTextContentContentHelper |
forPlainText()
Returns an instance of PlainTextContentContentHelper.
|
static RichContentTextContentHelper |
forRichText()
Returns an instance of RichContentTextContentHelper.
|
TextContentHelper |
withPrimaryText(String primaryText)
Adds primary text to TextContentHelper.
|
TextContentHelper |
withSecondaryText(String secondaryText)
Adds secondary text to TextContentHelper.
|
TextContentHelper |
withTertiaryText(String tertiaryText)
Adds tertiary text to TextContentHelper.
|
protected String primaryText
protected String secondaryText
protected String tertiaryText
public static PlainTextContentContentHelper forPlainText()
PlainTextContentContentHelper
.public static RichContentTextContentHelper forRichText()
RichContentTextContentHelper
.public TextContentHelper withPrimaryText(String primaryText)
primaryText
- primary text.TextContentHelper
.public TextContentHelper withSecondaryText(String secondaryText)
secondaryText
- secondary text.TextContentHelper
.public TextContentHelper withTertiaryText(String tertiaryText)
tertiaryText
- tertiary text.TextContentHelper
.public abstract TextContent build()
TextContent
.Copyright © 2023. All rights reserved.