Class PlainText


  • public class PlainText
    extends java.lang.Object
    A block of text.

    A block of text can contain multiple paragraphs which will be treated individually within the block placement.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      (package private) static class  PlainText.Line
      An individual line of text.
      (package private) static class  PlainText.Paragraph
      A block of text to be formatted as a whole.
      (package private) static class  PlainText.TextAttribute
      Attribute keys and attribute values used for text handling.
      (package private) static class  PlainText.Word
      An individual word.
    • Constructor Summary

      Constructors 
      Constructor Description
      PlainText​(java.lang.String textValue)
      Construct the text block from a single value.
      PlainText​(java.util.List<java.lang.String> listValue)
      Construct the text block from a list of values.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) java.util.List<PlainText.Paragraph> getParagraphs()
      Get the list of paragraphs.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PlainText

        public PlainText​(java.lang.String textValue)
        Construct the text block from a single value. Constructs the text block from a single value splitting into individual PlainText.Paragraph when a new line character is encountered.
        Parameters:
        textValue - the text block string.
      • PlainText

        public PlainText​(java.util.List<java.lang.String> listValue)
        Construct the text block from a list of values. Constructs the text block from a list of values treating each entry as an individual PlainText.Paragraph.
        Parameters:
        listValue - the text block string.
    • Method Detail

      • getParagraphs

        java.util.List<PlainText.Paragraph> getParagraphs()
        Get the list of paragraphs.
        Returns:
        the paragraphs.