public class CMARichText extends CMARichNode
data| Constructor and Description |
|---|
CMARichText(CharSequence value,
List<CMARichMark> marks)
Create a value with the given marks.
|
CMARichText(String value)
Create a text with the given marks.
|
| Modifier and Type | Method and Description |
|---|---|
CMARichText |
addMarks(CMARichMark... marks)
Adds the given marks to this texts marks.
|
List<CMARichMark> |
getMarks() |
CharSequence |
getValue() |
CMARichText |
setMarks(List<CMARichMark> marks)
Updates the marks of this text.
|
CMARichText |
setValue(CharSequence value)
Update the value of this text.
|
getNodeTypepublic CMARichText(@NonNull
CharSequence value,
@NonNull
List<CMARichMark> marks)
value - the value to be displayed.marks - the marks to be used if any.NullPointerException - if one of the arguments is null.public CMARichText(@NonNull
String value)
value - the text to be displayed.NullPointerException - if value is null.@NonNull public CharSequence getValue()
@NonNull public CMARichText setValue(@NonNull CharSequence value)
value - the new value of the text.@NonNull public List<CMARichMark> getMarks()
@NonNull public CMARichText addMarks(@NonNull CMARichMark... marks)
marks - defines which marks to be added.NullPointerException - if marks is null.@NonNull public CMARichText setMarks(@NonNull List<CMARichMark> marks)
marks - defines which marks to be used.NullPointerException - if marks is null.Copyright © 2026 Contentful, GmbH.. All rights reserved.