org.schmant.task.text
Class TextReplaceTF
java.lang.Object
org.schmant.task.stub.AbstractTaskFactory<T,U>
org.schmant.task.stub.AbstractActionTaskFactory<T,U>
org.schmant.task.stub.AbstractProcessTaskFactory<U,T>
org.schmant.task.template.text.AbstractTextInsertionTaskFactory<TextReplaceTF,TextReplaceTask>
org.schmant.task.text.TextReplaceTF
- All Implemented Interfaces:
- ActionTaskConfigurable<TextReplaceTF>, ActionTaskFactory<TextReplaceTF,TextReplaceTask>, LoggingConfigurable<TextReplaceTF>, OverwriteConfigurable<TextReplaceTF>, SourceConfigurable<TextReplaceTF>, TargetConfigurable<TextReplaceTF>, TemporaryDirectoryConfigurable<TextReplaceTF>, GeneratorTaskConfigurable<TextReplaceTF>, GeneratorTaskFactory<TextReplaceTF,TextReplaceTask>, ProcessTaskConfigurable<TextReplaceTF>, ProcessTaskFactory<TextReplaceTF,TextReplaceTask>, TaskFactory<TextReplaceTF,TextReplaceTask>, TaskRunnable, CharacterFileConfigurable<TextReplaceTF>, TextInsertionTaskConfigurable<TextReplaceTF>
public final class TextReplaceTF
- extends AbstractTextInsertionTaskFactory<TextReplaceTF,TextReplaceTask>
- implements CharacterFileConfigurable<TextReplaceTF>
Factory for the TextReplaceTask
.
See TextReplaceTF
- Since:
- 0.5
- Author:
- Karl Gustafsson
- See Also:
TextReplaceTask
- Task_package:
- org.schmant.task.base
Methods inherited from class org.schmant.task.stub.AbstractTaskFactory |
copy, create, getLastCreated, getSpecification, getThis, run, setLogFooter, setLogHeader, setReportLevel, setTraceLogging, toString |
TextReplaceTF
public TextReplaceTF()
addReplace
public TextReplaceTF addReplace(String pattern,
Object replace)
addReplace
public TextReplaceTF addReplace(Pattern p,
Object replace)
addReplace
public TextReplaceTF addReplace(TwoObjects<?,?> p)
addReplaces
public TextReplaceTF addReplaces(Object o)
clearReplaces
public TextReplaceTF clearReplaces()
setMaxNoOfReplacesPerReplace
public TextReplaceTF setMaxNoOfReplacesPerReplace(int n)
setErrorIfReplaceNotFound
public TextReplaceTF setErrorIfReplaceNotFound(boolean b)
createSpecification
protected TextReplaceTask createSpecification()
- Description copied from class:
AbstractTaskFactory
- Subclasses implement this to create the task specification object that
this factory uses to configure the task that it is creating.
- Specified by:
createSpecification
in class AbstractTaskFactory<TextReplaceTF,TextReplaceTask>