public class ErrorStorer
extends java.lang.Object
implements org.xml.sax.ErrorHandler
Constructor and Description |
---|
ErrorStorer(org.apache.xerces.parsers.DOMParser parser)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
error(org.xml.sax.SAXParseException ex) |
void |
fatalError(org.xml.sax.SAXParseException ex) |
java.lang.Object |
getError(org.w3c.dom.Node node)
The ParseError object for the node key is returned.If
the node doesn't have errors, null is returned.
|
java.util.Hashtable |
getErrorNodes()
The client is is allowed to get a reference to the Hashtable,
and so could corrupt it, or add to it...
|
void |
resetErrors()
Reset the error storage.
|
void |
warning(org.xml.sax.SAXParseException ex) |
public ErrorStorer(org.apache.xerces.parsers.DOMParser parser)
public java.util.Hashtable getErrorNodes()
public java.lang.Object getError(org.w3c.dom.Node node)
public void resetErrors()
public void warning(org.xml.sax.SAXParseException ex)
warning
in interface org.xml.sax.ErrorHandler
public void error(org.xml.sax.SAXParseException ex)
error
in interface org.xml.sax.ErrorHandler
public void fatalError(org.xml.sax.SAXParseException ex) throws org.xml.sax.SAXException
fatalError
in interface org.xml.sax.ErrorHandler
org.xml.sax.SAXException