public abstract class DiffAnnotator extends Object
| Constructor and Description |
|---|
DiffAnnotator() |
| Modifier and Type | Method and Description |
|---|---|
abstract 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.
|
abstract 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.
|
abstract 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.
|
abstract void |
annotatePatch(String rootId,
de.unirostock.sems.comodi.ChangeFactory changeFac)
Annotate the Patch itself with information about the software used to create this .
|
abstract 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.
|
abstract 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 abstract void annotatePatch(String rootId, de.unirostock.sems.comodi.ChangeFactory changeFac)
rootId - the id of the parent node of the patchchangeFac - the change factory to produce changespublic abstract de.unirostock.sems.comodi.Change annotateDeletion(de.unirostock.sems.xmlutils.ds.TreeNode node,
org.jdom2.Element diffNode,
de.unirostock.sems.comodi.ChangeFactory changeFac)
node - this node or something in this node was deleteddiffNode - the node encoding for the differencechangeFac - the change factory to produce changespublic abstract de.unirostock.sems.comodi.Change annotateInsertion(de.unirostock.sems.xmlutils.ds.TreeNode node,
org.jdom2.Element diffNode,
de.unirostock.sems.comodi.ChangeFactory changeFac)
node - this node or something in this node was inserteddiffNode - the node encoding for the differencechangeFac - the change factory to produce changespublic abstract 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)
nodeA - 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 abstract 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)
nodeA - the attribute in this node was updatednodeB - this node contains the final attribute valuediffNode - the node encoding for the differencechangeFac - the change factory to produce changesattributeName - the attribute with this name was updatedpublic abstract 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)
nodeA - the original text nodenodeB - the modified text nodediffNode - the node encoding for the differencechangeFac - the change factory to produce changesCopyright © 2019 SEMS project @ University of Rostock. All rights reserved.