Class ExtractionStep
- java.lang.Object
-
- net.sf.okapi.common.pipeline.BasePipelineStep
-
- net.sf.okapi.steps.rainbowkit.creation.ExtractionStep
-
- All Implemented Interfaces:
IPipelineStep
public class ExtractionStep extends BasePipelineStep
-
-
Constructor Summary
Constructors Constructor Description ExtractionStep()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()Gets a short localizable description of what this step does.StringgetFilterConfigurationId()StringgetInputRootDirectory()URIgetInputURI()StringgetName()Gets the localizable name of this step.StringgetOutputEncoding()URIgetOutputURI()protected IPackageWritergetPackageWriter()ParametersgetParameters()Gets the current parameters for this step.StringgetRootDir()LocaleIdgetSourceLocale()Delegate to concrete classLocaleIdgetTargetLocale()Delegate to concrete classprotected EventhandleEndBatch(Event event)Handles theEventType.END_BATCHevent.EventhandleEvent(Event event)Processes each event sent though the pipeline.protected EventhandleRawDocument(Event event)Handles theEventType.RAW_DOCUMENTevent.protected EventhandleStartBatch(Event event)Handles theEventType.START_BATCHevent.protected EventhandleStartDocument(Event event)Handles theEventType.START_DOCUMENTevent.voidsetContext(ExecutionContext context)voidsetFilterConfigurationId(String filterConfigId)voidsetInputRootDirectory(String inputRootDir)voidsetInputURI(URI inputURI)voidsetOutputEncoding(String outputEncoding)voidsetOutputRootDirectory(String outputRootDir)voidsetOutputURI(URI outputURI)voidsetParameters(IParameters params)Sets new parameters for this step.voidsetRootDirectory(String rootDir)voidsetSourceLocale(LocaleId sourceLocale)Delegate to concrete classvoidsetTargetLocale(LocaleId targetLocale)-
Methods inherited from class net.sf.okapi.common.pipeline.BasePipelineStep
cancel, destroy, getHelpLocation, handleCustom, handleDocumentPart, handleEndBatchItem, handleEndDocument, handleEndGroup, handleEndSubDocument, handleEndSubfilter, handleMultiEvent, handlePipelineParameters, handleStartBatchItem, handleStartGroup, handleStartSubDocument, handleStartSubfilter, handleTextUnit, isDone, isLastOutputStep, setLastOutputStep
-
-
-
-
Method Detail
-
getDescription
public String getDescription()
Description copied from interface:IPipelineStepGets a short localizable description of what this step does.- Returns:
- the text of a short description of what this step does.
-
getName
public String getName()
Description copied from interface:IPipelineStepGets the localizable name of this step.- Returns:
- the localizable name of this step.
-
setSourceLocale
public void setSourceLocale(LocaleId sourceLocale)
Description copied from interface:IPipelineStepDelegate to concrete class- Specified by:
setSourceLocalein interfaceIPipelineStep- Overrides:
setSourceLocalein classBasePipelineStep
-
getSourceLocale
public LocaleId getSourceLocale()
Description copied from interface:IPipelineStepDelegate to concrete class- Specified by:
getSourceLocalein interfaceIPipelineStep- Overrides:
getSourceLocalein classBasePipelineStep- Returns:
- LocaleId
-
setTargetLocale
public void setTargetLocale(LocaleId targetLocale)
- Specified by:
setTargetLocalein interfaceIPipelineStep- Overrides:
setTargetLocalein classBasePipelineStep
-
getTargetLocale
public LocaleId getTargetLocale()
Description copied from interface:IPipelineStepDelegate to concrete class- Specified by:
getTargetLocalein interfaceIPipelineStep- Overrides:
getTargetLocalein classBasePipelineStep- Returns:
- LocaleId
-
setInputURI
public void setInputURI(URI inputURI)
-
getInputURI
public URI getInputURI()
-
setOutputURI
public void setOutputURI(URI outputURI)
-
getOutputURI
public URI getOutputURI()
-
setOutputEncoding
public void setOutputEncoding(String outputEncoding)
-
getOutputEncoding
public String getOutputEncoding()
-
setFilterConfigurationId
public void setFilterConfigurationId(String filterConfigId)
-
getFilterConfigurationId
public String getFilterConfigurationId()
-
setRootDirectory
public void setRootDirectory(String rootDir)
-
getRootDir
public String getRootDir()
-
setInputRootDirectory
public void setInputRootDirectory(String inputRootDir)
-
setOutputRootDirectory
public void setOutputRootDirectory(String outputRootDir)
-
getInputRootDirectory
public String getInputRootDirectory()
-
setContext
public void setContext(ExecutionContext context)
-
handleEvent
public Event handleEvent(Event event)
Description copied from interface:IPipelineStepProcesses each event sent though the pipeline.- Specified by:
handleEventin interfaceIPipelineStep- Overrides:
handleEventin classBasePipelineStep- Parameters:
event- the event to process.- Returns:
- the event to pass down the pipeline.
-
handleStartBatch
protected Event handleStartBatch(Event event)
Description copied from class:BasePipelineStepHandles theEventType.START_BATCHevent.- Overrides:
handleStartBatchin classBasePipelineStep- Parameters:
event- event to handle.- Returns:
- the event returned.
-
handleEndBatch
protected Event handleEndBatch(Event event)
Description copied from class:BasePipelineStepHandles theEventType.END_BATCHevent.- Overrides:
handleEndBatchin classBasePipelineStep- Parameters:
event- event to handle.- Returns:
- the event returned.
-
handleRawDocument
protected Event handleRawDocument(Event event)
Description copied from class:BasePipelineStepHandles theEventType.RAW_DOCUMENTevent.- Overrides:
handleRawDocumentin classBasePipelineStep- Parameters:
event- event to handle.- Returns:
- the event returned.
-
handleStartDocument
protected Event handleStartDocument(Event event)
Description copied from class:BasePipelineStepHandles theEventType.START_DOCUMENTevent.- Overrides:
handleStartDocumentin classBasePipelineStep- Parameters:
event- event to handle.- Returns:
- the event returned.
-
setParameters
public void setParameters(IParameters params)
Description copied from interface:IPipelineStepSets new parameters for this step.- Specified by:
setParametersin interfaceIPipelineStep- Overrides:
setParametersin classBasePipelineStep- Parameters:
params- the new parameters to use.
-
getParameters
public Parameters getParameters()
Description copied from interface:IPipelineStepGets the current parameters for this step.- Specified by:
getParametersin interfaceIPipelineStep- Overrides:
getParametersin classBasePipelineStep- Returns:
- the current parameters for this step or null if there are no parameters.
-
getPackageWriter
protected IPackageWriter getPackageWriter()
-
-