Class RichText

java.lang.Object
io.wcm.handler.richtext.RichText

@ProviderType public final class RichText extends Object
Holds information about a rich text processed and resolved by RichTextHandler.
  • Constructor Details

    • RichText

      public RichText(@NotNull @NotNull RichTextRequest richTextRequest, @Nullable @Nullable List<org.jdom2.Content> content)
      Constructor.
      Parameters:
      richTextRequest - Rich text request
      content - Content
  • Method Details

    • getRichTextRequest

      @NotNull public @NotNull RichTextRequest 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

      @Nullable public @Nullable Collection<org.jdom2.Content> getContent()
      Gets the formatted markup as DOM elements.
      Returns:
      Formatted markup as DOM elements or empty collection.
    • getMarkup

      @Nullable public @Nullable String getMarkup()
      Gets the formatted markup as a string.
      Returns:
      Formatted markup
    • toString

      public String toString()
      Overrides:
      toString in class Object