org.odftoolkit.odfxsltrunnertask
Class ODFXSLTRunnerTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.odftoolkit.odfxsltrunnertask.ODFXSLTRunnerTask
All Implemented Interfaces:
Cloneable

public class ODFXSLTRunnerTask
extends org.apache.tools.ant.Task

Ant Taks for applying XSLT style sheets to ODF packages.


Nested Class Summary
static class ODFXSLTRunnerTask.Factory
          Paramter class for nested elements.
static class ODFXSLTRunnerTask.Param
          Paramter class for nested elements.
 
Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
ODFXSLTRunnerTask()
           
 
Method Summary
 ODFXSLTRunnerTask.Factory createFactory()
          Create a new factory for a nested element.
 ODFXSLTRunnerTask.Param createParam()
          Create a new paramter for a nested element.
 void execute()
           
 void setForce(boolean bForce)
          Set force mode.
 void setIn(File aIn)
          Set input package.
 void setInFile(File aInFile)
          Set input file.
 void setOut(File aOut)
          Set output package.
 void setOutFile(File aOutFile)
          Set output file.
 void setStyle(File aStyle)
          Set the style sheet to apply.
 void setTemplate(boolean bTemplate)
          Sets template mode.
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ODFXSLTRunnerTask

public ODFXSLTRunnerTask()
Method Detail

setIn

public void setIn(File aIn)
Set input package. The specified path within the package is the source of the transformation.

Parameters:
aIn - Input package

setInFile

public void setInFile(File aInFile)
Set input file. This (XML) file is used directly as source of the transformation.

Parameters:
aInFile - Input File

setOut

public void setOut(File aOut)
Set output package. The source of the transformation is stored in a package with this name.

Parameters:
aOut -

setOutFile

public void setOutFile(File aOutFile)
Set output file. The source of the transformation is stored under this name as plain (XML) file.

Parameters:
aOutFile -

setStyle

public void setStyle(File aStyle)
Set the style sheet to apply.

Parameters:
aStyle -

setTemplate

public void setTemplate(boolean bTemplate)
Sets template mode. In template mode, the output package must exist, and the specified path within the output file is replaced with the result of the transformation

Parameters:
bTemplate - Template mode

setForce

public void setForce(boolean bForce)
Set force mode. In this mode, the style sheet is applied even if the output file or package is newer than the source and the style sheet.

Parameters:
bForce -

createParam

public ODFXSLTRunnerTask.Param createParam()
Create a new paramter for a nested element.

Returns:
new paramter.

createFactory

public ODFXSLTRunnerTask.Factory createFactory()
Create a new factory for a nested element.

Returns:
new paramter.

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Overrides:
execute in class org.apache.tools.ant.Task
Throws:
org.apache.tools.ant.BuildException


Copyright © 2017 The Apache Software Foundation. All rights reserved.