org.dbunit.dataset.xml
Class FlatDtdProducer
java.lang.Object
org.dbunit.dataset.xml.FlatDtdProducer
- All Implemented Interfaces:
- IDataSetProducer, org.xml.sax.EntityResolver, org.xml.sax.ext.DeclHandler, org.xml.sax.ext.LexicalHandler
public class FlatDtdProducer
- extends Object
- implements IDataSetProducer, org.xml.sax.EntityResolver, org.xml.sax.ext.DeclHandler, org.xml.sax.ext.LexicalHandler
- Since:
- Apr 27, 2003
- Version:
- $Revision: 629 $
- Author:
- Manuel Laflamme
Method Summary |
void |
attributeDecl(String elementName,
String attributeName,
String type,
String mode,
String value)
|
protected String |
cleanupTableName(String tableName)
|
void |
comment(char[] ch,
int start,
int length)
|
void |
elementDecl(String name,
String model)
|
void |
endCDATA()
|
void |
endDTD()
|
void |
endEntity(String name)
|
void |
externalEntityDecl(String name,
String publicId,
String systemId)
|
void |
internalEntityDecl(String name,
String value)
|
void |
produce()
Process this dataset source. |
org.xml.sax.InputSource |
resolveEntity(String publicId,
String systemId)
|
void |
setConsumer(IDataSetConsumer consumer)
|
static void |
setDeclHandler(org.xml.sax.XMLReader xmlReader,
org.xml.sax.ext.DeclHandler handler)
|
static void |
setLexicalHandler(org.xml.sax.XMLReader xmlReader,
org.xml.sax.ext.LexicalHandler handler)
|
void |
startCDATA()
|
void |
startDTD(String name,
String publicId,
String systemId)
|
void |
startEntity(String name)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FlatDtdProducer
public FlatDtdProducer()
FlatDtdProducer
public FlatDtdProducer(org.xml.sax.InputSource inputSource)
setDeclHandler
public static void setDeclHandler(org.xml.sax.XMLReader xmlReader,
org.xml.sax.ext.DeclHandler handler)
throws org.xml.sax.SAXNotRecognizedException,
org.xml.sax.SAXNotSupportedException
- Throws:
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
setLexicalHandler
public static void setLexicalHandler(org.xml.sax.XMLReader xmlReader,
org.xml.sax.ext.LexicalHandler handler)
throws org.xml.sax.SAXNotRecognizedException,
org.xml.sax.SAXNotSupportedException
- Throws:
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
setConsumer
public void setConsumer(IDataSetConsumer consumer)
throws DataSetException
- Specified by:
setConsumer
in interface IDataSetProducer
- Throws:
DataSetException
produce
public void produce()
throws DataSetException
- Description copied from interface:
IDataSetProducer
- Process this dataset source. During the processing, the IDataSetProducer
will provide information about the dataset through the specified event
listener.
This method is synchronous: it will not return until processing has ended.
If a client application wants to terminate parsing early, it should
throw an exception from the listener.
- Specified by:
produce
in interface IDataSetProducer
- Throws:
DataSetException
resolveEntity
public org.xml.sax.InputSource resolveEntity(String publicId,
String systemId)
throws org.xml.sax.SAXException
- Specified by:
resolveEntity
in interface org.xml.sax.EntityResolver
- Throws:
org.xml.sax.SAXException
elementDecl
public void elementDecl(String name,
String model)
throws org.xml.sax.SAXException
- Specified by:
elementDecl
in interface org.xml.sax.ext.DeclHandler
- Throws:
org.xml.sax.SAXException
attributeDecl
public void attributeDecl(String elementName,
String attributeName,
String type,
String mode,
String value)
throws org.xml.sax.SAXException
- Specified by:
attributeDecl
in interface org.xml.sax.ext.DeclHandler
- Throws:
org.xml.sax.SAXException
internalEntityDecl
public void internalEntityDecl(String name,
String value)
throws org.xml.sax.SAXException
- Specified by:
internalEntityDecl
in interface org.xml.sax.ext.DeclHandler
- Throws:
org.xml.sax.SAXException
externalEntityDecl
public void externalEntityDecl(String name,
String publicId,
String systemId)
throws org.xml.sax.SAXException
- Specified by:
externalEntityDecl
in interface org.xml.sax.ext.DeclHandler
- Throws:
org.xml.sax.SAXException
startDTD
public void startDTD(String name,
String publicId,
String systemId)
throws org.xml.sax.SAXException
- Specified by:
startDTD
in interface org.xml.sax.ext.LexicalHandler
- Throws:
org.xml.sax.SAXException
endDTD
public void endDTD()
throws org.xml.sax.SAXException
- Specified by:
endDTD
in interface org.xml.sax.ext.LexicalHandler
- Throws:
org.xml.sax.SAXException
cleanupTableName
protected String cleanupTableName(String tableName)
startEntity
public void startEntity(String name)
throws org.xml.sax.SAXException
- Specified by:
startEntity
in interface org.xml.sax.ext.LexicalHandler
- Throws:
org.xml.sax.SAXException
endEntity
public void endEntity(String name)
throws org.xml.sax.SAXException
- Specified by:
endEntity
in interface org.xml.sax.ext.LexicalHandler
- Throws:
org.xml.sax.SAXException
startCDATA
public void startCDATA()
throws org.xml.sax.SAXException
- Specified by:
startCDATA
in interface org.xml.sax.ext.LexicalHandler
- Throws:
org.xml.sax.SAXException
endCDATA
public void endCDATA()
throws org.xml.sax.SAXException
- Specified by:
endCDATA
in interface org.xml.sax.ext.LexicalHandler
- Throws:
org.xml.sax.SAXException
comment
public void comment(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
- Specified by:
comment
in interface org.xml.sax.ext.LexicalHandler
- Throws:
org.xml.sax.SAXException
Copyright © 2002-2011. All Rights Reserved.