|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.schmant.support.AbstractArgumentChecker org.schmant.task.stub.AbstractTask<T> org.schmant.task.stub.AbstractActionTask<T> org.schmant.task.stub.AbstractProcessTask<XsltTask> org.schmant.task.xml.xslt.XsltTask
public final class XsltTask
See XsltTF
Field Summary |
---|
Fields inherited from interface org.schmant.task.confable.OverwriteConfigurable |
---|
DEFAULT_OVERWRITE_STRATEGY |
Method Summary | |
---|---|
void |
copyProperties(XsltTask spec)
Override the implementation from AbstractTask to copy the
source properties. |
WritableFile |
get()
Returns the produced object, or null if nothing is produced
yet. |
protected String |
getDefaultLogHeader()
Get the default log header to log (to level INFO) before the task is run if the task user has not set a custom header. |
protected Templates |
interpretTemplates(Object o)
Interpret the object as a Templates object using the following
algorithm:
If the object is a Producer , run the generated object through
this method.
If the object is a Templates object, return it.
|
protected void |
runInternal(Report r)
Subclasses implement this. |
String |
toString()
Default implementation for tasks. |
protected Collection<String> |
validate(Report r)
Override the method inherited from AbstractTask to give a validation
error if no source is set (and AbstractActionTask.isSourcesMandatory() is true ). |
Methods inherited from class org.schmant.task.stub.AbstractProcessTask |
---|
getOverwriteStrategy, getTarget, isTargetMandatory, setOverwrite, setOverwriteStrategy, setTarget |
Methods inherited from class org.schmant.task.stub.AbstractActionTask |
---|
addSource, addSources, clearSources, getRelativeToBase, getSource, getSources, isMoreThanOneSourceAllowed, isSourcesMandatory, setRelativeToBase, setSource, setSources |
Methods inherited from class org.schmant.task.stub.AbstractTask |
---|
cancel, createTask, getDefaultLogFooter, getDependencyForTasksScheduledByThisTask, getDependencyObservable, getFailureCause, getLogFooter, getLogHeader, getSatisfiedStateLock, getThis, isCancelled, isDone, isInterrupted, isRunning, isSatisfied, isSuccessful, run, setLogFooter, setLogHeader, setReportLevel, setTraceLogging |
Methods inherited from class org.schmant.support.AbstractArgumentChecker |
---|
check, check, check, check |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.schmant.task.confable.SourceConfigurable |
---|
addSource, addSources, clearSources, setRelativeToBase, setSource, setSources |
Methods inherited from interface org.schmant.task.confable.SourceConfigured |
---|
getSource, getSources |
Methods inherited from interface org.schmant.task.TaskSpecification |
---|
createTask |
Methods inherited from interface org.schmant.task.confable.LoggingConfigurable |
---|
setLogFooter, setLogHeader, setReportLevel, setTraceLogging |
Method Detail |
---|
public WritableFile get()
Producer
null
if nothing is produced
yet.
This method should be implemented thread-safe.
get
in interface Producer<WritableFile>
protected String getDefaultLogHeader()
AbstractTask
This is called after validating the task.
Return null
to disable logging.
getDefaultLogHeader
in class AbstractTask<XsltTask>
protected Collection<String> validate(Report r)
AbstractActionTask
AbstractTask
to give a validation
error if no source is set (and AbstractActionTask.isSourcesMandatory()
is true
).
Subclasses may override this to add their own validations.
validate
in class AbstractProcessTask<XsltTask>
r
- A report to log warning and debug messages to. Validation errors
should not be logged, though. They are logged later.
protected Templates interpretTemplates(Object o) throws TaskFailedException
Templates
object using the following
algorithm:
Producer
, run the generated object through
this method.Templates
object, return it.
o
- The object to interpret.
TaskFailedException
- If the object cannot be interpreted.protected void runInternal(Report r) throws IOException, TransformerConfigurationException, TransformerException
AbstractTask
AbstractTask.validate(Report)
:d before
this method is called, see AbstractTask.run()
.
runInternal
in class AbstractTask<XsltTask>
r
- The current thread's Report
.
IOException
TransformerConfigurationException
TransformerException
public void copyProperties(XsltTask spec)
AbstractActionTask
AbstractTask
to copy the
source properties. Subclasses must override this to copy their own
properties.
copyProperties
in interface TaskSpecification<XsltTask>
copyProperties
in class AbstractProcessTask<XsltTask>
spec
- The specification to copy properties to.public String toString()
AbstractTask
This implementation just returns the class name.
toString
in class AbstractProcessTask<XsltTask>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |