public class MessageML extends Element
MessageMLContext.| Modifier and Type | Field and Description |
|---|---|
static String |
MESSAGEML_TAG |
static String |
MESSAGEML_VERSION |
static String |
PRESENTATIONML_TAG |
CLASS_ATTR, format| Constructor and Description |
|---|
MessageML(FormatEnum format,
String version) |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.node.ObjectNode |
asEntityJson(com.fasterxml.jackson.databind.node.ObjectNode parent)
Return the EntityJSON representation of the node.
|
org.commonmark.node.Document |
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.
|
protected void |
buildAttribute(Node item)
Parse a DOM attribute into MessageML element properties.
|
boolean |
isChime()
Return whether this message is a chime.
|
void |
setChime(boolean chime)
Return whether this message is a chime.
|
void |
validate()
Check the syntax and contents of the element.
|
addChild, asText, buildAll, findElements, findElements, findElements, getAttribute, getAttributes, getChild, getChildren, getFormat, getMessageMLTag, getParent, sizepublic static final String MESSAGEML_VERSION
public static final String MESSAGEML_TAG
public static final String PRESENTATIONML_TAG
public MessageML(FormatEnum format, String version)
protected void buildAttribute(Node item) throws InvalidInputException
ElementInvalidInputExceptionpublic org.commonmark.node.Document asMarkdown()
throws InvalidInputException
ElementNode.InvalidInputExceptionpublic void asPresentationML(XmlPrintStream out)
Elementpublic com.fasterxml.jackson.databind.node.ObjectNode asEntityJson(com.fasterxml.jackson.databind.node.ObjectNode parent)
Elementpublic void validate()
throws InvalidInputException
ElementInvalidInputExceptionpublic boolean isChime()
public void setChime(boolean chime)
Copyright © 2018 The Symphony Software Foundation. All rights reserved.