public interface SplittableElement
LabelableElement TooltipableElement
It is used by all element interfaces that require, during the conversion MessageML to PresentationML, to generate multiple
elements starting by a single one.
BEWARE: dont implement this interface, instead implement children interfaces
E.g.:
| Modifier and Type | Field and Description |
|---|---|
static String |
PRESENTATIONML_DIV_FLAG |
| Modifier and Type | Method and Description |
|---|---|
default void |
fillAttributes(MessageMLParser parser,
Node item)
Fill this
Element map attributes, used internally during parsing
Normally, you dont need to override the default method |
default void |
fillAttributes(MessageMLParser parser,
Node item,
Map<String,String> attributes)
Fill map attributes passed as parameter, used internally during parsing Normally, you dont need
to override the default method
|
String |
getAttribute(String attr)
Normally implemented by the root
Element implementing this interface |
Map<String,String> |
getAttributes()
Normally implemented by the root
Element implementing this interface |
default String |
getElementId() |
String |
getStringAttribute(Node attribute)
Normally implemented by the root
Element implementing this interface |
default boolean |
isSplittable() |
default boolean |
isSplittableNodeComponent(Node item)
Check if the current PresentationML node is part of SplittableElement
Normally, you dont need to override the default method
|
default String |
splittableAsPresentationML(XmlPrintStream out,
MessageMLContext context)
Convert the splittable elements (MessageML -> PresentationML).
|
default Set<String> |
splittableRemove() |
default void |
validateSplittable()
Validate all splittable elements present
Normally, you dont need to override the default method
|
static final String PRESENTATIONML_DIV_FLAG
default String splittableAsPresentationML(XmlPrintStream out, MessageMLContext context)
XmlPrintStream.closeElement()
Normally, you dont need to override the default methoddefault Set<String> splittableRemove()
default boolean isSplittableNodeComponent(Node item)
default void validateSplittable()
throws InvalidInputException
InvalidInputExceptiondefault boolean isSplittable()
default String getElementId()
default void fillAttributes(MessageMLParser parser, Node item, Map<String,String> attributes) throws InvalidInputException
InvalidInputExceptiondefault void fillAttributes(MessageMLParser parser, Node item) throws InvalidInputException
Element map attributes, used internally during parsing
Normally, you dont need to override the default methodInvalidInputExceptionString getAttribute(String attr)
Element implementing this interfaceMap<String,String> getAttributes()
Element implementing this interfaceCopyright © 2020 The Symphony Software Foundation. All rights reserved.