Interface SplittableElement

    • Method Detail

      • splittableAsPresentationML

        default String splittableAsPresentationML​(XmlPrintStream out,
                                                  MessageMLContext context)
        Convert the splittable elements (MessageML -> PresentationML). It opens also a
        block, don't forget to close it by calling XmlPrintStream.closeElement() Normally, you dont need to override the default method
        Returns:
        the unique id generated
      • splittableRemove

        default Set<String> splittableRemove()
        Returns:
        attributes that should not present in PresentationML main element Normally, you dont need to override the default method
      • isSplittableNodeComponent

        default boolean isSplittableNodeComponent​(Node item)
        Check if the current PresentationML node is part of SplittableElement Normally, you dont need to override the default method
      • validateSplittable

        default void validateSplittable()
                                 throws InvalidInputException
        Validate all splittable elements present Normally, you dont need to override the default method
        Throws:
        InvalidInputException
      • isSplittable

        default boolean isSplittable()
        Returns:
        true if any splittable element exists Normally, you dont need to override the default method
      • getElementId

        default String getElementId()
        Returns:
        the name used to build unique element id
      • getAttribute

        String getAttribute​(String attr)
        Normally implemented by the root Element implementing this interface
      • getAttributes

        Map<String,​String> getAttributes()
        Normally implemented by the root Element implementing this interface
      • getStringAttribute

        String getStringAttribute​(Node attribute)
        Normally implemented by the root Element implementing this interface