Package com.nomagic.text.builders
Class PlainOrLightHtmlTextBuilder<T extends PlainOrLightHtmlTextBuilder>
- java.lang.Object
-
- com.nomagic.text.builders.AbstractTextBuilder<T>
-
- com.nomagic.text.builders.PlainOrLightHtmlTextBuilder<T>
-
- All Implemented Interfaces:
TextBuilder<T>
@OpenApiAll public class PlainOrLightHtmlTextBuilder<T extends PlainOrLightHtmlTextBuilder> extends AbstractTextBuilder<T>
Builder used for plain or light html text building. Colored fragments are not supported. Output text format depends on input text format - if at least one light html fragment added, result will be light html, otherwise result will be plain text. Note - full html and rich text fragments will be converted to a light html.
-
-
Constructor Summary
Constructors Constructor Description PlainOrLightHtmlTextBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
toAppendableText(java.lang.String text)
java.lang.String
toPlainText()
java.lang.String
toString()
-
Methods inherited from class com.nomagic.text.builders.AbstractTextBuilder
append, appendColor, appendToText, isTextAdded, prepend, prependColor, prependToText, replaceText, setText, textLength
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.nomagic.text.builders.TextBuilder
append, appendWithNoWrap, compress, isColorSupported, isPlainTextEmpty, prepend, prependWithNoWrap, setColor, setText
-
-
-
-
Method Detail
-
toAppendableText
protected java.lang.String toAppendableText(java.lang.String text)
- Overrides:
toAppendableText
in classAbstractTextBuilder<T extends PlainOrLightHtmlTextBuilder>
-
toString
public java.lang.String toString()
- Specified by:
toString
in interfaceTextBuilder<T extends PlainOrLightHtmlTextBuilder>
- Overrides:
toString
in classAbstractTextBuilder<T extends PlainOrLightHtmlTextBuilder>
- Returns:
- result string
-
toPlainText
public java.lang.String toPlainText()
- Returns:
- result string as plain text
-
-