Class TextNode
- java.lang.Object
-
- org.symphonyoss.symphony.messageml.elements.Element
-
- org.symphonyoss.symphony.messageml.elements.TextNode
-
public class TextNode extends Element
Class representing text content.- Since:
- 3/27/17
- Author:
- lukasz
-
-
Field Summary
-
Fields inherited from class org.symphonyoss.symphony.messageml.elements.Element
CLASS_ATTR, format, ID_ATTR, MAPPER, STYLE_ATTR
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.commonmark.node.NodeasMarkdown()voidasPresentationML(XmlPrintStream out, MessageMLContext context)StringasText()Return a text representation of the element, descending into its children.protected voidbuildText(Text node)StringgetText()voidsetText(String text)StringtoString()-
Methods inherited from class org.symphonyoss.symphony.messageml.elements.Element
addChild, areNestedElementsAllowed, buildAll, buildNode, countChildrenOfType, countNonTextNodesInNodeList, findElements, findElements, findElements, getAttribute, getAttributes, getChild, getChildren, getFormat, getMessageMLTag, getParent, getPresentationMLTag, getStringAttribute, hasExactNumberOfChildren, hasIdAttribute, putIntegerIfPresent, putOneIfPresent, putStringIfPresent, size, throwInvalidInputException
-
-
-
-
Method Detail
-
asPresentationML
public void asPresentationML(XmlPrintStream out, MessageMLContext context)
-
asMarkdown
public org.commonmark.node.Node asMarkdown()
-
buildText
protected void buildText(Text node)
-
getText
public String getText()
-
setText
public void setText(String text)
-
asText
public String asText()
Description copied from class:ElementReturn a text representation of the element, descending into its children.
-
-