public class TuFilteringStep extends BasePipelineStep
| Constructor and Description |
|---|
TuFilteringStep() |
TuFilteringStep(ITextUnitFilter tuFilter) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Gets a short localizable description of what this step does.
|
String |
getName()
Gets the localizable name of this step.
|
Parameters |
getParameters()
Gets the current parameters for this step.
|
protected Event |
handleStartBatch(Event event)
Handles the
EventType.START_BATCH event. |
protected Event |
handleTextUnit(Event event)
Handles the
EventType.TEXT_UNIT event. |
protected Event |
processFiltered(Event tuEvent)
Process a given text unit event.
|
void |
setParameters(IParameters params)
Sets new parameters for this step.
|
cancel, destroy, getHelpLocation, getSourceLocale, getTargetLocale, handleCustom, handleDocumentPart, handleEndBatch, handleEndBatchItem, handleEndDocument, handleEndGroup, handleEndSubDocument, handleEndSubfilter, handleEvent, handleMultiEvent, handlePipelineParameters, handleRawDocument, handleStartBatchItem, handleStartDocument, handleStartGroup, handleStartSubDocument, handleStartSubfilter, isDone, isLastOutputStep, setLastOutputStep, setSourceLocale, setTargetLocalepublic TuFilteringStep()
public TuFilteringStep(ITextUnitFilter tuFilter)
public Parameters getParameters()
IPipelineStepgetParameters in interface IPipelineStepgetParameters in class BasePipelineSteppublic void setParameters(IParameters params)
IPipelineStepsetParameters in interface IPipelineStepsetParameters in class BasePipelineStepparams - the new parameters to use.public String getName()
IPipelineSteppublic String getDescription()
IPipelineStepprotected Event processFiltered(Event tuEvent)
This method can be overridden in subclasses to change the way text unit events are processed if accepted.
If not overridden, clears the "translatable" flag of accepted text units, thus marking the text units non-translatable.
tuEvent - the text unit event which resource can be modified.protected Event handleStartBatch(Event event)
BasePipelineStepEventType.START_BATCH event.handleStartBatch in class BasePipelineStepevent - event to handle.protected Event handleTextUnit(Event event)
BasePipelineStepEventType.TEXT_UNIT event.handleTextUnit in class BasePipelineStepevent - event to handle.Copyright © 2022. All rights reserved.