org.dbunit.dataset.xml
Class FlatDtdProducer
java.lang.Object
org.dbunit.dataset.xml.FlatDtdProducer
- All Implemented Interfaces:
- org.xml.sax.ext.DeclHandler, org.xml.sax.EntityResolver, IDataSetProducer, org.xml.sax.ext.LexicalHandler
- public class FlatDtdProducer
- extends java.lang.Object
- implements IDataSetProducer, org.xml.sax.EntityResolver, org.xml.sax.ext.DeclHandler, org.xml.sax.ext.LexicalHandler
- Since:
- Apr 27, 2003
- Version:
- $Revision: 1.5 $
- Author:
- Manuel Laflamme
Method Summary |
void |
attributeDecl(java.lang.String elementName,
java.lang.String attributeName,
java.lang.String type,
java.lang.String mode,
java.lang.String value)
|
void |
comment(char[] ch,
int start,
int length)
|
void |
elementDecl(java.lang.String name,
java.lang.String model)
|
void |
endCDATA()
|
void |
endDTD()
|
void |
endEntity(java.lang.String name)
|
void |
externalEntityDecl(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
|
void |
internalEntityDecl(java.lang.String name,
java.lang.String value)
|
void |
produce()
Process this dataset source. |
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicId,
java.lang.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(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
|
void |
startEntity(java.lang.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(java.lang.String publicId,
java.lang.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(java.lang.String name,
java.lang.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(java.lang.String elementName,
java.lang.String attributeName,
java.lang.String type,
java.lang.String mode,
java.lang.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(java.lang.String name,
java.lang.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(java.lang.String name,
java.lang.String publicId,
java.lang.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(java.lang.String name,
java.lang.String publicId,
java.lang.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
startEntity
public void startEntity(java.lang.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(java.lang.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-2005 DbUnit.org. All Rights Reserved.