com.mule.connectors.testdata.parsers
Class ConnectorSchemaParser

java.lang.Object
  extended by com.mule.connectors.testdata.parsers.ConnectorSchemaParser

public class ConnectorSchemaParser
extends Object


Constructor Summary
ConnectorSchemaParser(File inputFile, String outputFile)
           
 
Method Summary
 void exportToFile()
          Exports the output document to an xml file
 Element getConfigElement()
           
 String getConnectorName()
           
 Element getInboundEndpointElement()
           
 Element getMessageProcessors()
           
 Element getOutboundEndpointElement()
           
 Element getProcessorsElement()
           
 void parseComplexTypeNodesDefinitions()
          Parses all the types definitions found in the schema file, creating a lookup table for the elements by name.
 void parseRootElementNodesDefinitions()
          Parses all the top level elements found in the schema file, from the root.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectorSchemaParser

public ConnectorSchemaParser(File inputFile,
                             String outputFile)
                      throws IOException,
                             SAXException,
                             ParserConfigurationException
Throws:
IOException
SAXException
ParserConfigurationException
Method Detail

getMessageProcessors

public Element getMessageProcessors()

parseComplexTypeNodesDefinitions

public void parseComplexTypeNodesDefinitions()
                                      throws XPathExpressionException
Parses all the types definitions found in the schema file, creating a lookup table for the elements by name.

Throws:
XPathExpressionException

parseRootElementNodesDefinitions

public void parseRootElementNodesDefinitions()
                                      throws XPathExpressionException
Parses all the top level elements found in the schema file, from the root. Retrieved Elements are appendend in four categories, creating the output document structure.

Throws:
XPathExpressionException

exportToFile

public void exportToFile()
                  throws TransformerException
Exports the output document to an xml file

Throws:
TransformerException

getConnectorName

public String getConnectorName()

getConfigElement

public Element getConfigElement()

getProcessorsElement

public Element getProcessorsElement()

getInboundEndpointElement

public Element getInboundEndpointElement()

getOutboundEndpointElement

public Element getOutboundEndpointElement()


Copyright © 2014. All rights reserved.