Package org.jdom2.output.support
Class AbstractFormattedWalker.MultiText
java.lang.Object
org.jdom2.output.support.AbstractFormattedWalker.MultiText
- Enclosing class:
AbstractFormattedWalker
Collect together the items that constitute formatted Text-like content.
- Author:
- Rolf Lear
-
Method Summary
Modifier and TypeMethodDescriptionvoid
appendCDATA
(AbstractFormattedWalker.Trim trim, String text) Append some text to the text-like sequence that will be treated as CDATA.void
Add some JDOM Content (typically an EntityRef) that will be treated as part of the Text-like sequence.void
appendText
(AbstractFormattedWalker.Trim trim, 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.
-
Method Details
-
appendText
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 contenttext
- The actual Text content.
-
appendCDATA
Append some text to the text-like sequence that will be treated as CDATA.- Parameters:
trim
- How to prepare the CDATA contenttext
- The actual CDATA content.
-
appendRaw
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.
-