|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tools.ant.ProjectComponent org.apache.tools.ant.Task com.finalist.ant.tasks.docbook.AbstractDocBookTask
AbstractDocBookTask.java
This Abstract class represents a DocBook Task
other classes which implements this class must inplement the execute methode to
execute the task.
The class can only have a child which is a XSLTParameterTask and has the name of
"param" (This is a bad behaviour of ant)
There are tree attributes that need to be set:
docbookfile representing the xml file which contains the docbook file to be transformed
xslfile the xsl file which will be used during transformation
outputdir in this directory the output will be generated
Field Summary |
Fields inherited from class org.apache.tools.ant.Task |
description, location, target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
project |
Constructor Summary | |
AbstractDocBookTask()
|
Method Summary | |
void |
addConfiguredFileset(org.apache.tools.ant.types.FileSet fileSet)
This method addes a fileset to the current task, the files specifyed will be used for generation |
void |
addConfiguredParam(XSLTParameterTask task)
Add a nested XSLTParameterTask to this task Watch it!! |
protected void |
doSetParameter(javax.xml.transform.Transformer transformer)
This method sets the parameters on the given transfromer |
abstract void |
execute()
This abstract method must be implemented by a implementing class to preform the execution of the task |
protected java.lang.String |
getBaseDir()
This method returns the baseDir of the current docbook file Caution! |
protected java.lang.String |
getDocbookfile()
Getter method for the docbookfile attribute |
protected int |
getNumberOfCycles()
This method returns the total number of Cycles that will be done |
protected java.io.File |
getOutputFile(java.lang.String extention)
This method returns a File to write the transformed document to |
protected javax.xml.transform.Transformer |
getTransformer()
This method return the Transformer that need to be used |
void |
setDocbookfile(java.lang.String docbookfile)
The setter method for the docbookfile attribute |
void |
setOutputdir(java.io.File outputdir)
The setter method for the outputdir attribute |
void |
setVersionextention(java.lang.String versionextention)
Setter method for the versionExtention |
void |
setXslfile(java.io.File xslfile)
The setter method for the xslfile attribute |
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorFlush, handleErrorOutput, handleFlush, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject, setProject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbstractDocBookTask()
Method Detail |
public void setDocbookfile(java.lang.String docbookfile)
docbookfile
- the path of the file to be used as the docbook source filepublic void setXslfile(java.io.File xslfile)
xslfile
- the xsl file to use to transform the docbookfilepublic void setOutputdir(java.io.File outputdir)
outputdir
- the directory to put the outputpublic void addConfiguredParam(XSLTParameterTask task)
task
- the XSLTParameterTask containing the parameters used for transformationpublic void addConfiguredFileset(org.apache.tools.ant.types.FileSet fileSet)
fileSet
- the FileSet to usepublic abstract void execute() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
Task.execute()
protected java.lang.String getDocbookfile()
protected java.io.File getOutputFile(java.lang.String extention)
extention
- the extention which the generated file should have (normaly html or pdf)
protected javax.xml.transform.Transformer getTransformer() throws javax.xml.transform.TransformerConfigurationException
javax.xml.transform.TransformerConfigurationException
- when a TransformerConfigurationException occours a TransformerConfigurationException will be thrownprotected int getNumberOfCycles()
protected java.lang.String getBaseDir()
getOutputFile(String)
protected void doSetParameter(javax.xml.transform.Transformer transformer)
transformer
- the transformer on which the parameters need te be setpublic void setVersionextention(java.lang.String versionextention)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |