public interface LabelableElement extends SplittableElement
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 SplittableElement.splittableAsPresentationML(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 |
PRESENTATIONML_DIV_FLAG| Modifier and Type | Method and Description |
|---|---|
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 boolean |
isLabelNode(Node item)
Check if the PresentationML node is a label
|
default void |
validateLabel()
Validate label max length, if present
|
fillAttributes, fillAttributes, getAttribute, getAttributes, getElementId, getStringAttribute, isSplittable, isSplittableNodeComponent, splittableAsPresentationML, splittableRemove, validateSplittablestatic 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 boolean isLabel()
default boolean isLabelNode(Node item)
default void validateLabel()
throws InvalidInputException
InvalidInputExceptionCopyright © 2020 The Symphony Software Foundation. All rights reserved.