|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mockrunner.mock.jdbc.MockSQLXML
public class MockSQLXML
Mock implementation of MockSQLXML
.
Uses JDOM for XML handling.
Constructor Summary | |
---|---|
MockSQLXML()
|
|
MockSQLXML(org.w3c.dom.Document documentContent)
|
|
MockSQLXML(java.io.InputStream inputStreamContent)
|
|
MockSQLXML(java.io.Reader readerContent)
|
|
MockSQLXML(java.lang.String stringContent)
|
Method Summary | |
---|---|
java.lang.Object |
clone()
|
protected javax.xml.parsers.DocumentBuilder |
createDocumentBuilder()
|
protected org.jdom.input.DOMBuilder |
createJDOMDOMBuilder()
|
protected org.jdom.output.DOMOutputter |
createJDOMDOMOutputter()
|
protected org.jdom.input.SAXBuilder |
createJDOMSAXBuilder()
|
protected org.jdom.output.XMLOutputter |
createJDOMXMLCompareOutputter()
|
protected org.jdom.output.XMLOutputter |
createJDOMXMLPrintOutputter()
|
protected javax.xml.parsers.SAXParser |
createSAXParser()
|
protected javax.xml.stream.XMLInputFactory |
createXMLInputFactory()
|
protected javax.xml.stream.XMLOutputFactory |
createXMLOutputFactory()
|
boolean |
equals(java.lang.Object otherObject)
|
void |
free()
|
java.io.InputStream |
getBinaryStream()
|
java.io.Reader |
getCharacterStream()
|
java.io.InputStream |
getContentAsInputStream()
Returns the XML content as an InputStream without affecting the
state of the object. |
java.io.Reader |
getContentAsReader()
Returns the XML content as a Reader without affecting the
state of the object. |
java.lang.String |
getContentAsString()
Returns the XML content as a string without affecting the state of the object. |
org.w3c.dom.Document |
getContentAsW3CDocument()
Returns the XML content as a W3C Document without affecting
the state of the object. |
javax.xml.transform.Source |
getSource(java.lang.Class sourceClass)
|
java.lang.String |
getString()
|
int |
hashCode()
|
boolean |
isReadable()
Returns if this object is readable. |
boolean |
isWriteable()
Returns if this object is writeable. |
java.io.OutputStream |
setBinaryStream()
|
java.io.Writer |
setCharacterStream()
|
javax.xml.transform.Result |
setResult(java.lang.Class resultClass)
|
void |
setString(java.lang.String value)
|
java.lang.String |
toString()
|
boolean |
wasFreeCalled()
Returns if free() has been called. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MockSQLXML()
public MockSQLXML(java.lang.String stringContent)
public MockSQLXML(java.io.Reader readerContent)
public MockSQLXML(java.io.InputStream inputStreamContent)
public MockSQLXML(org.w3c.dom.Document documentContent)
Method Detail |
---|
protected javax.xml.parsers.DocumentBuilder createDocumentBuilder()
protected javax.xml.parsers.SAXParser createSAXParser()
protected javax.xml.stream.XMLOutputFactory createXMLOutputFactory()
protected javax.xml.stream.XMLInputFactory createXMLInputFactory()
protected org.jdom.input.SAXBuilder createJDOMSAXBuilder()
protected org.jdom.input.DOMBuilder createJDOMDOMBuilder()
protected org.jdom.output.XMLOutputter createJDOMXMLPrintOutputter()
protected org.jdom.output.XMLOutputter createJDOMXMLCompareOutputter()
protected org.jdom.output.DOMOutputter createJDOMDOMOutputter()
public java.lang.String getContentAsString()
get
methods of java.sql.SQLXML
.
public java.io.InputStream getContentAsInputStream() throws java.sql.SQLException
InputStream
without affecting the
state of the object. This method can be called multiple times unlike
the get
methods of java.sql.SQLXML
.
InputStream
java.sql.SQLException
public java.io.Reader getContentAsReader() throws java.sql.SQLException
Reader
without affecting the
state of the object. This method can be called multiple times unlike
the get
methods of java.sql.SQLXML
.
Reader
java.sql.SQLException
public org.w3c.dom.Document getContentAsW3CDocument()
Document
without affecting
the state of the object. This method can be called multiple times unlike
the get
methods of java.sql.SQLXML
.
Document
public java.io.InputStream getBinaryStream() throws java.sql.SQLException
getBinaryStream
in interface java.sql.SQLXML
java.sql.SQLException
public java.io.Reader getCharacterStream() throws java.sql.SQLException
getCharacterStream
in interface java.sql.SQLXML
java.sql.SQLException
public javax.xml.transform.Source getSource(java.lang.Class sourceClass) throws java.sql.SQLException
getSource
in interface java.sql.SQLXML
java.sql.SQLException
public java.lang.String getString() throws java.sql.SQLException
getString
in interface java.sql.SQLXML
java.sql.SQLException
public java.io.OutputStream setBinaryStream() throws java.sql.SQLException
setBinaryStream
in interface java.sql.SQLXML
java.sql.SQLException
public java.io.Writer setCharacterStream() throws java.sql.SQLException
setCharacterStream
in interface java.sql.SQLXML
java.sql.SQLException
public javax.xml.transform.Result setResult(java.lang.Class resultClass) throws java.sql.SQLException
setResult
in interface java.sql.SQLXML
java.sql.SQLException
public void setString(java.lang.String value) throws java.sql.SQLException
setString
in interface java.sql.SQLXML
java.sql.SQLException
public void free() throws java.sql.SQLException
free
in interface java.sql.SQLXML
java.sql.SQLException
public boolean wasFreeCalled()
free()
has been called.
true
if free()
has been called,
false
otherwisepublic boolean isReadable()
true
this object is readable,
false
otherwisepublic boolean isWriteable()
true
this object is writeable,
false
otherwisepublic boolean equals(java.lang.Object otherObject)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |