gate.qa
Class AnnotationDiffExporter

java.lang.Object
  extended by gate.qa.AnnotationDiffExporter

public class AnnotationDiffExporter
extends Object

The class is used by Quality Assurance PR. As is documented in the Quality Assurance PR, it links every document in the document-stats.html with a file containing output of the annotation diff tool for every annotation type provided as a parameter value in that PR. The output in here is produced by this class. It generates an html file.

Author:
niraj

Field Summary
protected  Map<AnnotationDiffer,List<AnnotationDiffer.Pairing>> differs
          Annotation Diff objects and the respective diff calculation results
protected  Document document
          The document on which the annotation diff is performed
 
Constructor Summary
AnnotationDiffExporter(Map<AnnotationDiffer,List<AnnotationDiffer.Pairing>> differs, Document document, String keySetName, String respSetName)
          Constructor
 
Method Summary
 void export(File destinationFile)
          Produces an html file containing html annotation diff output for different annotation types
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

document

protected Document document
The document on which the annotation diff is performed


differs

protected Map<AnnotationDiffer,List<AnnotationDiffer.Pairing>> differs
Annotation Diff objects and the respective diff calculation results

Constructor Detail

AnnotationDiffExporter

public AnnotationDiffExporter(Map<AnnotationDiffer,List<AnnotationDiffer.Pairing>> differs,
                              Document document,
                              String keySetName,
                              String respSetName)
Constructor

Parameters:
differs - a map containing instance of AnnotationDiffer objects (one for one annotation type) and a list of AnnotationDiffer.Pairing objects - each referring to an annotation in the document of that type
document - document on which the annotation diff is performed.
keySetName - name of the key annotation set
respSetName - name of the response annotaiton set
Method Detail

export

public void export(File destinationFile)
            throws IOException
Produces an html file containing html annotation diff output for different annotation types

Parameters:
destinationFile -
Throws:
IOException