public class TextNode extends Element
CLASS_ATTR, format, ID_ATTR, STYLE_ATTR| 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,
MessageMLContext context)
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, areNestedElementsAllowed, buildAll, buildNode, countNonTextNodesInNodeList, findElements, findElements, findElements, getAttribute, getAttributes, getChild, getChildren, getFormat, getMessageMLTag, getParent, getPresentationMLTag, getStringAttribute, hasExactNumberOfChildren, hasIdAttribute, size, throwInvalidInputExceptionpublic void asPresentationML(XmlPrintStream out, MessageMLContext context)
Elementpublic org.commonmark.node.Node asMarkdown()
ElementNode.protected void buildText(Text node)
Elementpublic String getText()
public void setText(String text)
public String asText()
ElementCopyright © 2020 The Symphony Software Foundation. All rights reserved.