|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bankframe.ei.xml.EDocumentTransformer
This class is used to transform an XML Document object from one XML format to another. The default implementation uses XSL StyleSheets to perform this transformation.
Method Summary | |
void |
configure(org.w3c.dom.Document source)
This method handles any custom configurations necessary for use with an EDocumentTransformer implementation. For the default transformer, this method initialises the name and location of the XSL style sheets to be used for incoming and outgoing transformations. |
void |
configure(java.lang.String contentType)
This method configures the style sheets to use for transforming the XML |
void |
setStyleSheetLocation(java.lang.String path)
This method sets the location of the style sheet that will be used for transformations. |
void |
setStyleSheetName(java.lang.String name)
This method sets the name of the stylesheet that will be used in the transformation. |
void |
transform(org.w3c.dom.Document source,
org.w3c.dom.Document result)
This method transforms an XML Document from one XML format to another XML format. |
void |
transform(org.w3c.dom.Document source,
org.w3c.dom.Document result,
java.lang.String direction)
This method transforms an XML Document from one XML format to another XML format. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public void configure(java.lang.String contentType)
contentType
- The content-type of the XML documentpublic void configure(org.w3c.dom.Document source)
BankframeResource.properties
file. It is an alternative to
using the setStyleSheetName
and setStyleSheetLocation
methods.
source
- The source document that will be used in a transformation.public void setStyleSheetLocation(java.lang.String path)
path
- URL or directory path where the style sheet is found.public void setStyleSheetName(java.lang.String name)
styleSheetNameIN
and styleSheetNameOUT
values are used instead.
name
- The file name of the XSL stylesheetpublic void transform(org.w3c.dom.Document source, org.w3c.dom.Document result) throws org.xml.sax.SAXNotSupportedException, javax.xml.transform.TransformerException, javax.xml.transform.TransformerConfigurationException
configure(Document)
method or the
setStyleSheetName
and setStyleSheetLocation
methods are
first called to set the necessary parameters for this transformation.transform(Document, Document, String)
method may be used to specify which direction the transformation is going in.
source
- The original source XML Document that will be transformed.result
- The XML Document as a result of the transformation.
org.xml.sax.SAXNotSupportedException
javax.xml.transform.TransformerException
javax.xml.transform.TransformerConfigurationException
public void transform(org.w3c.dom.Document source, org.w3c.dom.Document result, java.lang.String direction) throws org.xml.sax.SAXNotSupportedException, javax.xml.transform.TransformerException, javax.xml.transform.TransformerConfigurationException
configure(Document)
method is first called to
set any necessary parameters, such as style sheet names etc. For one way
transformations, the transform(Document, Document)
method may be used.
source
- The original source XML Document that will be transformed.result
- The XML Document as a result of the transformation.direction
- The direction this transaction is going (in or out)
org.xml.sax.SAXNotSupportedException
javax.xml.transform.TransformerException
javax.xml.transform.TransformerConfigurationException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |