|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.osjava.jardiff.ant.JDTraXLiaison
Custom TraX liaison class. This allows loading a stylesheet from a systemid (URL).
| Field Summary |
| Fields inherited from interface org.apache.tools.ant.taskdefs.XSLTLiaison |
FILE_PROTOCOL_PREFIX |
| Constructor Summary | |
JDTraXLiaison()
Create a new JDTraXLiaison. |
|
| Method Summary | |
void |
addParam(String name,
String value)
|
void |
configure(JDXSLTProcess xsltTask)
Specific configuration for the TRaX liaison. |
void |
configure(org.apache.tools.ant.taskdefs.XSLTProcess xsltTask)
Specific configuration for the TRaX liaison. |
void |
error(TransformerException e)
|
void |
fatalError(TransformerException e)
|
protected String |
getSystemId(File file)
Deprecated. use org.apache.tools.ant.util.JAXPUtils#getSystemId instead |
void |
setAttribute(String name,
Object value)
Set a custom attribute for the JAXP factory implementation. |
void |
setEntityResolver(EntityResolver aResolver)
Set the class to resolve entities during the transformation |
void |
setFactory(String name)
Set the factory name to use instead of JAXP default lookup. |
void |
setLogger(org.apache.tools.ant.taskdefs.XSLTLogger l)
|
void |
setOutputProperty(String name,
String value)
Set the output property for the current transformer. |
void |
setStylesheet(File stylesheet)
|
void |
setStylesheet(String systemid)
Set the stylesheet to use for the transformation. |
void |
setURIResolver(URIResolver aResolver)
Set the class to resolve URIs during the transformation |
void |
transform(File infile,
File outfile)
|
void |
warning(TransformerException e)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JDTraXLiaison()
throws Exception
| Method Detail |
public void setStylesheet(String systemid)
JDXSLTLiaison3
setStylesheet in interface JDXSLTLiaison3systemid - the systemid of the stylesheet (a URL).
public void setStylesheet(File stylesheet)
throws Exception
setStylesheet in interface org.apache.tools.ant.taskdefs.XSLTLiaisonException
public void transform(File infile,
File outfile)
throws Exception
transform in interface org.apache.tools.ant.taskdefs.XSLTLiaisonExceptionpublic void setFactory(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(String name,
Object value)
name - the attribute name.value - the value of the attribute, usually a boolean
string or object.
public void setOutputProperty(String name,
String value)
name - the output property name.value - the output property value.public void setEntityResolver(EntityResolver aResolver)
public void setURIResolver(URIResolver aResolver)
public void addParam(String name,
String value)
addParam in interface org.apache.tools.ant.taskdefs.XSLTLiaisonpublic void setLogger(org.apache.tools.ant.taskdefs.XSLTLogger l)
setLogger in interface org.apache.tools.ant.taskdefs.XSLTLoggerAwarepublic void error(TransformerException e)
error in interface ErrorListenerpublic void fatalError(TransformerException e)
fatalError in interface ErrorListenerpublic void warning(TransformerException e)
warning in interface ErrorListenerprotected String getSystemId(File file)
public void configure(org.apache.tools.ant.taskdefs.XSLTProcess xsltTask)
configure in interface org.apache.tools.ant.taskdefs.XSLTLiaison2xsltTask - the XSLTProcess task instance from which this liasion
is to be configured.public void configure(JDXSLTProcess xsltTask)
configure in interface JDXSLTLiaison3xsltTask - 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 | ||||||||||