public final class NodeHelper
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static Text |
addText(TextContainer container,
java.lang.String text)
Utility method to add the given text the text container.
|
public static Text addText(TextContainer container, java.lang.String text)
This method is intended to facilitate implementations of
TextContainer.addText(String).
If the last child of the given node is a text, the new text is appended
to the existing text node. If the new text does not start with a
punctuation ,.?! the two texts are separated by a space.
container - the container where to add the text.text - the text to add.