|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bankframe.ei.txnhandler.dataformat.xml.XMLDataFormatHelper
The XMLDataFormatHelper class provides the functionality for a user to transform an XML source using a style sheet.
Constructor Summary | |
XMLDataFormatHelper(java.io.File xmlFile)
Constructor taking in a file. |
|
XMLDataFormatHelper(java.lang.String xmlString)
Constructor taking in an a String consisting of XML. |
|
XMLDataFormatHelper(java.util.Vector dataPackets)
Constructor taking in a vector of data packets. |
Method Summary | |
static java.lang.String |
documentToString(org.w3c.dom.Document doc)
This method converts a DOM Document to a String |
void |
format(java.lang.String xslSource,
javax.xml.transform.Result result)
This method applies the XSL to to XML source and outputs the result in the Result object. |
static java.lang.String |
getFileContent(java.lang.String fileName)
This method reads the contents of a file and returns it as a String. |
org.w3c.dom.Document |
getXmlDocument()
Returns the xmlDocument. |
void |
setXmlDocument(org.w3c.dom.Document document)
Sets the xmlDocument. |
static org.w3c.dom.Document |
StringToDocument(java.lang.String string)
This method converts a String to DOM Document |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XMLDataFormatHelper(java.util.Vector dataPackets) throws ProcessingErrorException
dataPackets
- the Vector of DataPackets
ProcessingErrorException
- if processing failspublic XMLDataFormatHelper(java.lang.String xmlString) throws ProcessingErrorException
xmlString
- the XML string
ProcessingErrorException
- if processing failspublic XMLDataFormatHelper(java.io.File xmlFile) throws ProcessingErrorException
xmlFile
- the XML file
ProcessingErrorException
- if processing failsMethod Detail |
public void format(java.lang.String xslSource, javax.xml.transform.Result result) throws ProcessingErrorException
xslSource
- Stringresult
- the Result object where the tansformation is stored
ProcessingErrorException
- if processing failspublic static java.lang.String getFileContent(java.lang.String fileName) throws ProcessingErrorException
fileName
- the file from which to read
ProcessingErrorException
- if processing failspublic org.w3c.dom.Document getXmlDocument()
public void setXmlDocument(org.w3c.dom.Document document)
document
- The document to setpublic static java.lang.String documentToString(org.w3c.dom.Document doc) throws ProcessingErrorException
doc
- the Document object
ProcessingErrorException
- if processing failspublic static org.w3c.dom.Document StringToDocument(java.lang.String string) throws ProcessingErrorException
string
- the XML String
ProcessingErrorException
- thrown if an error occurs during transformation
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |