public class TextNode extends Element
CLASS_ATTR, format| Constructor and Description |
|---|
TextNode(Element parent,
String text) |
TextNode(Element parent,
Text node) |
| Modifier and Type | Method and Description |
|---|---|
org.commonmark.node.Node |
asMarkdown()
Return Markdown representation of the element as
Node. |
void |
asPresentationML(XmlPrintStream out)
Print a PresentationML representation of the element and its children to the provided PrintStream.
|
String |
asText()
Return a text representation of the element, descending into its children.
|
protected void |
buildText(Text node)
Build the text content of the element.
|
String |
getText() |
void |
setText(String text) |
String |
toString() |
addChild, buildAll, getAttribute, getAttributes, getChild, getChildren, getFormat, getMessageMLTag, getParent, sizepublic void asPresentationML(XmlPrintStream out)
Elementpublic org.commonmark.node.Node asMarkdown()
ElementNode.protected void buildText(Text node)
Elementpublic String getText()
public void setText(String text)
public String asText()
ElementCopyright © 2017 The Symphony Software Foundation. All rights reserved.