Class Emoji
- java.lang.Object
-
- org.symphonyoss.symphony.messageml.elements.Element
-
- org.symphonyoss.symphony.messageml.elements.Entity
-
- org.symphonyoss.symphony.messageml.elements.Emoji
-
public class Emoji extends Entity
Class representing an emoji- Since:
- 10/10/17
- Author:
- cristiadu
-
-
Field Summary
Fields Modifier and Type Field Description static StringMESSAGEML_TAG-
Fields inherited from class org.symphonyoss.symphony.messageml.elements.Entity
ENTITY_ID_ATTR, ID_FIELD, PRESENTATIONML_CLASS, TYPE_FIELD, VALUE_FIELD
-
Fields inherited from class org.symphonyoss.symphony.messageml.elements.Element
CLASS_ATTR, format, ID_ATTR, MAPPER, STYLE_ATTR
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.node.ObjectNodeasEntityJson(com.fasterxml.jackson.databind.node.ObjectNode parent)org.commonmark.node.NodeasMarkdown()voidasPresentationML(XmlPrintStream out, MessageMLContext context)StringasText()Return a text representation of the element, descending into its children.protected voidbuildAttribute(MessageMLParser parser, Node item)StringgetAnnotation()It is deprecated, use getShortcode() insteadprotected StringgetEntityIdPrefix()protected StringgetEntitySubType()protected StringgetEntityType()protected StringgetEntityValue()protected StringgetEntityVersion()StringgetFamily()StringgetShortCode()StringgetSize()StringtoString()voidvalidate()-
Methods inherited from class org.symphonyoss.symphony.messageml.elements.Entity
getPresentationMLTag
-
Methods inherited from class org.symphonyoss.symphony.messageml.elements.Element
addChild, areNestedElementsAllowed, buildAll, buildNode, countNonTextNodesInNodeList, findElements, findElements, findElements, getAttribute, getAttributes, getChild, getChildren, getFormat, getMessageMLTag, getParent, getStringAttribute, hasExactNumberOfChildren, hasIdAttribute, size, throwInvalidInputException
-
-
-
-
Field Detail
-
MESSAGEML_TAG
public static final String MESSAGEML_TAG
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAnnotation
public String getAnnotation()
It is deprecated, use getShortcode() instead- Returns:
- annotation
-
getShortCode
public String getShortCode()
-
getFamily
public String getFamily()
-
getSize
public String getSize()
-
asPresentationML
public void asPresentationML(XmlPrintStream out, MessageMLContext context)
-
asMarkdown
public org.commonmark.node.Node asMarkdown() throws InvalidInputException- Throws:
InvalidInputException
-
asText
public String asText()
Description copied from class:ElementReturn a text representation of the element, descending into its children.
-
asEntityJson
public com.fasterxml.jackson.databind.node.ObjectNode asEntityJson(com.fasterxml.jackson.databind.node.ObjectNode parent)
- Overrides:
asEntityJsonin classEntity
-
validate
public void validate() throws InvalidInputException- Overrides:
validatein classEntity- Throws:
InvalidInputException
-
buildAttribute
protected void buildAttribute(MessageMLParser parser, Node item) throws InvalidInputException
- Overrides:
buildAttributein classEntity- Throws:
InvalidInputException
-
getEntityValue
protected String getEntityValue()
- Specified by:
getEntityValuein classEntity
-
getEntitySubType
protected String getEntitySubType()
- Specified by:
getEntitySubTypein classEntity
-
getEntityVersion
protected String getEntityVersion()
- Specified by:
getEntityVersionin classEntity
-
getEntityType
protected String getEntityType()
- Specified by:
getEntityTypein classEntity
-
getEntityIdPrefix
protected String getEntityIdPrefix()
- Specified by:
getEntityIdPrefixin classEntity
-
-