Class RichText


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

      • RichText

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

      • getRichTextRequest

        @NotNull
        public @NotNull RichTextRequest getRichTextRequest()
        Returns:
        Rich text request
      • isValid

        public boolean isValid()
        Returns:
        True if rich text is valid and not empty
      • getContent

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

        @Nullable
        public @Nullable java.lang.String getMarkup()
        Returns:
        Formatted markup
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object