org.mule.module.xml.util
Class XMLTestUtils

java.lang.Object
  extended by org.mule.module.xml.util.XMLTestUtils

public class XMLTestUtils
extends java.lang.Object


Constructor Summary
XMLTestUtils()
           
 
Method Summary
static java.util.List<?> getXmlMessageVariants(java.lang.String resource)
           
static org.dom4j.Document toDom4jDocument(java.lang.String resource)
           
static org.xml.sax.InputSource toInputSource(java.lang.String resource)
           
static java.io.InputStream toInputStream(java.lang.String resource)
           
static javax.xml.transform.Source toSource(java.lang.String resource)
           
static java.lang.String toString(java.lang.String resource)
           
static org.w3c.dom.Document toW3cDocument(java.lang.String resource)
           
static javax.xml.stream.XMLStreamReader toXmlStreamReader(java.lang.String resource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLTestUtils

public XMLTestUtils()
Method Detail

getXmlMessageVariants

public static java.util.List<?> getXmlMessageVariants(java.lang.String resource)
                                               throws java.lang.Exception
Throws:
java.lang.Exception

toXmlStreamReader

public static javax.xml.stream.XMLStreamReader toXmlStreamReader(java.lang.String resource)
                                                          throws java.io.IOException,
                                                                 javax.xml.stream.XMLStreamException
Throws:
java.io.IOException
javax.xml.stream.XMLStreamException

toSource

public static javax.xml.transform.Source toSource(java.lang.String resource)
                                           throws java.lang.Exception
Throws:
java.lang.Exception

toW3cDocument

public static org.w3c.dom.Document toW3cDocument(java.lang.String resource)
                                          throws java.io.IOException,
                                                 org.xml.sax.SAXException,
                                                 javax.xml.parsers.ParserConfigurationException
Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException

toInputSource

public static org.xml.sax.InputSource toInputSource(java.lang.String resource)
                                             throws java.io.IOException
Throws:
java.io.IOException

toDom4jDocument

public static org.dom4j.Document toDom4jDocument(java.lang.String resource)
                                          throws java.io.IOException,
                                                 org.dom4j.DocumentException
Throws:
java.io.IOException
org.dom4j.DocumentException

toString

public static java.lang.String toString(java.lang.String resource)
                                 throws java.io.IOException
Throws:
java.io.IOException

toInputStream

public static java.io.InputStream toInputStream(java.lang.String resource)
                                         throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.