public class HashTag extends Entity
| Modifier and Type | Field and Description |
|---|---|
static String |
ENTITY_TYPE |
static String |
MESSAGEML_TAG |
static String |
PREFIX |
protected String |
tag |
ENTITY_ID_ATTR, ID_FIELD, PRESENTATIONML_CLASS, TYPE_FIELD, VALUE_FIELDCLASS_ATTR, format, STYLE_ATTR| Constructor and Description |
|---|
HashTag(Element parent,
int entityIndex) |
HashTag(Element parent,
int entityIndex,
String value) |
HashTag(Element parent,
String presentationMlTag,
String value) |
| Modifier and Type | Method and Description |
|---|---|
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() |
String |
getTag() |
String |
toString() |
void |
validate()
Check the syntax and contents of the element.
|
asEntityJsonaddChild, buildAll, findElements, findElements, findElements, getAttribute, getAttributes, getChild, getChildren, getFormat, getMessageMLTag, getParent, sizepublic static final String MESSAGEML_TAG
public static final String PREFIX
public static final String ENTITY_TYPE
protected String tag
public HashTag(Element parent, int entityIndex)
public String asText()
Elementpublic org.commonmark.node.Node asMarkdown()
ElementNode.public String toString()
protected String getEntitySubType()
getEntitySubType in class Entityprotected String getEntityVersion()
getEntityVersion in class Entityprotected String getEntityType()
getEntityType in class Entityprotected void buildAttribute(Node item) throws InvalidInputException
ElementbuildAttribute in class EntityInvalidInputExceptionpublic void validate()
throws InvalidInputException
Elementvalidate in class EntityInvalidInputExceptionpublic String getTag()
protected String getEntityIdPrefix()
getEntityIdPrefix in class Entitypublic void asPresentationML(XmlPrintStream out)
Elementprotected String getEntityValue()
getEntityValue in class EntityCopyright © 2018 The Symphony Software Foundation. All rights reserved.