public class Preformatted extends Element
| Modifier and Type | Field and Description |
|---|---|
static String |
MESSAGEML_TAG |
CLASS_ATTR, format, ID_ATTR, STYLE_ATTR| Constructor and Description |
|---|
Preformatted(Element parent) |
| 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.
|
void |
validate()
Check the syntax and contents of the element.
|
addChild, areNestedElementsAllowed, asText, buildAll, buildNode, countNonTextNodesInNodeList, findElements, findElements, findElements, getAttribute, getAttributes, getChild, getChildren, getFormat, getMessageMLTag, getParent, getPresentationMLTag, hasExactNumberOfChildren, hasIdAttribute, size, throwInvalidInputExceptionpublic static final String MESSAGEML_TAG
public Preformatted(Element parent)
public void asPresentationML(XmlPrintStream out, MessageMLContext context)
Elementpublic org.commonmark.node.Node asMarkdown()
throws InvalidInputException
ElementNode.InvalidInputExceptionpublic void validate()
throws InvalidInputException
ElementInvalidInputExceptionCopyright © 2020 The Symphony Software Foundation. All rights reserved.