Package com.contentful.java.cda.rich
Class CDARichText
- java.lang.Object
-
- com.contentful.java.cda.rich.CDARichNode
-
- com.contentful.java.cda.rich.CDARichText
-
public class CDARichText extends CDARichNode
A leaf element of the rich text node graph: Render a given text with the given markings.
-
-
Constructor Summary
Constructors Constructor Description CDARichText(java.lang.CharSequence text, java.util.List<CDARichMark> marks)Create a text with the given marks
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<CDARichMark>getMarks()java.lang.CharSequencegetText()
-
-
-
Constructor Detail
-
CDARichText
public CDARichText(java.lang.CharSequence text, java.util.List<CDARichMark> marks)Create a text with the given marks- Parameters:
text- the text to be displayedmarks- the marks to be used if any
-
-
Method Detail
-
getText
public java.lang.CharSequence getText()
- Returns:
- the text of this node.
-
getMarks
public java.util.List<CDARichMark> getMarks()
- Returns:
- the marks of this text.
- See Also:
CDARichMark.CDARichMarkBold
-
-