public class Emoji extends Entity
| Modifier and Type | Field and Description |
|---|---|
static String |
MESSAGEML_TAG |
ENTITY_ID_ATTR, ID_FIELD, PRESENTATIONML_CLASS, TYPE_FIELD, VALUE_FIELDCLASS_ATTR, format, ID_ATTR, STYLE_ATTR| Constructor and Description |
|---|
Emoji(Element parent,
int entityIndex) |
Emoji(Element parent,
String shortcode,
int entityIndex) |
| 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.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 |
buildAttribute(MessageMLParser parser,
Node item)
Parse a DOM attribute into MessageML element properties.
|
String |
getAnnotation()
It is deprecated, use getShortcode() instead
|
protected String |
getEntityIdPrefix() |
protected String |
getEntitySubType() |
protected String |
getEntityType() |
protected String |
getEntityValue() |
protected String |
getEntityVersion() |
String |
getFamily() |
String |
getShortCode() |
String |
getSize() |
String |
toString() |
void |
validate()
Check the syntax and contents of the element.
|
getPresentationMLTagaddChild, areNestedElementsAllowed, buildAll, buildNode, countNonTextNodesInNodeList, findElements, findElements, findElements, getAttribute, getAttributes, getChild, getChildren, getFormat, getMessageMLTag, getParent, getStringAttribute, hasExactNumberOfChildren, hasIdAttribute, size, throwInvalidInputExceptionpublic static final String MESSAGEML_TAG
public Emoji(Element parent, int entityIndex)
public String getAnnotation()
public String getShortCode()
public String getFamily()
public String getSize()
public void asPresentationML(XmlPrintStream out, MessageMLContext context)
Elementpublic org.commonmark.node.Node asMarkdown()
throws InvalidInputException
ElementNode.InvalidInputExceptionpublic String asText()
Elementpublic com.fasterxml.jackson.databind.node.ObjectNode asEntityJson(com.fasterxml.jackson.databind.node.ObjectNode parent)
ElementasEntityJson in class Entitypublic void validate()
throws InvalidInputException
Elementvalidate in class EntityInvalidInputExceptionprotected void buildAttribute(MessageMLParser parser, Node item) throws InvalidInputException
ElementbuildAttribute in class EntityInvalidInputExceptionprotected String getEntityValue()
getEntityValue in class Entityprotected String getEntitySubType()
getEntitySubType in class Entityprotected String getEntityVersion()
getEntityVersion in class Entityprotected String getEntityType()
getEntityType in class Entityprotected String getEntityIdPrefix()
getEntityIdPrefix in class EntityCopyright © 2020 The Symphony Software Foundation. All rights reserved.