de.fesenmeyer.dbnormalizer.core.configuration.xml
Class DOMTransformer

java.lang.Object
  extended by de.fesenmeyer.dbnormalizer.core.configuration.xml.DOMTransformer

public class DOMTransformer
extends Object

Class which performs a XSL-Transformation on a DOM-Document.

Author:
DF

Field Summary
private  Document inputDoc
          The Input-DOM-Document.
private  String xsltFile
          The XSLT-File.
 
Constructor Summary
DOMTransformer(Document doc, String xsltFile)
          Class constructor specifying the DOM-Document which should be used as input and the XSLT-file to be used for the transformation.
 
Method Summary
 Document transform()
          Performs the XSL-Transformation and returns the Output-DOM-Document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xsltFile

private String xsltFile
The XSLT-File.


inputDoc

private Document inputDoc
The Input-DOM-Document.

Constructor Detail

DOMTransformer

public DOMTransformer(Document doc,
                      String xsltFile)
Class constructor specifying the DOM-Document which should be used as input and the XSLT-file to be used for the transformation.

Parameters:
doc - the Input-DOM-Document
xsltFile - the XSLT-file
Method Detail

transform

public Document transform()
                   throws TransformerException
Performs the XSL-Transformation and returns the Output-DOM-Document.

Returns:
the Output-DOM-Document
Throws:
TransformerException - if a XML-Transformer specific exception occurs (e.g. if no TransformerFactory is available).