| Modifier and Type | Field and Description |
|---|---|
| private final List | attributes
factory attributes |
| private EntityResolver | entityResolver
possible resolver for publicIds |
| private String | factoryName
the name of the factory implementation class to use or null for default JAXP lookup. |
| private final Map | features
factory features |
| private static final FileUtils | FILE_UTILS
Helper for transforming filenames to URIs. |
| private XSLTLogger | |
| private final Vector | outputProperties
transformer output properties |
| private final Hashtable | params
stylesheet parameters |
| private Project | project
The current |
| private Resource | stylesheet
stylesheet to use for transformation |
| private boolean | suppressWarnings
whether to suppress warnings |
| private Templates | templates
The In memory version of the stylesheet |
| private long | templatesModTime
The modification time of the stylesheet from which the templates are read |
| private TransformerFactory | tfactory
The trax TransformerFactory |
| private XSLTProcess. | traceConfiguration
optional trace configuration. |
| private Transformer | transformer
transformer to use for processing files |
| private URIResolver | uriResolver
possible resolver for URIs |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addParam(final String
the name of the parameter name, final String the value of the parameter value)Implements org. |
| public void | addParam(final String
the name of the parameter name, final Object the value of the parameter value)Implements org. |
| private void | |
| public void | configure(final XSLTProcess
the XSLTProcess task instance from which this liaison
is to be configured. xsltTask)Implements org. |
| private void | |
| public void | error(final TransformerException
the exception to log. e)Implements javax. |
| public void | fatalError(final TransformerException
the exception to log. e)Implements javax. |
| private TransformerFactory | Returns: the Transformer factory associated to this liaison.return the Transformer factory associated to this liaison. |
| private Source | Returns: the configured source instance matching the stylesheet.the stream containing the stylesheet data. is, final File the file that will be used for the systemid. infile)Get the source instance from the stream and id of the file. |
| private Source | |
| protected String | Returns: the systemidthe filename to use for the systemid file)
Deprecated
since 1.5.x.
Use org.apache.tools.ant.util.JAXPUtils#getSystemId instead.
|
| private void | |
| private void | |
| private String | |
| public void | setAttribute(final String
the attribute name. name, final Object the value of the attribute, usually a boolean
string or object. value)Set a custom attribute for the JAXP factory implementation. |
| public void | setEntityResolver(final EntityResolver
the resolver class. aResolver)Set the class to resolve entities during the transformation. |
| public void | setFactory(final String
the fully qualified class name of the factory to use
or null for the default JAXP look up mechanism. name)Set the factory name to use instead of JAXP default lookup. |
| public void | setFeature(final String
the feature name. name, final boolean the value of the feature value)Set a custom feature for the JAXP factory implementation. |
| public void | setLogger(final XSLTLogger
a logger. l)Implements org. |
| public void | setOutputProperty(final String
the output property name. name, final String the output property value. value)Set the output property for the current transformer. |
| public void | setStylesheet(final File
a stylesheet)File valueImplements org. |
| public void | setStylesheet(final Resource stylesheet)
Implements org. |
| private void | |
| public void | setURIResolver(final URIResolver
a aResolver)EntityResolver valueSet the class to resolve URIs during the transformation |
| public void | transform(final File
the file to transform infile, final File the result file outfile)Implements org. |
| public void | warning(final TransformerException
the exception to log. e)Implements javax. |
| attributes | back to summary |
|---|---|
| private final List<Object[]> attributes factory attributes | |
| entityResolver | back to summary |
|---|---|
| private EntityResolver entityResolver possible resolver for publicIds | |
| factoryName | back to summary |
|---|---|
| private String factoryName the name of the factory implementation class to use or null for default JAXP lookup. | |
| features | back to summary |
|---|---|
| private final Map<String, Boolean> features factory features | |
| FILE_UTILS | back to summary |
|---|---|
| private static final FileUtils FILE_UTILS Helper for transforming filenames to URIs.
| |
| logger | back to summary |
|---|---|
| private XSLTLogger logger | |
| outputProperties | back to summary |
|---|---|
| private final Vector<String[]> outputProperties transformer output properties | |
| params | back to summary |
|---|---|
| private final Hashtable<String, Object> params stylesheet parameters | |
| project | back to summary |
|---|---|
| private Project project The current | |
| stylesheet | back to summary |
|---|---|
| private Resource stylesheet stylesheet to use for transformation | |
| suppressWarnings | back to summary |
|---|---|
| private boolean suppressWarnings whether to suppress warnings | |
| templates | back to summary |
|---|---|
| private Templates templates The In memory version of the stylesheet | |
| templatesModTime | back to summary |
|---|---|
| private long templatesModTime The modification time of the stylesheet from which the templates are read | |
| tfactory | back to summary |
|---|---|
| private TransformerFactory tfactory The trax TransformerFactory | |
| traceConfiguration | back to summary |
|---|---|
| private XSLTProcess. optional trace configuration. | |
| transformer | back to summary |
|---|---|
| private Transformer transformer transformer to use for processing files | |
| uriResolver | back to summary |
|---|---|
| private URIResolver uriResolver possible resolver for URIs | |
| TraXLiaison | back to summary |
|---|---|
| public TraXLiaison() throws Exception Constructor for TraXLiaison.
| |
| addParam | back to summary |
|---|---|
| public void addParam(final String name, final String value) Implements org. Add a parameter. | |
| addParam | back to summary |
|---|---|
| public void addParam(final String name, final Object value) Implements org. Add a parameter. | |
| applyReflectionHackForExtensionMethods | back to summary |
|---|---|
| private void applyReflectionHackForExtensionMethods() | |
| configure | back to summary |
|---|---|
| public void configure(final XSLTProcess xsltTask) Implements org. Specific configuration for the TRaX liaison.
| |
| createTransformer | back to summary |
|---|---|
| private void createTransformer() throws IOException, ParserConfigurationException, SAXException, TransformerException Create a new transformer based on the liaison settings | |
| error | back to summary |
|---|---|
| public void error(final TransformerException e) Implements javax. Log an error.
| |
| fatalError | back to summary |
|---|---|
| public void fatalError(final TransformerException e) Implements javax. Log a fatal error.
| |
| getFactory | back to summary |
|---|---|
| private TransformerFactory getFactory() throws BuildException return the Transformer factory associated to this liaison.
| |
| getSource | back to summary |
|---|---|
| private Source getSource(final InputStream is, final File infile) throws ParserConfigurationException, SAXException Get the source instance from the stream and id of the file.
| |
| getSource | back to summary |
|---|---|
| private Source getSource(final InputStream is, final Resource resource) throws ParserConfigurationException, SAXException | |
| getSystemId | back to summary |
|---|---|
| protected String getSystemId(final File file)
Deprecated since 1.5.x. Use org.apache.tools.ant.util.JAXPUtils#getSystemId instead. | |
| logError | back to summary |
|---|---|
| private void logError(final TransformerException e, final String type) | |
| readTemplates | back to summary |
|---|---|
| private void readTemplates() throws IOException, TransformerConfigurationException, ParserConfigurationException, SAXException Read in templates from the stylesheet | |
| resourceToURI | back to summary |
|---|---|
| private String resourceToURI(final Resource resource) | |
| setAttribute | back to summary |
|---|---|
| public void setAttribute(final String name, final Object value) Set a custom attribute for the JAXP factory implementation. | |
| setEntityResolver | back to summary |
|---|---|
| public void setEntityResolver(final EntityResolver aResolver) Set the class to resolve entities during the transformation.
| |
| setFactory | back to summary |
|---|---|
| public void setFactory(final String name) Set the factory name to use instead of JAXP default lookup.
| |
| setFeature | back to summary |
|---|---|
| public void setFeature(final String name, final boolean value) Set a custom feature for the JAXP factory implementation.
| |
| setLogger | back to summary |
|---|---|
| public void setLogger(final XSLTLogger l) Implements org. Set a logger.
| |
| setOutputProperty | back to summary |
|---|---|
| public void setOutputProperty(final String name, final String value) Set the output property for the current transformer. Note that the stylesheet must be set prior to calling this method. | |
| setStylesheet | back to summary |
|---|---|
| public void setStylesheet(final File stylesheet) throws Exception Implements org. Set the stylesheet file. | |
| setStylesheet | back to summary |
|---|---|
| public void setStylesheet(final Resource stylesheet) throws Exception Implements org. Set the stylesheet file. | |
| setTransformationParameters | back to summary |
|---|---|
| private void setTransformationParameters() Sets the parameters for the transformer. | |
| setURIResolver | back to summary |
|---|---|
| public void setURIResolver(final URIResolver aResolver) Set the class to resolve URIs during the transformation
| |
| transform | back to summary |
|---|---|
| public void transform(final File infile, final File outfile) throws Exception Implements org. Transform an input file. | |
| warning | back to summary |
|---|---|
| public void warning(final TransformerException e) Implements javax. Log a warning.
| |