public class IdBasedAlignerStep extends BasePipelineStep
TextUnits based on matching ids. The ids are taken from the name (BaseNameable.getName())
or id (BaseNameable.getId()) of each TextUnit, depending on configuration.
Any IFilter that produces a name for its TextUnits will work with this aligner.
Expects filtered Events as input and returns a new (aligned) bi-lingual TextUnit Event. Optionally
produce a TMX file in the specified output path.| Constructor and Description |
|---|
IdBasedAlignerStep() |
| 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 |
handleEndBatch(Event event)
Handles the
EventType.END_BATCH event. |
protected Event |
handleEndDocument(Event event)
Handles the
EventType.END_DOCUMENT event. |
protected Event |
handleStartBatch(Event event)
Handles the
EventType.START_BATCH event. |
protected Event |
handleStartDocument(Event event)
Handles the
EventType.START_DOCUMENT event. |
protected Event |
handleTextUnit(Event sourceEvent)
Handles the
EventType.TEXT_UNIT event. |
void |
setExecutionContext(ExecutionContext context) |
void |
setFilterConfigurationMapper(IFilterConfigurationMapper fcMapper) |
void |
setParameters(IParameters params)
Sets new parameters for this step.
|
void |
setSecondInput(RawDocument secondInput) |
void |
setSourceLocale(LocaleId sourceLocale)
Delegate to concrete class
|
void |
setTargetLocale(LocaleId targetLocale) |
cancel, destroy, getHelpLocation, getSourceLocale, getTargetLocale, handleCustom, handleDocumentPart, handleEndBatchItem, handleEndGroup, handleEndSubDocument, handleEndSubfilter, handleEvent, handleMultiEvent, handlePipelineParameters, handleRawDocument, handleStartBatchItem, handleStartGroup, handleStartSubDocument, handleStartSubfilter, isDone, isLastOutputStep, setLastOutputSteppublic void setFilterConfigurationMapper(IFilterConfigurationMapper fcMapper)
public void setSourceLocale(LocaleId sourceLocale)
IPipelineStepsetSourceLocale in interface IPipelineStepsetSourceLocale in class BasePipelineSteppublic void setTargetLocale(LocaleId targetLocale)
setTargetLocale in interface IPipelineStepsetTargetLocale in class BasePipelineSteppublic void setSecondInput(RawDocument secondInput)
public void setExecutionContext(ExecutionContext context)
public String getDescription()
IPipelineSteppublic String getName()
IPipelineSteppublic 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.protected Event handleStartBatch(Event event)
BasePipelineStepEventType.START_BATCH event.handleStartBatch in class BasePipelineStepevent - event to handle.protected Event handleEndBatch(Event event)
BasePipelineStepEventType.END_BATCH event.handleEndBatch in class BasePipelineStepevent - event to handle.protected Event handleStartDocument(Event event)
BasePipelineStepEventType.START_DOCUMENT event.handleStartDocument in class BasePipelineStepevent - event to handle.protected Event handleEndDocument(Event event)
BasePipelineStepEventType.END_DOCUMENT event.handleEndDocument in class BasePipelineStepevent - event to handle.protected Event handleTextUnit(Event sourceEvent)
BasePipelineStepEventType.TEXT_UNIT event.handleTextUnit in class BasePipelineStepsourceEvent - event to handle.Copyright © 2022. All rights reserved.