| Modifier and Type | Method and Description |
|---|---|
Element |
MessageMLParser.createElement(Element element,
Element parent)
Create a MessageML element based on the DOM element's name and attributes.
|
Optional<Map<Class<? extends SplittableElement>,Map<String,String>>> |
MessageMLParser.getAllSplittableAttributes(String id)
Returns all attributes corresponding to the id
(used internally during parsing)
|
Optional<Map<Class<? extends SplittableElement>,org.apache.commons.lang3.tuple.Pair<String,String>>> |
MessageMLParser.getAllSplittableValues(String id)
Returns all values corresponding to the id
(used internally during parsing)
|
Optional<Map<String,String>> |
MessageMLParser.getSplittableAttributes(String id,
Class<? extends SplittableElement> clazz)
Returns the attributes corresponding to the id for a splittable element
(used internally during parsing)
|
String |
MessageMLContext.getText()
Retrieve a string representation of the message by getting the values of
its PresentationML elements.
|
String |
MessageMLContext.getText(boolean preserveWhitespace)
Retrieve a string representation of the message by getting the values of
its PresentationML elements.
|
void |
MessageMLParser.loadElementId(String id)
Loads the values of the "id" attribute of elements being parsed and verifies if these values are unique.
|
void |
MessageMLContext.parseMarkdown(String message,
com.fasterxml.jackson.databind.JsonNode entities,
com.fasterxml.jackson.databind.JsonNode media)
Parse a Markdown message into its MessageMLV2 representation.
|
void |
MessageMLContext.parseMessageML(String message,
String entityJson,
String version)
Parse the text contents of the message and optionally EntityJSON into a MessageMLV2 message.
|
| Modifier and Type | Method and Description |
|---|---|
org.commonmark.node.Node |
Emoji.asMarkdown() |
org.commonmark.node.Document |
MessageML.asMarkdown() |
org.commonmark.node.Node |
Mention.asMarkdown() |
org.commonmark.node.Node |
Preformatted.asMarkdown() |
void |
PersonSelector.buildAll(MessageMLParser parser,
Element element) |
void |
TextField.buildAll(MessageMLParser parser,
Element element) |
void |
DateSelector.buildAll(MessageMLParser parser,
Element element) |
void |
GroupedElement.buildAll(MessageMLParser parser,
Element element) |
void |
Element.buildAll(MessageMLParser parser,
Element element)
Process a DOM element, descending into its children, and construct the output MessageML tree.
|
protected void |
Span.buildAttribute(MessageMLParser parser,
Node item) |
protected void |
Emoji.buildAttribute(MessageMLParser parser,
Node item) |
protected void |
Entity.buildAttribute(MessageMLParser parser,
Node item) |
protected void |
MessageML.buildAttribute(MessageMLParser parser,
Node item) |
protected void |
PersonSelector.buildAttribute(MessageMLParser parser,
Node item) |
protected void |
Mention.buildAttribute(MessageMLParser parser,
Node item) |
protected void |
TextField.buildAttribute(MessageMLParser parser,
Node item) |
protected void |
Checkbox.buildAttribute(MessageMLParser parser,
Node item) |
protected void |
Div.buildAttribute(MessageMLParser parser,
Node item) |
protected void |
DateSelector.buildAttribute(MessageMLParser parser,
Node item) |
protected void |
Card.buildAttribute(MessageMLParser parser,
Node item) |
void |
Button.buildAttribute(MessageMLParser parser,
Node item) |
protected void |
Option.buildAttribute(MessageMLParser parser,
Node item) |
protected void |
Radio.buildAttribute(MessageMLParser parser,
Node item) |
protected void |
TextArea.buildAttribute(MessageMLParser parser,
Node item) |
protected void |
Chime.buildAttribute(MessageMLParser parser,
Node item) |
protected void |
Link.buildAttribute(MessageMLParser parser,
Node item) |
protected void |
Image.buildAttribute(MessageMLParser parser,
Node item) |
protected void |
Form.buildAttribute(MessageMLParser parser,
Node item) |
protected void |
Select.buildAttribute(MessageMLParser parser,
Node item) |
protected void |
GroupedElement.buildElementAttrFromInputTag(MessageMLParser parser,
Node inputElement) |
protected void |
GroupedElement.buildElementFromGroupDiv(MessageMLParser parser,
Element element) |
protected void |
Element.buildNode(MessageMLParser context,
Node node)
Build a text node or a MessageML element based on the provided DOM node.
|
default void |
SplittableElement.fillAttributes(MessageMLParser parser,
Node item)
Fill this
Element map attributes, used internally during parsing
Normally, you dont need to override the default method |
default void |
SplittableElement.fillAttributes(MessageMLParser parser,
Node item,
Map<String,String> attributes)
Fill map attributes passed as parameter, used internally during parsing Normally, you dont need
to override the default method
|
protected void |
Element.throwInvalidInputException(Node item) |
void |
TableRow.validate() |
void |
BulletList.validate() |
void |
HorizontalRule.validate() |
void |
Header.validate() |
void |
Span.validate() |
void |
Emoji.validate() |
void |
Entity.validate() |
void |
LineBreak.validate() |
void |
MessageML.validate() |
void |
PersonSelector.validate() |
void |
Mention.validate() |
void |
Code.validate() |
void |
TableBody.validate() |
void |
FormElement.validate() |
void |
TextField.validate() |
void |
Checkbox.validate() |
void |
Div.validate() |
void |
DateSelector.validate() |
void |
Button.validate() |
void |
Italic.validate() |
void |
Table.validate() |
void |
Option.validate() |
void |
Radio.validate() |
void |
TextArea.validate() |
void |
Chime.validate() |
void |
TableHeader.validate() |
void |
Link.validate() |
void |
Image.validate() |
void |
Form.validate() |
void |
TableFooter.validate() |
void |
Preformatted.validate() |
void |
Bold.validate() |
void |
Select.validate() |
void |
OrderedList.validate() |
static void |
Styles.validate(String styleAttribute)
Validate that the input style attribute is allowed
|
default void |
LabelableElement.validateLabel()
Validate label max length, if present
|
default void |
RegexElement.validateRegex()
Validate regex (it is called automatically by
when this method is not overridden |
default void |
SplittableElement.validateSplittable()
Validate all splittable elements present
Normally, you dont need to override the default method
|
default void |
TooltipableElement.validateTooltip()
Validate tooltip max length, if present
|
| Constructor and Description |
|---|
Chime(Element parent,
FormatEnum format) |
Link(Element parent,
IDataProvider dataProvider) |
Link(Element parent,
String href,
IDataProvider dataProvider) |
| Modifier and Type | Method and Description |
|---|---|
MessageML |
MarkdownParser.parse(String message,
com.fasterxml.jackson.databind.JsonNode entities,
com.fasterxml.jackson.databind.JsonNode media)
Parse the Markdown message and entity JSON into a MessageML document.
|
| Modifier and Type | Method and Description |
|---|---|
IUserPresentation |
IDataProvider.getUserPresentation(Long uid)
Retrieve user information object based on UID
|
IUserPresentation |
IDataProvider.getUserPresentation(String emailAddress)
Retrieve user information object based on user email
|
void |
IDataProvider.validateURI(URI uri)
Check an URI against a whitelist of supported protocols.
|
Copyright © 2020 The Symphony Software Foundation. All rights reserved.