Package net.sf.okapi.steps.leveraging
Class LeveragingStep
- java.lang.Object
-
- net.sf.okapi.common.pipeline.BasePipelineStep
-
- net.sf.okapi.steps.leveraging.LeveragingStep
-
- All Implemented Interfaces:
AutoCloseable,Function<Stream<Event>,Stream<Event>>,ILoadsResources,IPipelineStep
public class LeveragingStep extends BasePipelineStep implements ILoadsResources
-
-
Constructor Summary
Constructors Constructor Description LeveragingStep()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()StringgetInputRootDirectory()StringgetLoadableClassName()StringgetName()ParametersgetParameters()protected QueryManagergetQueryManager()StringgetRootDirectory()LocaleIdgetSourceLocale()LocaleIdgetTargetLocale()protected TMXWritergetTMXWriter()protected EventhandleEndBatch(Event event)protected EventhandleEndDocument(Event event)protected EventhandleStartBatch(Event event)protected EventhandleStartDocument(Event event)protected EventhandleTextUnit(Event event)voidsetClassLoadingContext(ClassLoader connectorContext)voidsetInputRootDirectory(String inputRootDir)voidsetParameters(IParameters params)voidsetRootDirectory(String rootDir)voidsetSourceLocale(LocaleId sourceLocale)voidsetTargetLocale(LocaleId targetLocale)-
Methods inherited from class net.sf.okapi.common.pipeline.BasePipelineStep
cancel, destroy, getHelpLocation, handleCustom, handleDocumentPart, handleEndBatchItem, handleEndGroup, handleEndSubDocument, handleEndSubfilter, handleEvent, handleMultiEvent, handlePipelineParameters, handleRawDocument, handleStartBatchItem, handleStartGroup, handleStartSubDocument, handleStartSubfilter, isDone, isLastOutputStep, setLastOutputStep
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.okapi.common.pipeline.IPipelineStep
apply, close, handleStream
-
-
-
-
Method Detail
-
setSourceLocale
public void setSourceLocale(LocaleId sourceLocale)
- Specified by:
setSourceLocalein interfaceIPipelineStep- Overrides:
setSourceLocalein classBasePipelineStep
-
getSourceLocale
public LocaleId getSourceLocale()
- Specified by:
getSourceLocalein interfaceIPipelineStep- Overrides:
getSourceLocalein classBasePipelineStep
-
setTargetLocale
public void setTargetLocale(LocaleId targetLocale)
- Specified by:
setTargetLocalein interfaceIPipelineStep- Overrides:
setTargetLocalein classBasePipelineStep
-
getTargetLocale
public LocaleId getTargetLocale()
- Specified by:
getTargetLocalein interfaceIPipelineStep- Overrides:
getTargetLocalein classBasePipelineStep
-
setRootDirectory
public void setRootDirectory(String rootDir)
-
getRootDirectory
public String getRootDirectory()
-
setInputRootDirectory
public void setInputRootDirectory(String inputRootDir)
-
getInputRootDirectory
public String getInputRootDirectory()
-
getName
public String getName()
- Specified by:
getNamein interfaceIPipelineStep
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceIPipelineStep
-
getParameters
public Parameters getParameters()
- Specified by:
getParametersin interfaceIPipelineStep- Overrides:
getParametersin classBasePipelineStep
-
setParameters
public void setParameters(IParameters params)
- Specified by:
setParametersin interfaceIPipelineStep- Overrides:
setParametersin classBasePipelineStep
-
handleStartBatch
protected Event handleStartBatch(Event event)
- Overrides:
handleStartBatchin classBasePipelineStep
-
handleEndBatch
protected Event handleEndBatch(Event event)
- Overrides:
handleEndBatchin classBasePipelineStep
-
handleStartDocument
protected Event handleStartDocument(Event event)
- Overrides:
handleStartDocumentin classBasePipelineStep
-
handleEndDocument
protected Event handleEndDocument(Event event)
- Overrides:
handleEndDocumentin classBasePipelineStep
-
handleTextUnit
protected Event handleTextUnit(Event event)
- Overrides:
handleTextUnitin classBasePipelineStep
-
getLoadableClassName
public String getLoadableClassName()
- Specified by:
getLoadableClassNamein interfaceILoadsResources
-
setClassLoadingContext
public void setClassLoadingContext(ClassLoader connectorContext)
- Specified by:
setClassLoadingContextin interfaceILoadsResources
-
getQueryManager
protected QueryManager getQueryManager()
-
getTMXWriter
protected TMXWriter getTMXWriter()
-
-