Package io.wcm.handler.richtext
Class RichText
java.lang.Object
io.wcm.handler.richtext.RichText
Holds information about a rich text processed and resolved by
RichTextHandler.-
Constructor Summary
ConstructorsConstructorDescriptionRichText(@NotNull RichTextRequest richTextRequest, @Nullable List<org.jdom2.Content> content) Constructor. -
Method Summary
Modifier and TypeMethodDescription@Nullable Collection<org.jdom2.Content> Gets the formatted markup as DOM elements.@Nullable StringGets the formatted markup as a string.@NotNull RichTextRequestGets the rich text request.booleanisValid()Checks if the rich text is valid.toString()
-
Constructor Details
-
RichText
public RichText(@NotNull @NotNull RichTextRequest richTextRequest, @Nullable @Nullable List<org.jdom2.Content> content) Constructor.- Parameters:
richTextRequest- Rich text requestcontent- Content
-
-
Method Details
-
getRichTextRequest
Gets the rich text request.- Returns:
- Rich text request
-
isValid
public boolean isValid()Checks if the rich text is valid.- Returns:
- True if rich text is valid and not empty
-
getContent
Gets the formatted markup as DOM elements.- Returns:
- Formatted markup as DOM elements or empty collection.
-
getMarkup
Gets the formatted markup as a string.- Returns:
- Formatted markup
-
toString
-