Package net.sf.okapi.steps.xmlcharfixing
Class XMLCharFixingStep
- java.lang.Object
-
- net.sf.okapi.common.pipeline.BasePipelineStep
-
- net.sf.okapi.steps.xmlcharfixing.XMLCharFixingStep
-
- All Implemented Interfaces:
AutoCloseable,Function<Stream<Event>,Stream<Event>>,IPipelineStep
public class XMLCharFixingStep extends BasePipelineStep
-
-
Constructor Summary
Constructors Constructor Description XMLCharFixingStep()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()Gets a short localizable description of what this step does.StringgetName()Gets the localizable name of this step.URIgetOutputURI()ParametersgetParameters()Gets the current parameters for this step.protected EventhandleEndBatch(Event event)Handles theEventType.END_BATCHevent.protected EventhandleRawDocument(Event event)Handles theEventType.RAW_DOCUMENTevent.protected EventhandleStartBatch(Event event)Handles theEventType.START_BATCHevent.voidsetOutputURI(URI outputURI)voidsetParameters(IParameters params)Sets new parameters for this step.-
Methods inherited from class net.sf.okapi.common.pipeline.BasePipelineStep
cancel, destroy, getHelpLocation, getSourceLocale, getTargetLocale, handleCustom, handleDocumentPart, handleEndBatchItem, handleEndDocument, handleEndGroup, handleEndSubDocument, handleEndSubfilter, handleEvent, handleMultiEvent, handlePipelineParameters, handleStartBatchItem, handleStartDocument, handleStartGroup, handleStartSubDocument, handleStartSubfilter, handleTextUnit, isDone, isLastOutputStep, setLastOutputStep, 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, close, handleStream
-
-
-
-
Method Detail
-
getDescription
public String getDescription()
Description copied from interface:IPipelineStepGets a short localizable description of what this step does.- Returns:
- the text of a short description of what this step does.
-
getName
public String getName()
Description copied from interface:IPipelineStepGets the localizable name of this step.- Returns:
- the localizable name of this step.
-
getParameters
public Parameters getParameters()
Description copied from interface:IPipelineStepGets the current parameters for this step.- Specified by:
getParametersin interfaceIPipelineStep- Overrides:
getParametersin classBasePipelineStep- Returns:
- the current parameters for this step or null if there are no parameters.
-
setParameters
public void setParameters(IParameters params)
Description copied from interface:IPipelineStepSets new parameters for this step.- Specified by:
setParametersin interfaceIPipelineStep- Overrides:
setParametersin classBasePipelineStep- Parameters:
params- the new parameters to use.
-
setOutputURI
public void setOutputURI(URI outputURI)
-
getOutputURI
public URI getOutputURI()
-
handleStartBatch
protected Event handleStartBatch(Event event)
Description copied from class:BasePipelineStepHandles theEventType.START_BATCHevent.- Overrides:
handleStartBatchin classBasePipelineStep- Parameters:
event- event to handle.- Returns:
- the event returned.
-
handleEndBatch
protected Event handleEndBatch(Event event)
Description copied from class:BasePipelineStepHandles theEventType.END_BATCHevent.- Overrides:
handleEndBatchin classBasePipelineStep- Parameters:
event- event to handle.- Returns:
- the event returned.
-
handleRawDocument
protected Event handleRawDocument(Event event)
Description copied from class:BasePipelineStepHandles theEventType.RAW_DOCUMENTevent.- Overrides:
handleRawDocumentin classBasePipelineStep- Parameters:
event- event to handle.- Returns:
- the event returned.
-
-