Package net.sf.okapi.common.filters
Class SubFilterWrapperStep
- java.lang.Object
-
- net.sf.okapi.common.pipeline.BasePipelineStep
-
- net.sf.okapi.common.filters.SubFilterWrapperStep
-
- All Implemented Interfaces:
AutoCloseable,Function<Stream<Event>,Stream<Event>>,IPipelineStep
public class SubFilterWrapperStep extends BasePipelineStep implements IPipelineStep
-
-
Constructor Summary
Constructors Constructor Description SubFilterWrapperStep(IFilter filter, IFilter primaryFilter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()StringgetDescription()Gets a short localizable description of what this step does.StringgetName()Gets the localizable name of this step.ISubFiltergetSubFilter()Stream<Event>handleStream(Event event)Processes a stream of events sent though the pipeline.-
Methods inherited from class net.sf.okapi.common.pipeline.BasePipelineStep
cancel, destroy, getHelpLocation, getParameters, getSourceLocale, getTargetLocale, handleCustom, handleDocumentPart, handleEndBatch, handleEndBatchItem, handleEndDocument, handleEndGroup, handleEndSubDocument, handleEndSubfilter, handleEvent, 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, cancel, destroy, getHelpLocation, getParameters, getSourceLocale, getTargetLocale, handleEvent, isDone, isLastOutputStep, setLastOutputStep, setParameters, setSourceLocale, setTargetLocale
-
-
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:IPipelineStepGets the localizable name of this step.- Specified by:
getNamein interfaceIPipelineStep- Returns:
- the localizable name of this step.
-
getDescription
public String getDescription()
Description copied from interface:IPipelineStepGets a short localizable description of what this step does.- Specified by:
getDescriptionin interfaceIPipelineStep- Returns:
- the text of a short description of what this step does.
-
handleStream
public Stream<Event> handleStream(Event event)
Description copied from interface:IPipelineStepProcesses a stream of events sent though the pipeline.- Specified by:
handleStreamin interfaceIPipelineStep- Parameters:
event- the event to process.- Returns:
- the stream to pass down the pipeline.
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceIPipelineStep
-
getSubFilter
public ISubFilter getSubFilter()
-
-