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:
AutoCloseable
,Function<Stream<Event>,Stream<Event>>
,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 void
addStepsToList(List<IPipelineStep> list)
Event
handleEvent(Event event)
Processes each event sent though the pipeline.void
setInputUri(URI inputURI)
void
setOutputEncoding(String outputEncoding)
void
setOutputUri(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
apply, close, getDescription, getName, handleStream
-
-
-
-
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:IPipelineStep
Processes each event sent though the pipeline.- Specified by:
handleEvent
in interfaceIPipelineStep
- Overrides:
handleEvent
in 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)
-
-