|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.unitils.dbunit.util.MultiSchemaXmlDataSetReader.DataSetContentHandler
protected static class MultiSchemaXmlDataSetReader.DataSetContentHandler
The xml content handler that is going to create the data sets.
| Field Summary | |
|---|---|
protected java.util.Map<java.lang.String,DbUnitDataSet> |
dbUnitDataSetsPerSchemaName
|
protected java.lang.String |
defaultSchemaName
|
| Constructor Summary | |
|---|---|
MultiSchemaXmlDataSetReader.DataSetContentHandler(java.lang.String defaultSchemaName)
Creates a data set SAX content handler |
|
| Method Summary | |
|---|---|
protected void |
addRow(org.xml.sax.Attributes attributes,
DbUnitTable table)
Gets column names and row values from the given attribute and adds a new row to the given table. |
void |
error(org.xml.sax.SAXParseException e)
Overridden to rethrow exception. |
MultiSchemaDataSet |
getMultiSchemaDataSet()
Gets the result data set. |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
Processes an xml element. |
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
|---|
characters, endDocument, endElement, endPrefixMapping, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String defaultSchemaName
protected java.util.Map<java.lang.String,DbUnitDataSet> dbUnitDataSetsPerSchemaName
| Constructor Detail |
|---|
public MultiSchemaXmlDataSetReader.DataSetContentHandler(java.lang.String defaultSchemaName)
defaultSchemaName - The schema name to use when none is specified, not null| Method Detail |
|---|
public MultiSchemaDataSet getMultiSchemaDataSet()
public void startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
throws org.xml.sax.SAXException
startElement in interface org.xml.sax.ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandleruri - the xml namespace uri (= schema name)localName - the local xml nameqName - the element name (should be table name for table rows)attributes - the attributes (should be table columns for table rows)
org.xml.sax.SAXException
protected void addRow(org.xml.sax.Attributes attributes,
DbUnitTable table)
table - The table to add the row to, not nullattributes - the attributes, not null
public void error(org.xml.sax.SAXParseException e)
throws org.xml.sax.SAXException
error in interface org.xml.sax.ErrorHandlererror in class org.xml.sax.helpers.DefaultHandlere - The exception
org.xml.sax.SAXException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||