|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fulcrum.xslt.XSLTServiceFacade
public class XSLTServiceFacade
This is a static accesor class for XSLTService
.
Constructor Summary | |
---|---|
XSLTServiceFacade()
|
Method Summary | |
---|---|
protected static XSLTService |
getService()
Utility method for accessing the service implementation |
protected static void |
setService(XSLTService xsltService)
Static utility method to set the service instance to be used in the facade |
String |
transform(String xslName,
Map params)
Uses an xsl file without any xml input. |
String |
transform(String xslName,
Node in)
Uses an xsl file to transform xml input from a DOM note and returns a string containing the transformed output. |
void |
transform(String xslName,
Node in,
Writer out)
Uses an xsl file to transform xml input from a DOM note and writes the output to a writer. |
static String |
transform(String xslName,
Reader in)
Uses an xsl file to transform xml input from a reader and returns a string containing the transformed output. |
static void |
transform(String xslName,
Reader in,
Writer out)
Uses an xsl file to transform xml input from a reader and writes the output to a writer. |
void |
transform(String xslName,
Writer out,
Map params)
Uses an xsl file without any xml input. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XSLTServiceFacade()
Method Detail |
---|
protected static XSLTService getService()
protected static void setService(XSLTService xsltService)
xsltService
- the service instancepublic static void transform(String xslName, Reader in, Writer out) throws Exception
xslName
- The name of the file that contains the xsl stylesheet.in
- The reader that passes the xml to be transformedout
- The writer for the transformed output
Exception
- the transformation failedpublic static String transform(String xslName, Reader in) throws Exception
xslName
- The name of the file that contains the xsl stylesheet.in
- The reader that passes the xml to be transformed
Exception
- the transformation failedpublic void transform(String xslName, Node in, Writer out) throws Exception
xslName
- The name of the file that contains the xsl stylesheet.in
- The DOM Node to be transformedout
- The writer for the transformed output
Exception
- the transformation failedpublic String transform(String xslName, Node in) throws Exception
xslName
- The name of the file that contains the xsl stylesheet.in
- The DOM Node to be transformed
Exception
- the transformation failedpublic String transform(String xslName, Map params) throws Exception
xslName
- The name of the file that contains the xsl stylesheet.params
- A set of parameters that will be forwarded to the XSLT
Exception
- the transformation failedpublic void transform(String xslName, Writer out, Map params) throws Exception
xslName
- The name of the file that contains the xsl stylesheetout
- The writer for the transformed output.params
- A set of parameters that will be forwarded to the XSLT
Exception
- the transformation failed
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |