Class AbstractFormattedWalker.MultiText

  • Enclosing class:
    AbstractFormattedWalker

    protected final class AbstractFormattedWalker.MultiText
    extends Object
    Collect together the items that constitute formatted Text-like content.
    • Method Detail

      • appendText

        public void appendText​(AbstractFormattedWalker.Trim trim,
                               String text)
        Append some text to the text-like sequence that will be treated as plain XML text (PCDATA). If the last content added to this text-like sequence then this new text will be appended directly to the previous text.
        Parameters:
        trim - How to prepare the Text content
        text - The actual Text content.
      • appendCDATA

        public void appendCDATA​(AbstractFormattedWalker.Trim trim,
                                String text)
        Append some text to the text-like sequence that will be treated as CDATA.
        Parameters:
        trim - How to prepare the CDATA content
        text - The actual CDATA content.
      • appendRaw

        public void appendRaw​(Content c)
        Add some JDOM Content (typically an EntityRef) that will be treated as part of the Text-like sequence.
        Parameters:
        c - the content to add.
      • done

        public void done()
        Indicate that there is no further content to be added to the text-like sequence.