public class GateService
extends java.lang.Object
implements org.ow2.weblab.core.services.Analyser
GateConverter| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONVERTER_PROPERTY
Name of the property that contains the class of the converter to be instantiated
|
static java.lang.String |
PROPERTIES_FILE_NAME
Name of the property file to be loaded.
|
| Constructor and Description |
|---|
GateService() |
GateService(java.io.File defaultGappFile) |
GateService(java.io.File defaultGappFile,
java.io.File pluginsPath) |
GateService(java.io.File gateHomePath,
java.io.File defaultGappFile,
java.io.File pluginsPath,
GateConverter converter) |
GateService(java.io.File defaultGappFile,
java.io.File pluginsPath,
GateConverter converter) |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.List<org.ow2.weblab.core.model.Text> |
checkParameters(org.ow2.weblab.core.services.analyser.ProcessArgs args) |
org.ow2.weblab.core.services.analyser.ProcessReturn |
process(org.ow2.weblab.core.services.analyser.ProcessArgs args) |
public static final java.lang.String PROPERTIES_FILE_NAME
public static final java.lang.String CONVERTER_PROPERTY
public GateService()
throws java.io.IOException,
org.ow2.weblab.core.extended.exception.WebLabCheckedException
java.io.IOException - If something fails with defaultGappFile or pluginsPathorg.ow2.weblab.core.extended.exception.WebLabCheckedException - If converter is null of if something fails in Gate internal initialisationpublic GateService(java.io.File defaultGappFile)
throws java.io.IOException,
org.ow2.weblab.core.extended.exception.WebLabCheckedException
defaultGappFile - The default Gapp file to be usedjava.io.IOException - If something fails with defaultGappFile or pluginsPathorg.ow2.weblab.core.extended.exception.WebLabCheckedException - If converter is null of if something fails in Gate internal initialisationpublic GateService(java.io.File defaultGappFile,
java.io.File pluginsPath)
throws java.io.IOException,
org.ow2.weblab.core.extended.exception.WebLabCheckedException
defaultGappFile - The default Gapp file to be usedpluginsPath - The path to the plugin repositoryjava.io.IOException - If something fails with defaultGappFile or pluginsPathorg.ow2.weblab.core.extended.exception.WebLabCheckedException - If converter is null of if something fails in Gate internal initialisationpublic GateService(java.io.File defaultGappFile,
java.io.File pluginsPath,
GateConverter converter)
throws java.io.IOException,
org.ow2.weblab.core.extended.exception.WebLabCheckedException
defaultGappFile - The default Gapp file to be usedpluginsPath - The path to the plugin repositoryconverter - The GateConverter in charge of reading Gate documents and annotate WebLab textsjava.io.IOException - If something fails with defaultGappFile or pluginsPathorg.ow2.weblab.core.extended.exception.WebLabCheckedException - If converter is null of if something fails in Gate internal initialisationpublic GateService(java.io.File gateHomePath,
java.io.File defaultGappFile,
java.io.File pluginsPath,
GateConverter converter)
throws java.io.IOException,
org.ow2.weblab.core.extended.exception.WebLabCheckedException
gateHomePath - The path to Gate home folderdefaultGappFile - The default Gapp file to be usedpluginsPath - The path to the plugin repositoryconverter - The GateConverter in charge of reading Gate documents and annotate WebLab textsjava.io.IOException - If something fails with defaultGappFile or pluginsPathorg.ow2.weblab.core.extended.exception.WebLabCheckedException - If converter is null of if something fails in Gate internal initialisationpublic org.ow2.weblab.core.services.analyser.ProcessReturn process(org.ow2.weblab.core.services.analyser.ProcessArgs args)
throws org.ow2.weblab.core.services.UnexpectedException,
org.ow2.weblab.core.services.InvalidParameterException,
org.ow2.weblab.core.services.InsufficientResourcesException
process in interface org.ow2.weblab.core.services.Analyserorg.ow2.weblab.core.services.UnexpectedExceptionorg.ow2.weblab.core.services.InvalidParameterExceptionorg.ow2.weblab.core.services.InsufficientResourcesExceptionprotected java.util.List<org.ow2.weblab.core.model.Text> checkParameters(org.ow2.weblab.core.services.analyser.ProcessArgs args)
throws org.ow2.weblab.core.services.InvalidParameterException
args - The ProcessArgsProcessException - For any reason preventing the retrieval of text unit to be done.org.ow2.weblab.core.services.InvalidParameterExceptionCopyright © 2004-2012. All Rights Reserved.