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)
DiffAnnotator
annotateDeletion
in class DiffAnnotator
node
- 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)
DiffAnnotator
annotateInsertion
in class DiffAnnotator
node
- 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)
DiffAnnotator
annotateMove
in class DiffAnnotator
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 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)
DiffAnnotator
annotateUpdateAttribute
in class DiffAnnotator
nodeA
- 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)
DiffAnnotator
annotateUpdateText
in class DiffAnnotator
nodeA
- 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)
DiffAnnotator
annotatePatch
in class DiffAnnotator
rootId
- the id of the parent node of the patchchangeFac
- the change factory to produce changesCopyright © 2019 SEMS project @ University of Rostock. All rights reserved.