Class AbstractFormattedWalker.MultiText

  • Enclosing class:
    AbstractFormattedWalker

    protected final class AbstractFormattedWalker.MultiText
    extends java.lang.Object
    Collect together the items that constitute formatted Text-like content.
    Author:
    Rolf Lear
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void appendCDATA​(AbstractFormattedWalker.Trim trim, java.lang.String text)
      Append some text to the text-like sequence that will be treated as CDATA.
      void appendRaw​(Content c)
      Add some JDOM Content (typically an EntityRef) that will be treated as part of the Text-like sequence.
      void appendText​(AbstractFormattedWalker.Trim trim, java.lang.String text)
      Append some text to the text-like sequence that will be treated as plain XML text (PCDATA).
      void done()
      Indicate that there is no further content to be added to the text-like sequence.
      • Methods inherited from class java.lang.Object

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

      • appendText

        public void appendText​(AbstractFormattedWalker.Trim trim,
                               java.lang.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,
                                java.lang.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.