public class RawDocumentToFilterEventsStep extends BasePipelineStep
RawDocument into filter events.
This class implements the IPipelineStep
interface for a step that takes a RawDocument and to generate its
corresponding events either: a provided IFilter implementation, or the
filter configuration mapper accessible through the pipeline's context.
This step can also work with the filters that generates multiple documents.
| Constructor and Description |
|---|
RawDocumentToFilterEventsStep()
Creates a new RawDocumentToFilterEventsStep object.
|
RawDocumentToFilterEventsStep(IFilter filter)
Creates a new RawDocumentToFilterEventsStep object with a given filter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancel processing on this pipeline.
|
void |
destroy()
Executes any cleanup code for this step.
|
String |
getDescription()
Gets a short localizable description of what this step does.
|
String |
getName()
Gets the localizable name of this step.
|
Event |
handleEvent(Event event)
Processes each event sent though the pipeline.
|
boolean |
isDone()
Steps that can generate
Events such as IFilters return
false until no more events can be created. |
void |
setFilter(IFilter filter) |
void |
setFilterConfigurationId(String filterConfigId) |
void |
setFilterConfigurationMapper(IFilterConfigurationMapper fcMapper) |
getHelpLocation, getParameters, handleCustom, handleDocumentPart, handleEndBatch, handleEndBatchItem, handleEndDocument, handleEndGroup, handleEndSubDocument, handleEndSubfilter, handleMultiEvent, handlePipelineParameters, handleRawDocument, handleStartBatch, handleStartBatchItem, handleStartDocument, handleStartGroup, handleStartSubDocument, handleStartSubfilter, handleTextUnit, isLastOutputStep, setLastOutputStep, setParameterspublic RawDocumentToFilterEventsStep()
public RawDocumentToFilterEventsStep(IFilter filter)
setFilter(IFilter), not using
the filter configuration mapper of the pipeline context.filter - the filter to set.public void setFilter(IFilter filter)
public void setFilterConfigurationMapper(IFilterConfigurationMapper fcMapper)
public void setFilterConfigurationId(String filterConfigId)
public String getName()
IPipelineSteppublic String getDescription()
IPipelineSteppublic Event handleEvent(Event event)
IPipelineStephandleEvent in interface IPipelineStephandleEvent in class BasePipelineStepevent - the event to process.public boolean isDone()
IPipelineStepEvents such as IFilters return
false until no more events can be created.
Steps which do not create Events always return true.isDone in interface IPipelineStepisDone in class BasePipelineSteppublic void destroy()
IPipelineStepdestroy in interface IPipelineStepdestroy in class BasePipelineSteppublic void cancel()
IPipelineStepIPipelineStep is responsible
to implement a cancel method that will interrupt long running operationscancel in interface IPipelineStepcancel in class BasePipelineStepCopyright © 2021. All rights reserved.