Class CopySourceOnEmptyTargetStep
- java.lang.Object
-
- net.sf.okapi.common.pipeline.BasePipelineStep
-
- net.sf.okapi.steps.common.copysource.CopySourceOnEmptyTargetStep
-
- All Implemented Interfaces:
AutoCloseable
,Function<Stream<Event>,Stream<Event>>
,IPipelineStep
public class CopySourceOnEmptyTargetStep extends BasePipelineStep
-
-
Constructor Summary
Constructors Constructor Description CopySourceOnEmptyTargetStep()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDescription()
Gets a short localizable description of what this step does.String
getName()
Gets the localizable name of this step.LocaleId
getTargetLocale()
Delegate to concrete classprotected Event
handleTextUnit(Event event)
Handles theEventType.TEXT_UNIT
event.void
setTargetLocale(LocaleId targetLocale)
-
Methods inherited from class net.sf.okapi.common.pipeline.BasePipelineStep
cancel, destroy, getHelpLocation, getParameters, getSourceLocale, handleCustom, handleDocumentPart, handleEndBatch, handleEndBatchItem, handleEndDocument, handleEndGroup, handleEndSubDocument, handleEndSubfilter, handleEvent, handleMultiEvent, handlePipelineParameters, handleRawDocument, handleStartBatch, handleStartBatchItem, handleStartDocument, handleStartGroup, handleStartSubDocument, handleStartSubfilter, isDone, isLastOutputStep, setLastOutputStep, setParameters, setSourceLocale
-
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, handleStream
-
-
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:IPipelineStep
Gets the localizable name of this step.- Returns:
- the localizable name of this step.
-
getDescription
public String getDescription()
Description copied from interface:IPipelineStep
Gets a short localizable description of what this step does.- Returns:
- the text of a short description of what this step does.
-
handleTextUnit
protected Event handleTextUnit(Event event)
Description copied from class:BasePipelineStep
Handles theEventType.TEXT_UNIT
event.- Overrides:
handleTextUnit
in classBasePipelineStep
- Parameters:
event
- event to handle.- Returns:
- the event returned.
-
setTargetLocale
public void setTargetLocale(LocaleId targetLocale)
- Specified by:
setTargetLocale
in interfaceIPipelineStep
- Overrides:
setTargetLocale
in classBasePipelineStep
-
getTargetLocale
public LocaleId getTargetLocale()
Description copied from interface:IPipelineStep
Delegate to concrete class- Specified by:
getTargetLocale
in interfaceIPipelineStep
- Overrides:
getTargetLocale
in classBasePipelineStep
- Returns:
- LocaleId
-
-