| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.optimizationservices.oscommon.util.XSLTUtil
public class XSLTUtil
The XSLTUtil class contains methods for performing
 common basic XSLT-related operations used by various classes in the
 Optimization Services (OS) framework. 
| Constructor Summary | |
|---|---|
| XSLTUtil() | |
| Method Summary | |
|---|---|
| static javax.xml.transform.Transformer | createTransformerFromFile(java.lang.String xsltFileName)Create an xslt transformer from an xslt transformation file. | 
| static javax.xml.transform.Transformer | createTransformerFromString(java.lang.String xsltString)Create an xslt transformer from an xslt string. | 
| static void | main(java.lang.String[] args)main for test purposes. | 
| static boolean | transformFile(java.lang.String inputFileName,
              java.lang.String xsltFileName,
              java.lang.String outputFilename)Transform an xml file input to an xml file output according to an xslt transformation file. | 
| static java.lang.String | transformString(java.lang.String inputString,
                java.lang.String xsltString)Transform an xml string input and return an xml string output according to an xslt transformation string. | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public XSLTUtil()
| Method Detail | 
|---|
public static javax.xml.transform.Transformer createTransformerFromFile(java.lang.String xsltFileName)
xsltFileName - holds the xslt file that does the transformation from xml input to xml output.
public static javax.xml.transform.Transformer createTransformerFromString(java.lang.String xsltString)
xsltString - holds the xslt string that does the transformation from xml input to xml output.
public static boolean transformFile(java.lang.String inputFileName,
                                    java.lang.String xsltFileName,
                                    java.lang.String outputFilename)
inputFileName - holds the name of the input xml file to be transformed.xsltFileName - holds the xslt file that does the transformation from xml input to xml output.outputFilename - holds the name of the output xml file to save the transformed result.
public static java.lang.String transformString(java.lang.String inputString,
                                               java.lang.String xsltString)
inputFileName - holds the name of the input xml file to be transformed.xsltFileName - holds the xslt file that does the transformation from xml input to xml output.
public static void main(java.lang.String[] args)
argv - command line arguments.| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||