org.dbunit.ant
Class AbstractStep
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.dbunit.ant.AbstractStep
- All Implemented Interfaces:
- DbUnitTaskStep
- Direct Known Subclasses:
- Compare, Export, Operation
public abstract class AbstractStep
- extends org.apache.tools.ant.ProjectComponent
- implements DbUnitTaskStep
- Since:
- 2.1 (Apr 3, 2004)
- Version:
- $Revision: 1084 $ $Date: 2009-10-25 11:35:42 +0100 (dom, 25 ott 2009) $
- Author:
- Manuel Laflamme, Last changed by: $Author: gommma $
| Fields inherited from class org.apache.tools.ant.ProjectComponent |
project |
| Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject, log, log, setProject |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FORMAT_FLAT
public static final java.lang.String FORMAT_FLAT
- See Also:
- Constant Field Values
FORMAT_XML
public static final java.lang.String FORMAT_XML
- See Also:
- Constant Field Values
FORMAT_DTD
public static final java.lang.String FORMAT_DTD
- See Also:
- Constant Field Values
FORMAT_CSV
public static final java.lang.String FORMAT_CSV
- See Also:
- Constant Field Values
FORMAT_XLS
public static final java.lang.String FORMAT_XLS
- See Also:
- Constant Field Values
AbstractStep
public AbstractStep()
getDatabaseDataSet
protected IDataSet getDatabaseDataSet(IDatabaseConnection connection,
java.util.List tables,
boolean forwardonly)
throws DatabaseUnitException
- Throws:
DatabaseUnitException
getSrcDataSet
protected IDataSet getSrcDataSet(java.io.File src,
java.lang.String format,
boolean forwardonly)
throws DatabaseUnitException
- Throws:
DatabaseUnitException
isDataFormat
public boolean isDataFormat(java.lang.String format)
- Checks if the given format is a format which contains tabular data.
- Parameters:
format - The format to check
- Returns:
true if the given format is a data format. A data
format is a format which holds tabular data that can be loaded via dbunit.
An example for a data format is "xml" or "flat". A non-data format is "dtd" which
holds only metadata information.- Since:
- 2.4
checkDataFormat
protected void checkDataFormat(java.lang.String format)
- Checks if the given data format is a valid one according to
the method
isDataFormat(String). If it is not an
IllegalArgumentException is thrown.
- Parameters:
format - The format to check
- Throws:
java.lang.IllegalArgumentException - If the given format is not
a valid data format- Since:
- 2.4
getInputSource
public static org.xml.sax.InputSource getInputSource(java.io.File file)
throws java.net.MalformedURLException
- Creates and returns an
InputSource
- Parameters:
file - The file for which an InputSource should be created
- Returns:
- The input source for the given file
- Throws:
java.net.MalformedURLException
isOrdered
public boolean isOrdered()
setOrdered
public void setOrdered(boolean ordered)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2002-2010. All Rights Reserved.