public class DefaultDiffAnnotator extends DiffAnnotator
| Constructor and Description |
|---|
DefaultDiffAnnotator() |
| Modifier and Type | Method and Description |
|---|---|
de.unirostock.sems.comodi.Change |
annotateDeletion(de.unirostock.sems.xmlutils.ds.TreeNode node,
org.jdom2.Element diffNode,
de.unirostock.sems.comodi.ChangeFactory changeFac)
Annotate a deletion.
|
de.unirostock.sems.comodi.Change |
annotateInsertion(de.unirostock.sems.xmlutils.ds.TreeNode node,
org.jdom2.Element diffNode,
de.unirostock.sems.comodi.ChangeFactory changeFac)
Annotate an insertion.
|
de.unirostock.sems.comodi.Change |
annotateMove(de.unirostock.sems.xmlutils.ds.TreeNode nodeA,
de.unirostock.sems.xmlutils.ds.TreeNode nodeB,
org.jdom2.Element diffNode,
de.unirostock.sems.comodi.ChangeFactory changeFac,
boolean permutation)
Annotate a move.
|
void |
annotatePatch(String rootId,
de.unirostock.sems.comodi.ChangeFactory changeFac)
Annotate the Patch itself with information about the software used to create this .
|
de.unirostock.sems.comodi.Change |
annotateUpdateAttribute(de.unirostock.sems.xmlutils.ds.TreeNode nodeA,
de.unirostock.sems.xmlutils.ds.TreeNode nodeB,
String attributeName,
org.jdom2.Element diffNode,
de.unirostock.sems.comodi.ChangeFactory changeFac)
Annotate an update of an attribute value.
|
de.unirostock.sems.comodi.Change |
annotateUpdateText(de.unirostock.sems.xmlutils.ds.TextNode nodeA,
de.unirostock.sems.xmlutils.ds.TextNode nodeB,
org.jdom2.Element diffNode,
de.unirostock.sems.comodi.ChangeFactory changeFac)
Annotate an update of a text node.
|
public de.unirostock.sems.comodi.Change annotateDeletion(de.unirostock.sems.xmlutils.ds.TreeNode node,
org.jdom2.Element diffNode,
de.unirostock.sems.comodi.ChangeFactory changeFac)
DiffAnnotatorannotateDeletion in class DiffAnnotatornode - this node or something in this node was deleteddiffNode - the node encoding for the differencechangeFac - the change factory to produce changespublic de.unirostock.sems.comodi.Change annotateInsertion(de.unirostock.sems.xmlutils.ds.TreeNode node,
org.jdom2.Element diffNode,
de.unirostock.sems.comodi.ChangeFactory changeFac)
DiffAnnotatorannotateInsertion in class DiffAnnotatornode - this node or something in this node was inserteddiffNode - the node encoding for the differencechangeFac - the change factory to produce changespublic de.unirostock.sems.comodi.Change annotateMove(de.unirostock.sems.xmlutils.ds.TreeNode nodeA,
de.unirostock.sems.xmlutils.ds.TreeNode nodeB,
org.jdom2.Element diffNode,
de.unirostock.sems.comodi.ChangeFactory changeFac,
boolean permutation)
DiffAnnotatorannotateMove in class DiffAnnotatornodeA - this node was movednodeB - `nodeA` was moved to this placediffNode - the node encoding for the differencechangeFac - the change factory to produce changespermutation - is that just a permutation of nodes under the same parent?public de.unirostock.sems.comodi.Change annotateUpdateAttribute(de.unirostock.sems.xmlutils.ds.TreeNode nodeA,
de.unirostock.sems.xmlutils.ds.TreeNode nodeB,
String attributeName,
org.jdom2.Element diffNode,
de.unirostock.sems.comodi.ChangeFactory changeFac)
DiffAnnotatorannotateUpdateAttribute in class DiffAnnotatornodeA - the attribute in this node was updatednodeB - this node contains the final attribute valueattributeName - the attribute with this name was updateddiffNode - the node encoding for the differencechangeFac - the change factory to produce changespublic de.unirostock.sems.comodi.Change annotateUpdateText(de.unirostock.sems.xmlutils.ds.TextNode nodeA,
de.unirostock.sems.xmlutils.ds.TextNode nodeB,
org.jdom2.Element diffNode,
de.unirostock.sems.comodi.ChangeFactory changeFac)
DiffAnnotatorannotateUpdateText in class DiffAnnotatornodeA - the original text nodenodeB - the modified text nodediffNode - the node encoding for the differencechangeFac - the change factory to produce changespublic void annotatePatch(String rootId, de.unirostock.sems.comodi.ChangeFactory changeFac)
DiffAnnotatorannotatePatch in class DiffAnnotatorrootId - the id of the parent node of the patchchangeFac - the change factory to produce changesCopyright © 2019 SEMS project @ University of Rostock. All rights reserved.