public class RMXSLUtil
extends java.lang.Object
Constructor and Description |
---|
RMXSLUtil() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getXML()
Returns the source XML file in the format that was orignially set in the setXML() method.
|
java.lang.Object |
getXSLParameter(java.lang.String asKey)
Returns previously set XSL Parameter.
|
void |
setXML(org.w3c.dom.Document aoDocument)
This method sets the value of member variable sourceXML equal to the Document object passed as input parameter
|
void |
setXSL(java.lang.String asXSLFile)
Sets the value of the pathToXSL member variable to the value passed in the input parameter.
|
void |
setXSLContent(java.lang.String asXSLContent)
Sets the value of the pathToXSL member variable to the value of the TempFile.
|
void |
setXSLParameter(java.lang.String asKey,
java.lang.Object aoValue)
Creates an entry for key and value pair specified as input parameters in member variable parameters of type Map.
|
org.w3c.dom.Document |
transformToDom()
Writes the results of transformation (as specified in the XSL file) to XML DOM
|
public final java.lang.Object getXML()
public final void setXSL(java.lang.String asXSLFile)
asXSLFile
- A string variable that specifies the path of an XSL file.public final void setXSLContent(java.lang.String asXSLContent) throws RMException
asXSLContent
- A string variable that specifies the content of an XSL file.RMException
public final void setXML(org.w3c.dom.Document aoDocument)
aoDocument
- Source XML in DOM Documentpublic org.w3c.dom.Document transformToDom() throws RMException
RMException
- In case of any error, an RMException will be thrown.public final void setXSLParameter(java.lang.String asKey, java.lang.Object aoValue) throws RMException
asKey
- Specifies the key value for the Map entryaoValue
- Specifies the object value for the above keyRMException
- In case of any error an RMException will be thrown.public final java.lang.Object getXSLParameter(java.lang.String asKey)
asKey
- parameter name© Copyright IBM Corp. 2003, 2013. All Rights Reserved.