public interface LabelableElement
Element.buildAttribute(org.symphonyoss.symphony.messageml.MessageMLParser, org.w3c.dom.Node) and/or Element.asPresentationML(XmlPrintStream out,
MessageMLContext context) without calling super, it is needed to manage manually LABEL attribute and labelAsPresentationML(XmlPrintStream out,
MessageMLContext context) method| Modifier and Type | Field and Description |
|---|---|
static String |
LABEL |
static String |
LABEL_FOR |
static int |
LABEL_MAX_LENGTH |
static String |
LABEL_TOO_LONG_ERR |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttribute(String attr) |
default String |
getElementId() |
default Map<String,String> |
getLabelAttribute(String id)
Used internally, normally you dont need to override the default method
|
default String |
getPresentationMLLabelTag() |
default boolean |
isLabel() |
default String |
labelAsPresentationML(XmlPrintStream out,
MessageMLContext context)
Convert the label attribute to a label element (MessageML -> PresentationML).
|
default void |
validateLabel()
Validate label max length, if present
|
static final String LABEL
static final String LABEL_FOR
static final int LABEL_MAX_LENGTH
static final String LABEL_TOO_LONG_ERR
default String getPresentationMLLabelTag()
default Map<String,String> getLabelAttribute(String id)
id - used to generate the unique element iddefault String getElementId()
default String labelAsPresentationML(XmlPrintStream out, MessageMLContext context)
XmlPrintStream.closeElement()
Normally, you dont need to override the default methodout - context - default boolean isLabel()
default void validateLabel()
throws InvalidInputException
InvalidInputExceptionCopyright © 2020 The Symphony Software Foundation. All rights reserved.