Package net.sf.okapi.steps.common
Class AbstractCompoundStep
- java.lang.Object
-
- net.sf.okapi.common.pipeline.BasePipelineStep
-
- net.sf.okapi.steps.common.AbstractCompoundStep
-
- All Implemented Interfaces:
IPipelineStep
- Direct Known Subclasses:
ScopingReportStep
public abstract class AbstractCompoundStep extends BasePipelineStep
-
-
Field Summary
Fields Modifier and Type Field Description protected LinkedList<IPipelineStep>steps
-
Constructor Summary
Constructors Constructor Description AbstractCompoundStep()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidaddStepsToList(List<IPipelineStep> list)EventhandleEvent(Event event)Processes each event sent though the pipeline.voidsetInputUri(URI inputURI)voidsetOutputEncoding(String outputEncoding)voidsetOutputUri(URI outputURI)-
Methods inherited from class net.sf.okapi.common.pipeline.BasePipelineStep
cancel, destroy, getHelpLocation, getParameters, getSourceLocale, getTargetLocale, handleCustom, handleDocumentPart, handleEndBatch, handleEndBatchItem, handleEndDocument, handleEndGroup, handleEndSubDocument, handleEndSubfilter, handleMultiEvent, handlePipelineParameters, handleRawDocument, handleStartBatch, handleStartBatchItem, handleStartDocument, handleStartGroup, handleStartSubDocument, handleStartSubfilter, handleTextUnit, isDone, isLastOutputStep, setLastOutputStep, setParameters, setSourceLocale, setTargetLocale
-
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
getDescription, getName
-
-
-
-
Field Detail
-
steps
protected LinkedList<IPipelineStep> steps
-
-
Method Detail
-
addStepsToList
protected abstract void addStepsToList(List<IPipelineStep> list)
-
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.
-
setOutputEncoding
public void setOutputEncoding(String outputEncoding)
-
setInputUri
public void setInputUri(URI inputURI)
-
setOutputUri
public void setOutputUri(URI outputURI)
-
-