com.mule.connectors.testdata.utils
Class DocumentHandler

java.lang.Object
  extended by com.mule.connectors.testdata.utils.DocumentHandler

public class DocumentHandler
extends Object


Constructor Summary
DocumentHandler()
           
DocumentHandler(File sourceFile)
           
DocumentHandler(String sourceFile)
           
 
Method Summary
 Element createElement(String name)
           
 Element createRootElement(String name)
           
 void exportToFile(String filename)
           
 Document getDoc()
           
 Element getDocumentElement()
           
 Node importNode(Node node, boolean deep)
           
static void setOutputPath(String path)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentHandler

public DocumentHandler()
                throws ParserConfigurationException
Throws:
ParserConfigurationException

DocumentHandler

public DocumentHandler(String sourceFile)
                throws IOException,
                       SAXException,
                       ParserConfigurationException
Throws:
IOException
SAXException
ParserConfigurationException

DocumentHandler

public DocumentHandler(File sourceFile)
                throws IOException,
                       SAXException,
                       ParserConfigurationException
Throws:
IOException
SAXException
ParserConfigurationException
Method Detail

setOutputPath

public static void setOutputPath(String path)

importNode

public Node importNode(Node node,
                       boolean deep)

createRootElement

public Element createRootElement(String name)

createElement

public Element createElement(String name)

exportToFile

public void exportToFile(String filename)
                  throws TransformerException
Throws:
TransformerException

getDoc

public Document getDoc()

getDocumentElement

public Element getDocumentElement()


Copyright © 2014. All rights reserved.