| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tools.ant.taskdefs.optional.TraXLiaison
public class TraXLiaison
Concrete liaison for XSLT processor implementing TraX. (ie JAXP 1.1)
| Field Summary | 
|---|
| Fields inherited from interface org.apache.tools.ant.taskdefs.XSLTLiaison | 
|---|
| FILE_PROTOCOL_PREFIX | 
| Constructor Summary | |
|---|---|
| TraXLiaison()Constructor for TraXLiaison. | |
| Method Summary | |
|---|---|
|  void | addParam(java.lang.String name,
         java.lang.Object value)Add a parameter. | 
|  void | addParam(java.lang.String name,
         java.lang.String value)Add a parameter. | 
|  void | configure(XSLTProcess xsltTask)Specific configuration for the TRaX liaison. | 
|  void | error(javax.xml.transform.TransformerException e)Log an error. | 
|  void | fatalError(javax.xml.transform.TransformerException e)Log a fatal error. | 
| protected  java.lang.String | getSystemId(java.io.File file)Deprecated. since 1.5.x. Use org.apache.tools.ant.util.JAXPUtils#getSystemId instead. | 
|  void | setAttribute(java.lang.String name,
             java.lang.Object value)Set a custom attribute for the JAXP factory implementation. | 
|  void | setEntityResolver(org.xml.sax.EntityResolver aResolver)Set the class to resolve entities during the transformation. | 
|  void | setFactory(java.lang.String name)Set the factory name to use instead of JAXP default lookup. | 
|  void | setLogger(XSLTLogger l)Set a logger. | 
|  void | setOutputProperty(java.lang.String name,
                  java.lang.String value)Set the output property for the current transformer. | 
|  void | setStylesheet(java.io.File stylesheet)Set the stylesheet file. | 
|  void | setStylesheet(Resource stylesheet)Set the stylesheet file. | 
|  void | setURIResolver(javax.xml.transform.URIResolver aResolver)Set the class to resolve URIs during the transformation | 
|  void | transform(java.io.File infile,
          java.io.File outfile)Transform an input file. | 
|  void | warning(javax.xml.transform.TransformerException e)Log a warning. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public TraXLiaison()
            throws java.lang.Exception
java.lang.Exception - never| Method Detail | 
|---|
public void setStylesheet(java.io.File stylesheet)
                   throws java.lang.Exception
setStylesheet in interface XSLTLiaisonstylesheet - a File value
java.lang.Exception - on error
public void setStylesheet(Resource stylesheet)
                   throws java.lang.Exception
setStylesheet in interface XSLTLiaison3stylesheet - a Resource value
java.lang.Exception - on error
public void transform(java.io.File infile,
                      java.io.File outfile)
               throws java.lang.Exception
transform in interface XSLTLiaisoninfile - the file to transformoutfile - the result file
java.lang.Exception - on errorXSLTLiaison.setStylesheet(File)public void setFactory(java.lang.String name)
name - the fully qualified class name of the factory to use
 or null for the default JAXP look up mechanism.
public void setAttribute(java.lang.String name,
                         java.lang.Object value)
name - the attribute name.value - the value of the attribute, usually a boolean
 string or object.
public void setOutputProperty(java.lang.String name,
                              java.lang.String value)
name - the output property name.value - the output property value.public void setEntityResolver(org.xml.sax.EntityResolver aResolver)
aResolver - the resolver class.public void setURIResolver(javax.xml.transform.URIResolver aResolver)
aResolver - a EntityResolver value
public void addParam(java.lang.String name,
                     java.lang.String value)
addParam in interface XSLTLiaisonname - the name of the parametervalue - the value of the parameterXSLTLiaison4.addParam(java.lang.String, java.lang.Object)
public void addParam(java.lang.String name,
                     java.lang.Object value)
addParam in interface XSLTLiaison4name - the name of the parametervalue - the value of the parameterTransformer#setParameter(java.lang.String, java.lang.Object)public void setLogger(XSLTLogger l)
setLogger in interface XSLTLoggerAwarel - a logger.public void error(javax.xml.transform.TransformerException e)
error in interface javax.xml.transform.ErrorListenere - the exception to log.public void fatalError(javax.xml.transform.TransformerException e)
fatalError in interface javax.xml.transform.ErrorListenere - the exception to log.public void warning(javax.xml.transform.TransformerException e)
warning in interface javax.xml.transform.ErrorListenere - the exception to log.protected java.lang.String getSystemId(java.io.File file)
file - the filename to use for the systemid
public void configure(XSLTProcess xsltTask)
configure in interface XSLTLiaison2xsltTask - the XSLTProcess task instance from which this liasion
        is to be configured.| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||