Class PatchProducer
- java.lang.Object
-
- de.unirostock.sems.bives.algorithm.Producer
-
- de.unirostock.sems.bives.algorithm.general.PatchProducer
-
public class PatchProducer extends Producer
The Class PatchProducer producing patches..- Author:
- Martin Scharm
-
-
Constructor Summary
Constructors Constructor Description PatchProducer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAnnotations()
Gets the annotations of the patch.Patch
getPatch()
Gets the patch.void
init(SimpleConnectionManager conMgmt, de.unirostock.sems.xmlutils.ds.TreeDocument docA, de.unirostock.sems.xmlutils.ds.TreeDocument docB)
Initializes the producer.void
init(SimpleConnectionManager conMgmt, de.unirostock.sems.xmlutils.ds.TreeDocument docA, de.unirostock.sems.xmlutils.ds.TreeDocument docB, DiffAnnotator annotator)
Initialise this patch producer providing a diff annotator.String
produce()
Produce the output.String
produce(boolean inclAnnotations)
Produce the patch.
-
-
-
Method Detail
-
init
public void init(SimpleConnectionManager conMgmt, de.unirostock.sems.xmlutils.ds.TreeDocument docA, de.unirostock.sems.xmlutils.ds.TreeDocument docB)
Description copied from class:Producer
Initializes the producer.
-
init
public void init(SimpleConnectionManager conMgmt, de.unirostock.sems.xmlutils.ds.TreeDocument docA, de.unirostock.sems.xmlutils.ds.TreeDocument docB, DiffAnnotator annotator)
Initialise this patch producer providing a diff annotator.- Parameters:
conMgmt
- the connection manager storing all connectionsdocA
- the original documentdocB
- the modified documentannotator
- the annotator- See Also:
DiffAnnotator
-
getPatch
public Patch getPatch()
Gets the patch.- Returns:
- the patch
-
produce
public String produce(boolean inclAnnotations)
Produce the patch.- Parameters:
inclAnnotations
- should annotations be included in the path- Returns:
- the string
-
getAnnotations
public String getAnnotations()
Gets the annotations of the patch.- Returns:
- the annotations
-
-