Class TestCase.Factory
- java.lang.Object
-
- org.apache.xmlbeans.impl.xb.ltgfmt.TestCase.Factory
-
- Enclosing interface:
- TestCase
public static final class TestCase.Factory extends java.lang.Object
A factory class with static methods for creating instances of this type.
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static TestCase
newInstance()
static TestCase
newInstance(XmlOptions options)
static XMLInputStream
newValidatingXMLInputStream(XMLInputStream xis)
Deprecated.static XMLInputStream
newValidatingXMLInputStream(XMLInputStream xis, XmlOptions options)
Deprecated.static TestCase
parse(java.io.File file)
static TestCase
parse(java.io.File file, XmlOptions options)
static TestCase
parse(java.io.InputStream is)
static TestCase
parse(java.io.InputStream is, XmlOptions options)
static TestCase
parse(java.io.Reader r)
static TestCase
parse(java.io.Reader r, XmlOptions options)
static TestCase
parse(java.lang.String xmlAsString)
static TestCase
parse(java.lang.String xmlAsString, XmlOptions options)
static TestCase
parse(java.net.URL u)
static TestCase
parse(java.net.URL u, XmlOptions options)
static TestCase
parse(javax.xml.stream.XMLStreamReader sr)
static TestCase
parse(javax.xml.stream.XMLStreamReader sr, XmlOptions options)
static TestCase
parse(XMLInputStream xis)
Deprecated.static TestCase
parse(XMLInputStream xis, XmlOptions options)
Deprecated.static TestCase
parse(org.w3c.dom.Node node)
static TestCase
parse(org.w3c.dom.Node node, XmlOptions options)
-
-
-
Method Detail
-
newInstance
public static TestCase newInstance()
-
newInstance
public static TestCase newInstance(XmlOptions options)
-
parse
public static TestCase parse(java.lang.String xmlAsString) throws XmlException
- Parameters:
xmlAsString
- the string value to parse- Throws:
XmlException
-
parse
public static TestCase parse(java.lang.String xmlAsString, XmlOptions options) throws XmlException
- Throws:
XmlException
-
parse
public static TestCase parse(java.io.File file) throws XmlException, java.io.IOException
- Parameters:
file
- the file from which to load an xml document- Throws:
XmlException
java.io.IOException
-
parse
public static TestCase parse(java.io.File file, XmlOptions options) throws XmlException, java.io.IOException
- Throws:
XmlException
java.io.IOException
-
parse
public static TestCase parse(java.net.URL u) throws XmlException, java.io.IOException
- Throws:
XmlException
java.io.IOException
-
parse
public static TestCase parse(java.net.URL u, XmlOptions options) throws XmlException, java.io.IOException
- Throws:
XmlException
java.io.IOException
-
parse
public static TestCase parse(java.io.InputStream is) throws XmlException, java.io.IOException
- Throws:
XmlException
java.io.IOException
-
parse
public static TestCase parse(java.io.InputStream is, XmlOptions options) throws XmlException, java.io.IOException
- Throws:
XmlException
java.io.IOException
-
parse
public static TestCase parse(java.io.Reader r) throws XmlException, java.io.IOException
- Throws:
XmlException
java.io.IOException
-
parse
public static TestCase parse(java.io.Reader r, XmlOptions options) throws XmlException, java.io.IOException
- Throws:
XmlException
java.io.IOException
-
parse
public static TestCase parse(javax.xml.stream.XMLStreamReader sr) throws XmlException
- Throws:
XmlException
-
parse
public static TestCase parse(javax.xml.stream.XMLStreamReader sr, XmlOptions options) throws XmlException
- Throws:
XmlException
-
parse
public static TestCase parse(org.w3c.dom.Node node) throws XmlException
- Throws:
XmlException
-
parse
public static TestCase parse(org.w3c.dom.Node node, XmlOptions options) throws XmlException
- Throws:
XmlException
-
parse
public static TestCase parse(XMLInputStream xis) throws XmlException, XMLStreamException
Deprecated.- Throws:
XmlException
XMLStreamException
-
parse
public static TestCase parse(XMLInputStream xis, XmlOptions options) throws XmlException, XMLStreamException
Deprecated.- Throws:
XmlException
XMLStreamException
-
newValidatingXMLInputStream
public static XMLInputStream newValidatingXMLInputStream(XMLInputStream xis) throws XmlException, XMLStreamException
Deprecated.- Throws:
XmlException
XMLStreamException
-
newValidatingXMLInputStream
public static XMLInputStream newValidatingXMLInputStream(XMLInputStream xis, XmlOptions options) throws XmlException, XMLStreamException
Deprecated.- Throws:
XmlException
XMLStreamException
-
-