com.massimo.tools.scriptrunner.work
Class XSLTask
java.lang.Object
   com.massimo.tools.scriptrunner.AbstractTask
com.massimo.tools.scriptrunner.AbstractTask
       com.massimo.tools.scriptrunner.work.XSLTask
com.massimo.tools.scriptrunner.work.XSLTask
- All Implemented Interfaces: 
- Task
- public class XSLTask 
- extends AbstractTask
Apply an XSL transform to an XML document to produce an output file.
 
Introduces the attributes: 
 xml,
 xsl and
 output.
 These attributes values should be either absolute paths or relative to the base URI of the XML file.
 
 
 
 
 
| Methods inherited from class com.massimo.tools.scriptrunner.AbstractTask | 
| getBooleanProperty, getCurrentWorkingDirectory, getDefinition, getIntProperty, getName, getParent, getProperties, getStartProcessingRow, getText, getType, interrupt, isIgnoreableError, isIgnoreableError, isInterrupted, isLogProgress, postProcess, preProcess, process, resultCodeToString, substituteParameters, toString, validate, validateConnections, validateParameters | 
 
 
XSLTask
public XSLTask(Task parent,
               String type,
               Element definition,
               Map<String,String> contextProperties)
- Parameters:
- parent-
- type-
- definition-
- contextProperties-
doProcess
protected int doProcess(ExecutionContext context)
                 throws Exception
- Implementing classes only need to do their own work and log progress when appropriate.
 
 Transforms the XML document into output by the XSL transform.
 
- 
- Specified by:
- doProcessin class- AbstractTask
 
- 
- Returns:
- O for success. Anything else is a failure.
- Throws:
- Exception
- See Also:
- AbstractTask.process(ExecutionContext)
 
doValidate
protected int doValidate(ValidationContext context)
- Check whether this task should be able to run.
 Implementations should check for the prescence of files, attributes,...
 
 Checks for mandatory attributes and XSL, XML files
 
- 
- Specified by:
- doValidatein class- AbstractTask
 
- 
- Returns:
- O for success. Anything else is a failure.
 
getLogger
protected org.apache.log4j.Logger getLogger()
- 
 
- 
- Specified by:
- getLoggerin class- AbstractTask
 
- 
- Returns:
- Class logger