Package de.unirostock.sems.bives.ds
Class Xhtml
- java.lang.Object
-
- de.unirostock.sems.bives.ds.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 Summary
Constructors Constructor Description Xhtml()
Instantiates a new Xhtml object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description de.unirostock.sems.xmlutils.ds.DocumentNode
getDocumentNode()
Gets the corresponding document node.void
reportDelete(MarkupElement me)
Report this object as deleted.void
reportInsert(MarkupElement me)
Report this object as inserted.void
reportModification(SimpleConnectionManager conMgmt, Xhtml a, Xhtml b, MarkupElement me)
Report a modification between to Xhtml objects.void
setXhtml(de.unirostock.sems.xmlutils.ds.DocumentNode node)
Adds an XHTML subtree.String
toString()
Prints the sequence of subtrees, all in one string.
-
-
-
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
-
toString
public String toString()
Prints the sequence of subtrees, all in one string.- Overrides:
toString
in classObject
- See Also:
Object.toString()
-
reportModification
public void reportModification(SimpleConnectionManager conMgmt, Xhtml a, Xhtml b, MarkupElement me)
Report a modification between to Xhtml objects.- Parameters:
conMgmt
- the connectiona
- the original versionb
- the modified versionme
- 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
-
-