|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dbunit.dataset.xml.FlatXmlDataSetBuilder
public final class FlatXmlDataSetBuilder
Builder for the creation of FlatXmlDataSet
instances.
FlatXmlDataSet
Constructor Summary | |
---|---|
FlatXmlDataSetBuilder()
Default constructor |
Method Summary | |
---|---|
FlatXmlDataSet |
build(java.io.File xmlInputFile)
Sets the flat XML input source from which the FlatXmlDataSet is to be built |
FlatXmlDataSet |
build(org.xml.sax.InputSource inputSource)
Sets the flat XML input source from which the FlatXmlDataSet is to be built |
FlatXmlDataSet |
build(java.io.InputStream xmlInputStream)
Sets the flat XML input source from which the FlatXmlDataSet is to be built |
FlatXmlDataSet |
build(java.io.Reader xmlReader)
Sets the flat XML input source from which the FlatXmlDataSet is to be built |
FlatXmlDataSet |
build(java.net.URL xmlInputUrl)
Sets the flat XML input source from which the FlatXmlDataSet is to be built |
protected FlatXmlProducer |
createProducer(org.xml.sax.InputSource inputSource)
|
boolean |
isCaseSensitiveTableNames()
|
boolean |
isColumnSensing()
|
boolean |
isDtdMetadata()
|
FlatXmlDataSetBuilder |
setCaseSensitiveTableNames(boolean caseSensitiveTableNames)
Whether or not the created dataset should use case sensitive table names |
FlatXmlDataSetBuilder |
setColumnSensing(boolean columnSensing)
Since DBUnit 2.3.0 there is a functionality called "column sensing" which basically reads in the whole XML into a buffer and dynamically adds new columns as they appear. |
FlatXmlDataSetBuilder |
setDtdMetadata(boolean dtdMetadata)
Whether or not DTD metadata is available to parse via a DTD handler. |
FlatXmlDataSetBuilder |
setMetaDataSet(IDataSet metaDataSet)
Set the metadata information (column info etc.) to be used. |
FlatXmlDataSetBuilder |
setMetaDataSetFromDtd(java.io.InputStream dtdStream)
Set the metadata information (column info etc.) to be used from the given DTD input. |
FlatXmlDataSetBuilder |
setMetaDataSetFromDtd(java.io.Reader dtdReader)
Set the metadata information (column info etc.) to be used from the given DTD input. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FlatXmlDataSetBuilder()
Method Detail |
---|
public FlatXmlDataSet build(org.xml.sax.InputSource inputSource) throws DataSetException
FlatXmlDataSet
is to be built
inputSource
- The flat XML input as InputSource
FlatXmlDataSet
DataSetException
public FlatXmlDataSet build(java.io.File xmlInputFile) throws java.net.MalformedURLException, DataSetException
FlatXmlDataSet
is to be built
xmlInputFile
- The flat XML input as File
FlatXmlDataSet
DataSetException
java.net.MalformedURLException
public FlatXmlDataSet build(java.net.URL xmlInputUrl) throws DataSetException
FlatXmlDataSet
is to be built
xmlInputUrl
- The flat XML input as URL
FlatXmlDataSet
DataSetException
public FlatXmlDataSet build(java.io.Reader xmlReader) throws DataSetException
FlatXmlDataSet
is to be built
xmlReader
- The flat XML input as Reader
FlatXmlDataSet
DataSetException
public FlatXmlDataSet build(java.io.InputStream xmlInputStream) throws DataSetException
FlatXmlDataSet
is to be built
xmlInputStream
- The flat XML input as InputStream
FlatXmlDataSet
DataSetException
public FlatXmlDataSetBuilder setMetaDataSet(IDataSet metaDataSet)
metaDataSet
-
public FlatXmlDataSetBuilder setMetaDataSetFromDtd(java.io.Reader dtdReader) throws DataSetException, java.io.IOException
dtdReader
- A reader that provides the DTD content
DataSetException
java.io.IOException
public FlatXmlDataSetBuilder setMetaDataSetFromDtd(java.io.InputStream dtdStream) throws DataSetException, java.io.IOException
dtdStream
-
DataSetException
java.io.IOException
public boolean isDtdMetadata()
public FlatXmlDataSetBuilder setDtdMetadata(boolean dtdMetadata)
dtdMetadata
-
public boolean isColumnSensing()
public FlatXmlDataSetBuilder setColumnSensing(boolean columnSensing)
columnSensing
-
public boolean isCaseSensitiveTableNames()
public FlatXmlDataSetBuilder setCaseSensitiveTableNames(boolean caseSensitiveTableNames)
caseSensitiveTableNames
-
protected FlatXmlProducer createProducer(org.xml.sax.InputSource inputSource)
inputSource
- The XML input to be built
FlatXmlDataSet
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 |