com.sonoma
Class TransformUtility

java.lang.Object
  |
  +--com.sonoma.TransformUtility

public class TransformUtility
extends java.lang.Object

Utitlity that transforms xml files with XSL. Other classes and JSP pages use this object instead of Xerces or XML. dbRDF.java


Constructor Summary
TransformUtility()
          Creates new myxml2
 
Method Summary
 void addParameter(java.lang.String ParamName, java.lang.String ParamValue)
          XSL files take parameters.
 void setContentType(java.lang.String ContentType)
           
 void setXMLDoc(java.lang.String FileName)
          Sets which XML file is to transformed
 void setXSLDoc(java.lang.String FileName)
          Sets which XSL file is to be used perform the transformation
 void Transform(java.io.PrintWriter OutPut)
          Performs the transformation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransformUtility

public TransformUtility()
Creates new myxml2
Method Detail

setXMLDoc

public void setXMLDoc(java.lang.String FileName)
Sets which XML file is to transformed
Parameters:
FileName - full path to the xml file

setXSLDoc

public void setXSLDoc(java.lang.String FileName)
Sets which XSL file is to be used perform the transformation
Parameters:
FileName - full path to the XSL file

addParameter

public void addParameter(java.lang.String ParamName,
                         java.lang.String ParamValue)
XSL files take parameters. addParameter encapsulates this functionality
Parameters:
ParamName - the string value of the XSL parameter
ParamValue - the value to be set

setContentType

public void setContentType(java.lang.String ContentType)

Transform

public void Transform(java.io.PrintWriter OutPut)
               throws javax.xml.transform.TransformerException,
                      javax.xml.transform.TransformerConfigurationException,
                      java.io.FileNotFoundException,
                      java.io.IOException
Performs the transformation.
Parameters:
OutPut - is usually the printwriter from the response object on a JSP page