|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.dbunit.dataset.xml.FlatDtdProducer
public class FlatDtdProducer
Produces a DataSet from a flat DTD. Only external DTDs are supported and for the root element only the following declarations are supported.
Field Summary | |
---|---|
static String |
ANY
Constant for the value "ANY" |
static String |
IMPLIED
Constant for the value "#IMPLIED" |
static String |
REQUIRED
Constant for the value "#REQUIRED" |
Constructor Summary | |
---|---|
FlatDtdProducer()
|
|
FlatDtdProducer(InputSource inputSource)
|
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. |
InputSource |
resolveEntity(String publicId,
String systemId)
|
void |
setConsumer(IDataSetConsumer consumer)
|
static void |
setDeclHandler(XMLReader xmlReader,
DeclHandler handler)
|
static void |
setLexicalHandler(XMLReader xmlReader,
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 |
Field Detail |
---|
public static final String REQUIRED
public static final String IMPLIED
public static final String ANY
Constructor Detail |
---|
public FlatDtdProducer()
public FlatDtdProducer(InputSource inputSource)
Method Detail |
---|
public static void setDeclHandler(XMLReader xmlReader, DeclHandler handler) throws SAXNotRecognizedException, SAXNotSupportedException
SAXNotRecognizedException
SAXNotSupportedException
public static void setLexicalHandler(XMLReader xmlReader, LexicalHandler handler) throws SAXNotRecognizedException, SAXNotSupportedException
SAXNotRecognizedException
SAXNotSupportedException
public void setConsumer(IDataSetConsumer consumer) throws DataSetException
setConsumer
in interface IDataSetProducer
DataSetException
public void produce() throws DataSetException
IDataSetProducer
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.
produce
in interface IDataSetProducer
DataSetException
public InputSource resolveEntity(String publicId, String systemId) throws SAXException
resolveEntity
in interface EntityResolver
SAXException
public void elementDecl(String name, String model) throws SAXException
elementDecl
in interface DeclHandler
SAXException
public void attributeDecl(String elementName, String attributeName, String type, String mode, String value) throws SAXException
attributeDecl
in interface DeclHandler
SAXException
public void internalEntityDecl(String name, String value) throws SAXException
internalEntityDecl
in interface DeclHandler
SAXException
public void externalEntityDecl(String name, String publicId, String systemId) throws SAXException
externalEntityDecl
in interface DeclHandler
SAXException
public void startDTD(String name, String publicId, String systemId) throws SAXException
startDTD
in interface LexicalHandler
SAXException
public void endDTD() throws SAXException
endDTD
in interface LexicalHandler
SAXException
protected String cleanupTableName(String tableName)
public void startEntity(String name) throws SAXException
startEntity
in interface LexicalHandler
SAXException
public void endEntity(String name) throws SAXException
endEntity
in interface LexicalHandler
SAXException
public void startCDATA() throws SAXException
startCDATA
in interface LexicalHandler
SAXException
public void endCDATA() throws SAXException
endCDATA
in interface LexicalHandler
SAXException
public void comment(char[] ch, int start, int length) throws SAXException
comment
in interface LexicalHandler
SAXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |