public class SearchAndReplaceStep extends BasePipelineStep
| Modifier and Type | Class and Description |
|---|---|
static class |
SearchAndReplaceStep.ProcType |
static class |
SearchAndReplaceStep.TargetType |
| Constructor and Description |
|---|
SearchAndReplaceStep() |
| Modifier and Type | Method and Description |
|---|---|
static int |
countMatches(String str,
String sub) |
static int |
countRegExMatches(String str,
Pattern p) |
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.
|
Parameters |
getParameters()
Gets the current parameters for this step.
|
protected Event |
handleEndBatch(Event event)
Handles the
EventType.END_BATCH event. |
protected Event |
handleRawDocument(Event event)
Handles the
EventType.RAW_DOCUMENT event. |
protected Event |
handleStartBatch(Event event)
Handles the
EventType.START_BATCH event. |
protected Event |
handleTextUnit(Event event)
Handles the
EventType.TEXT_UNIT event. |
static boolean |
isEmpty(String str) |
void |
setInputRootDirectory(String inputRootDir) |
void |
setOutputURI(URI outputURI) |
void |
setParameters(IParameters params)
Sets new parameters for this step.
|
void |
setRootDirectory(String rootDir) |
void |
setTargetLocale(LocaleId targetLocale) |
cancel, getHelpLocation, handleCustom, handleDocumentPart, handleEndBatchItem, handleEndDocument, handleEndGroup, handleEndSubDocument, handleEndSubfilter, handleEvent, handleMultiEvent, handlePipelineParameters, handleStartBatchItem, handleStartDocument, handleStartGroup, handleStartSubDocument, handleStartSubfilter, isDone, isLastOutputStep, setLastOutputSteppublic void destroy()
IPipelineStepdestroy in interface IPipelineStepdestroy in class BasePipelineSteppublic void setRootDirectory(String rootDir)
public void setInputRootDirectory(String inputRootDir)
public void setOutputURI(URI outputURI)
public void setTargetLocale(LocaleId targetLocale)
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 handleRawDocument(Event event)
BasePipelineStepEventType.RAW_DOCUMENT event.handleRawDocument in class BasePipelineStepevent - event to handle.protected Event handleTextUnit(Event event)
BasePipelineStepEventType.TEXT_UNIT event.handleTextUnit in class BasePipelineStepevent - event to handle.public static boolean isEmpty(String str)
Copyright © 2021. All rights reserved.