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| Constructor and Description |
|---|
Emoji(Element parent,
int entityIndex) |
Emoji(Element parent,
String annotation,
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)
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.
|
String |
getAnnotation() |
protected String |
getEntityIdPrefix() |
protected String |
getEntitySubType() |
protected String |
getEntityType() |
protected String |
getEntityValue() |
protected String |
getEntityVersion() |
String |
getFamily() |
String |
getSize() |
String |
toString() |
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_TAG
public Emoji(Element parent, int entityIndex)
public String getAnnotation()
public String getFamily()
public String getSize()
public void asPresentationML(XmlPrintStream out)
Elementpublic org.commonmark.node.Node asMarkdown()
throws InvalidInputException
ElementNode.InvalidInputExceptionpublic 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(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 © 2017 The Symphony Software Foundation. All rights reserved.