public class Mention extends Entity
| Modifier and Type | Field and Description |
|---|---|
static String |
ENTITY_TYPE |
static String |
MESSAGEML_TAG |
ENTITY_ID_ATTR, ID_FIELD, PRESENTATIONML_CLASS, TYPE_FIELD, VALUE_FIELDCLASS_ATTR, format, STYLE_ATTR| Constructor and Description |
|---|
Mention(Element parent,
int entityIndex,
IDataProvider dataProvider) |
Mention(Element parent,
int entityIndex,
Long uid,
IDataProvider dataProvider) |
Mention(Element parent,
String presentationMlTag,
Long uid,
IDataProvider dataProvider) |
| 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.
|
String |
asText()
Return a text representation of the element, descending into its children.
|
protected void |
buildAttribute(Node item)
Parse a DOM attribute into MessageML element properties.
|
protected String |
getEntityIdPrefix() |
protected String |
getEntitySubType() |
protected String |
getEntityType() |
protected String |
getEntityValue() |
protected String |
getEntityVersion() |
IUserPresentation |
getUserPresentation() |
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, hasExactNumberOfChildren, hasIdAttribute, sizepublic static final String MESSAGEML_TAG
public static final String ENTITY_TYPE
public Mention(Element parent, int entityIndex, IDataProvider dataProvider)
public Mention(Element parent, int entityIndex, Long uid, IDataProvider dataProvider)
public Mention(Element parent, String presentationMlTag, Long uid, IDataProvider dataProvider)
protected void buildAttribute(Node item) throws InvalidInputException
ElementbuildAttribute in class EntityInvalidInputExceptionpublic 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 String asText()
Elementpublic void validate()
throws InvalidInputException
Elementvalidate in class EntityInvalidInputExceptionpublic IUserPresentation getUserPresentation()
protected String getEntityIdPrefix()
getEntityIdPrefix in class Entityprotected String getEntityValue()
getEntityValue in class Entityprotected String getEntitySubType()
getEntitySubType in class Entityprotected String getEntityVersion()
getEntityVersion in class Entityprotected String getEntityType()
getEntityType in class EntityCopyright © 2020 The Symphony Software Foundation. All rights reserved.