|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.adaptx.util.JakartaAntAdapter
public class JakartaAntAdapter
A utility class which allows Adaptx to be used as the XSLT Processor for the Jakarta ANT build utility.
Field Summary |
---|
Fields inherited from interface org.apache.tools.ant.taskdefs.XSLTLiaison |
---|
FILE_PROTOCOL_PREFIX |
Constructor Summary | |
---|---|
JakartaAntAdapter()
Creates a new adapter class for Jakarta ANT. |
Method Summary | |
---|---|
void |
addParam(java.lang.String name,
java.lang.String expression)
Add a parameter to be set during the XSL transformation. |
void |
setStylesheet(java.io.File stylesheet)
Sets the stylesheet to use for the transformation. |
void |
transform(java.io.File infile,
java.io.File outfile)
Perform the transformation of a file into another. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JakartaAntAdapter()
Method Detail |
---|
public void setStylesheet(java.io.File stylesheet) throws java.lang.Exception
setStylesheet
in interface org.apache.tools.ant.taskdefs.XSLTLiaison
stylesheet
- the stylesheet to be used for transformation.
java.lang.Exception
public void addParam(java.lang.String name, java.lang.String expression) throws java.lang.Exception
addParam
in interface org.apache.tools.ant.taskdefs.XSLTLiaison
name
- the parameter name.expression
- the parameter value as an expression string.
java.lang.Exception
- thrown if any problems happens.public void transform(java.io.File infile, java.io.File outfile) throws java.lang.Exception
transform
in interface org.apache.tools.ant.taskdefs.XSLTLiaison
infile
- the xml input file.outfile
- the output file resulting from the transformation
java.lang.Exception
- thrown if any problems happens.setStylesheet(File)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |