public class XMLUnitReader
extends java.lang.Object
implements org.xml.sax.XMLReader
XMLUnitEvents as its source, rather than using
a conventional SAX InputSource.| Constructor and Description |
|---|
XMLUnitReader(org.xml.sax.InputSource fixsrc,
java.util.ArrayList<XMLUnitEvent> events)
Constructs a new XML unit reader, using the given sequence of events
as its source, and using the given dummy input source to validate
the reader's client on subsequent
parse(InputSource) calls. |
| Modifier and Type | Method and Description |
|---|---|
org.xml.sax.ContentHandler |
getContentHandler()
Returns this parser's content handler.
|
org.xml.sax.DTDHandler |
getDTDHandler()
Returns this parser's DTD handler.
|
org.xml.sax.EntityResolver |
getEntityResolver()
Returns this parser's entity resolver.
|
org.xml.sax.ErrorHandler |
getErrorHandler()
Returns this parser's error handler.
|
boolean |
getFeature(java.lang.String name)
Returns
false indicating that this parser does not implement
the given feature. |
java.lang.Object |
getProperty(java.lang.String name)
Returns a
null value for the given property. |
void |
parse(org.xml.sax.InputSource input)
Generates the sequence of parse events for this parser's source,
providing the given dummy source argument matches that supplied
when this parser was constructed.
|
void |
parse(java.lang.String systemid)
Throws a SAX exception, since this non-standard parser does not
process a conventional SAX source indentified by System ID.
|
void |
setContentHandler(org.xml.sax.ContentHandler chdlr)
Sets this parser's content handler to that given.
|
void |
setDTDHandler(org.xml.sax.DTDHandler dhdlr)
Null DTD handler setter for this parser.
|
void |
setEntityResolver(org.xml.sax.EntityResolver erslvr)
Null entity resolver setter for this parser.
|
void |
setErrorHandler(org.xml.sax.ErrorHandler ehdlr)
Sets this parser's error handler to that given.
|
void |
setFeature(java.lang.String name,
boolean feature)
Null feature setter for this parser.
|
void |
setProperty(java.lang.String name,
java.lang.Object property)
Null property setter for this parser.
|
public XMLUnitReader(org.xml.sax.InputSource fixsrc,
java.util.ArrayList<XMLUnitEvent> events)
parse(InputSource) calls.public void parse(org.xml.sax.InputSource input)
throws org.xml.sax.SAXException
parse in interface org.xml.sax.XMLReaderorg.xml.sax.SAXExceptionpublic void parse(java.lang.String systemid)
throws org.xml.sax.SAXException
parse in interface org.xml.sax.XMLReaderorg.xml.sax.SAXExceptionpublic org.xml.sax.ContentHandler getContentHandler()
getContentHandler in interface org.xml.sax.XMLReaderpublic org.xml.sax.DTDHandler getDTDHandler()
getDTDHandler in interface org.xml.sax.XMLReaderpublic org.xml.sax.EntityResolver getEntityResolver()
getEntityResolver in interface org.xml.sax.XMLReaderpublic org.xml.sax.ErrorHandler getErrorHandler()
getErrorHandler in interface org.xml.sax.XMLReaderpublic boolean getFeature(java.lang.String name)
false indicating that this parser does not implement
the given feature.getFeature in interface org.xml.sax.XMLReaderpublic java.lang.Object getProperty(java.lang.String name)
null value for the given property.getProperty in interface org.xml.sax.XMLReaderpublic void setContentHandler(org.xml.sax.ContentHandler chdlr)
setContentHandler in interface org.xml.sax.XMLReaderpublic void setDTDHandler(org.xml.sax.DTDHandler dhdlr)
setDTDHandler in interface org.xml.sax.XMLReaderpublic void setEntityResolver(org.xml.sax.EntityResolver erslvr)
setEntityResolver in interface org.xml.sax.XMLReaderpublic void setErrorHandler(org.xml.sax.ErrorHandler ehdlr)
setErrorHandler in interface org.xml.sax.XMLReaderpublic void setFeature(java.lang.String name,
boolean feature)
setFeature in interface org.xml.sax.XMLReaderpublic void setProperty(java.lang.String name,
java.lang.Object property)
setProperty in interface org.xml.sax.XMLReader