Class Xhtml


  • public class Xhtml
    extends Object
    The Class Xhtml representing a sequence of XHTML subtrees.

    e.g. the following code can be represented in a sequence of two XHTML nodes in this object:

     <notes>
            <p>
                    some text
            </p>
            <ul>
                    <li>
                            list item
                    </li>
            </ul>
     </notes>
     

    Of course, you can also create two Xhtml objects, each storing one node. Whatever you prefer.

    Author:
    Martin Scharm
    • Constructor Detail

      • Xhtml

        public Xhtml()
        Instantiates a new Xhtml object.
    • Method Detail

      • getDocumentNode

        public de.unirostock.sems.xmlutils.ds.DocumentNode getDocumentNode()
        Gets the corresponding document node.
        Returns:
        the document node
      • setXhtml

        public void setXhtml​(de.unirostock.sems.xmlutils.ds.DocumentNode node)
        Adds an XHTML subtree.
        Parameters:
        node - the node that roots the subtree
      • reportModification

        public void reportModification​(SimpleConnectionManager conMgmt,
                                       Xhtml a,
                                       Xhtml b,
                                       MarkupElement me)
        Report a modification between to Xhtml objects.
        Parameters:
        conMgmt - the connection
        a - the original version
        b - the modified version
        me - the markup element
      • reportInsert

        public void reportInsert​(MarkupElement me)
        Report this object as inserted.
        Parameters:
        me - the MarkupElement
      • reportDelete

        public void reportDelete​(MarkupElement me)
        Report this object as deleted.
        Parameters:
        me - the MarkupElement