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 |
asMarkdown(org.commonmark.node.Node parent) |
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 void asMarkdown(org.commonmark.node.Node parent)
protected void buildText(Text node)
Elementpublic String getText()
public void setText(String text)
public String asText()
Elementpublic org.commonmark.node.Node asMarkdown()
ElementNode.Copyright © 2017 The Symphony Software Foundation. All rights reserved.