org.ow2.weblab.service.gate.converter
Interface GateConverter

All Known Implementing Classes:
GateToWebLab

public interface GateConverter

This interface has to be implemented by any specific converter. A converter is used to handle annotations added on a Gate Corpus by the controller, to pass them to the original Gate Resource.

Author:
ymombrun
See Also:
The default implementation
Date:
2010-08-27

Method Summary
 void convertInformation(gate.Corpus corpus, org.weblab_project.core.model.Resource resource, java.util.Map<gate.Document,org.weblab_project.core.model.text.Text> gateDocsAndText)
          This is the only method of the interface.
 

Method Detail

convertInformation

void convertInformation(gate.Corpus corpus,
                        org.weblab_project.core.model.Resource resource,
                        java.util.Map<gate.Document,org.weblab_project.core.model.text.Text> gateDocsAndText)
This is the only method of the interface. It has to iterate on the entries in the Map to pass information from the key to the value.

Parameters:
corpus - A Gate Corpus that has been processed by the controller.
resource - The top level Resource. May be used to annotate it, or not.
gateDocsAndText - A map that associate to every gate.Document in the Corpus a WebLab Text to whom pass the annotation.


Copyright © 2004-2010. All Rights Reserved.