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

All Known Implementing Classes:
GateToWebLab, GateToWookie

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.ow2.weblab.core.model.Resource resource, java.util.Map<gate.Document,org.ow2.weblab.core.model.Text> gateDocsAndText)
          This is the only method of the interface.
 void setServiceURI(java.lang.String serviceURI)
           
 

Method Detail

convertInformation

void convertInformation(gate.Corpus corpus,
                        org.ow2.weblab.core.model.Resource resource,
                        java.util.Map<gate.Document,org.ow2.weblab.core.model.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.

setServiceURI

void setServiceURI(java.lang.String serviceURI)
Parameters:
serviceURI - The URI of the service to be added in each annotation created.


Copyright © 2004-2011. All Rights Reserved.