org.schmant.task.io
Class DeleteTask
java.lang.Object
org.schmant.support.AbstractArgumentChecker
org.schmant.task.stub.AbstractTask<T>
org.schmant.task.stub.AbstractActionTask<DeleteTask>
org.schmant.task.io.DeleteTask
- All Implemented Interfaces:
- TaskDependency, ActionTaskConfigurable<DeleteTask>, ActionTaskSpec<DeleteTask>, LoggingConfigurable<DeleteTask>, SourceConfigurable<DeleteTask>, SourceConfigured, Task, TaskRunnable, TaskSpecification<DeleteTask>
public final class DeleteTask
- extends AbstractActionTask<DeleteTask>
See DeleteTF
- Since:
- 0.5
- Author:
- Karl Gustafsson
- Task_package:
- org.schmant.task.base
Methods inherited from class org.schmant.task.stub.AbstractActionTask |
addSource, addSources, clearSources, copyProperties, getRelativeToBase, getSource, getSources, isSourcesMandatory, setRelativeToBase, setSource, setSources, validate |
Methods inherited from class org.schmant.task.stub.AbstractTask |
cancel, createTask, getDefaultLogFooter, getDefaultLogHeader, getDependencyForTasksScheduledByThisTask, getDependencyObservable, getFailureCause, getLogFooter, getLogHeader, getSatisfiedStateLock, getThis, isCancelled, isDone, isInterrupted, isRunning, isSatisfied, isSuccessful, run, setLogFooter, setLogHeader, setReportLevel, setTraceLogging |
isMoreThanOneSourceAllowed
protected boolean isMoreThanOneSourceAllowed()
- Description copied from class:
AbstractActionTask
- Is more than one source object allowed? This method returns
false
. Subclasses override this method to return true
if they
allow several sources.
This method will only be called if AbstractActionTask.isSourcesMandatory()
returns
true
.
- Overrides:
isMoreThanOneSourceAllowed
in class AbstractActionTask<DeleteTask>
- Returns:
false
, always
runInternal
protected void runInternal(Report r)
- Description copied from class:
AbstractTask
- Subclasses implement this. The task is
AbstractTask.validate(Report)
:d before
this method is called, see AbstractTask.run()
.
- Specified by:
runInternal
in class AbstractTask<DeleteTask>
- Parameters:
r
- The current thread's Report
.
toString
public String toString()
- Description copied from class:
AbstractTask
- Default implementation for tasks. Task implementations may override this.
It is used in the default log header that is written (level INFO) before
a task is run.
This implementation just returns the class name.
- Overrides:
toString
in class AbstractActionTask<DeleteTask>