org.schmant.task.text
Class TextReplaceTF

java.lang.Object
  extended by org.schmant.task.stub.AbstractTaskFactory<T,U>
      extended by org.schmant.task.stub.AbstractActionTaskFactory<T,U>
          extended by org.schmant.task.stub.AbstractProcessTaskFactory<U,T>
              extended by org.schmant.task.template.text.AbstractTextInsertionTaskFactory<TextReplaceTF,TextReplaceTask>
                  extended by 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

Field Summary
 
Fields inherited from interface org.schmant.task.confable.OverwriteConfigurable
DEFAULT_OVERWRITE_STRATEGY
 
Constructor Summary
TextReplaceTF()
           
 
Method Summary
 TextReplaceTF addReplace(Pattern p, Object replace)
           
 TextReplaceTF addReplace(String pattern, Object replace)
           
 TextReplaceTF addReplace(TwoObjects<?,?> p)
           
 TextReplaceTF addReplaces(Object o)
           
 TextReplaceTF clearReplaces()
           
protected  TextReplaceTask createSpecification()
          Subclasses implement this to create the task specification object that this factory uses to configure the task that it is creating.
 TextReplaceTF setErrorIfReplaceNotFound(boolean b)
           
 TextReplaceTF setMaxNoOfReplacesPerReplace(int n)
           
 
Methods inherited from class org.schmant.task.template.text.AbstractTextInsertionTaskFactory
setBufferSize, setInputEncoding, setInputEncoding, setOutputEncoding, setOutputEncoding, setTempDirectory
 
Methods inherited from class org.schmant.task.stub.AbstractProcessTaskFactory
setOverwrite, setOverwriteStrategy, setTarget
 
Methods inherited from class org.schmant.task.stub.AbstractActionTaskFactory
addSource, addSources, clearSources, setRelativeToBase, setSource, setSources
 
Methods inherited from class org.schmant.task.stub.AbstractTaskFactory
copy, create, getLastCreated, getSpecification, getThis, run, setLogFooter, setLogHeader, setReportLevel, setTraceLogging, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.schmant.task.template.text.CharacterFileConfigurable
setInputEncoding, setInputEncoding, setOutputEncoding, setOutputEncoding
 
Methods inherited from interface org.schmant.task.confable.SourceConfigurable
addSource, addSources, clearSources, setRelativeToBase, setSource, setSources
 
Methods inherited from interface org.schmant.task.confable.TargetConfigurable
setTarget
 
Methods inherited from interface org.schmant.task.confable.OverwriteConfigurable
setOverwrite, setOverwriteStrategy
 
Methods inherited from interface org.schmant.task.TaskFactory
copy, create, getLastCreated, getSpecification
 
Methods inherited from interface org.schmant.task.confable.LoggingConfigurable
setLogFooter, setLogHeader, setReportLevel, setTraceLogging
 
Methods inherited from interface org.schmant.task.TaskRunnable
run
 

Constructor Detail

TextReplaceTF

public TextReplaceTF()
Method Detail

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>