Package org.jdom2.output.support
Class AbstractFormattedWalker.MultiText
- java.lang.Object
-
- org.jdom2.output.support.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.
-
-
-
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 contenttext
- 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 contenttext
- 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.
-
-