public class PatchProducer extends Producer
Constructor and Description |
---|
PatchProducer() |
Modifier and Type | Method and 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.
|
public void init(SimpleConnectionManager conMgmt, de.unirostock.sems.xmlutils.ds.TreeDocument docA, de.unirostock.sems.xmlutils.ds.TreeDocument docB)
Producer
public void init(SimpleConnectionManager conMgmt, de.unirostock.sems.xmlutils.ds.TreeDocument docA, de.unirostock.sems.xmlutils.ds.TreeDocument docB, DiffAnnotator annotator)
conMgmt
- the connection manager storing all connectionsdocA
- the original documentdocB
- the modified documentannotator
- the annotatorDiffAnnotator
public Patch getPatch()
public String produce(boolean inclAnnotations)
inclAnnotations
- should annotations be included in the pathpublic String getAnnotations()
Copyright © 2019 SEMS project @ University of Rostock. All rights reserved.