Save This Page
Home » apache-ant-1.7.1-src » org.apache.tools » ant » taskdefs » optional » [javadoc | source]
org.apache.tools.ant.taskdefs.optional
public class: TraXLiaison [javadoc | source]
java.lang.Object
   org.apache.tools.ant.taskdefs.optional.TraXLiaison

All Implemented Interfaces:
    XSLTLoggerAware, ErrorListener, XSLTLiaison3

Concrete liaison for XSLT processor implementing TraX. (ie JAXP 1.1)
Constructor:
 public TraXLiaison() throws Exception 
    Constructor for TraXLiaison.
    Throws:
    Exception - never
Method from org.apache.tools.ant.taskdefs.optional.TraXLiaison Summary:
addParam,   configure,   error,   fatalError,   getSystemId,   setAttribute,   setEntityResolver,   setFactory,   setLogger,   setOutputProperty,   setStylesheet,   setStylesheet,   setURIResolver,   transform,   warning
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.tools.ant.taskdefs.optional.TraXLiaison Detail:
 public  void addParam(String name,
    String value) 
    Add a parameter.
 public  void configure(XSLTProcess xsltTask) 
    Specific configuration for the TRaX liaison.
 public  void error(TransformerException e) 
    Log an error.
 public  void fatalError(TransformerException e) 
    Log a fatal error.
 protected String getSystemId(File file) 
Deprecated! since - 1.5.x. Use org.apache.tools.ant.util.JAXPUtils#getSystemId instead.

 public  void setAttribute(String name,
    Object value) 
    Set a custom attribute for the JAXP factory implementation.
 public  void setEntityResolver(EntityResolver aResolver) 
    Set the class to resolve entities during the transformation.
 public  void setFactory(String name) 
    Set the factory name to use instead of JAXP default lookup.
 public  void setLogger(XSLTLogger l) 
    Set a logger.
 public  void setOutputProperty(String name,
    String value) 
    Set the output property for the current transformer. Note that the stylesheet must be set prior to calling this method.
 public  void setStylesheet(File stylesheet) throws Exception 
    Set the stylesheet file.
 public  void setStylesheet(Resource stylesheet) throws Exception 
    Set the stylesheet file.
 public  void setURIResolver(URIResolver aResolver) 
    Set the class to resolve URIs during the transformation
 public  void transform(File infile,
    File outfile) throws Exception 
    Transform an input file.
 public  void warning(TransformerException e) 
    Log a warning.