Class PatchProducer


  • public class PatchProducer
    extends Producer
    The Class PatchProducer producing patches..
    Author:
    Martin Scharm
    • Constructor Detail

      • PatchProducer

        public PatchProducer()
    • 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.
        Overrides:
        init in class Producer
        Parameters:
        conMgmt - the connection manager
        docA - the original document
        docB - the modified document
      • 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 connections
        docA - the original document
        docB - the modified document
        annotator - the annotator
        See Also:
        DiffAnnotator
      • getPatch

        public Patch getPatch()
        Gets the patch.
        Returns:
        the patch
      • produce

        public String produce()
        Description copied from class: Producer
        Produce the output.
        Specified by:
        produce in class Producer
        Returns:
        the ourput
      • 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