|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ibisph.xslt.Transformation
public class Transformation
Spring type bean that provides XML/XSLT transformations. This class would normally be a static abstract but in the Spring world it is left as a normal class which spring will instantiate only once.
| Field Summary | |
|---|---|
protected TransformerFactory |
transformerFactory
|
| Constructor Summary | |
|---|---|
Transformation()
Default constructor which uses the base, non caching standard IBIS IBIS TransformerFactory which defaults to JAXP. |
|
Transformation(TransformerFactory transformerFactory)
Constructor which allows other JAPX TransformerFactorys to be used. |
|
| Method Summary | |
|---|---|
void |
setTransformerFactory(TransformerFactory transformerFactory)
Sets specified XSLT Transformation Engine. |
void |
transform(java.lang.String xsltSystemID,
org.dom4j.Document document,
java.util.Map parameters,
java.io.OutputStream outputStream)
Overloaded method that performs an XSLT/XML document transformation. |
void |
transform(java.lang.String xsltSystemID,
java.lang.Object xml,
java.util.Map parameters,
java.io.OutputStream outputStream)
Overloaded method that calls the appropriate XSLT/XML transformation method. |
void |
transform(java.lang.String xsltSystemID,
javax.xml.transform.Source xmlSource,
java.util.Map parameters,
java.io.OutputStream outputStream)
Actual method that performs the XSLT/XML transformation. |
void |
transform(java.lang.String xsltSystemID,
javax.xml.transform.Source xmlSource,
java.util.Map parameters,
javax.xml.transform.Result result)
Main XSLT/XML transformation worker method. |
void |
transform(java.lang.String xsltSystemID,
java.lang.String xmlSystemID,
java.util.Map parameters,
java.io.OutputStream outputStream)
Overloaded method that performs an XSLT/XML SystemID transformation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected TransformerFactory transformerFactory
| Constructor Detail |
|---|
public Transformation()
public Transformation(TransformerFactory transformerFactory)
transformerFactory - IBIS XSLT TransformerFactory to be used.| Method Detail |
|---|
public void setTransformerFactory(TransformerFactory transformerFactory)
transformerFactory - IBIS XSLT TransformerFactory to be used.
public void transform(java.lang.String xsltSystemID,
java.lang.Object xml,
java.util.Map parameters,
java.io.OutputStream outputStream)
throws javax.xml.transform.TransformerException,
java.io.IOException
xsltSystemID - System ID String for the XSLT to be used for the
transformation.xml - Either XML Document or XML System ID to be transformed.parameters - Optional name value pair map values to be passed
to the XSLT.outputStream - Output stream where the resulting transformation
is sent.
javax.xml.transform.TransformerException
java.io.IOException
public void transform(java.lang.String xsltSystemID,
java.lang.String xmlSystemID,
java.util.Map parameters,
java.io.OutputStream outputStream)
throws javax.xml.transform.TransformerException,
java.io.IOException
xsltSystemID - System ID String for the XSLT to be used for the
transformation.xmlSystemID - System ID of the XML document file to be transformed.parameters - Optional name value pair map values to be passed
to the XSLT.outputStream - Output stream where the resulting transformation
is sent.
javax.xml.transform.TransformerException
java.io.IOException
public void transform(java.lang.String xsltSystemID,
org.dom4j.Document document,
java.util.Map parameters,
java.io.OutputStream outputStream)
throws javax.xml.transform.TransformerException,
java.io.IOException
xsltSystemID - System ID String for the XSLT to be used for the
transformation.document - XML Document to be transformed.parameters - Optional name value pair map values to be passed
to the XSLT.outputStream - Output stream where the resulting transformation
is sent.
javax.xml.transform.TransformerException
java.io.IOException
public void transform(java.lang.String xsltSystemID,
javax.xml.transform.Source xmlSource,
java.util.Map parameters,
java.io.OutputStream outputStream)
throws javax.xml.transform.TransformerException,
java.io.IOException
xsltSystemID - System ID String for the XSLT to be used for the
transformation.xmlSource - XML Source to be transformed (based on either an XML
file or an XML document).parameters - Optional name value pair map values to be passed
to the XSLT.outputStream - Output stream where the resulting transformation
is sent.
javax.xml.transform.TransformerException
java.io.IOException
public void transform(java.lang.String xsltSystemID,
javax.xml.transform.Source xmlSource,
java.util.Map parameters,
javax.xml.transform.Result result)
throws javax.xml.transform.TransformerException,
java.io.FileNotFoundException
xsltSystemID - System ID String for the XSLT to be used for the
transformation.xmlSource - XML Source object to be transformed.parameters - Optional name value pair map values to be passed
to the XSLT.result - Transformation Result that receives the transformation.
javax.xml.transform.TransformerException
java.io.FileNotFoundException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||