protected class DOMUtilsImpl.DOMUtilsXMLErrorHandler
extends java.lang.Object
implements org.apache.xerces.xni.parser.XMLErrorHandler
XMLErrorHandler, adapted for employment with the XML
signature parser DOMUtilsImpl.grammarPreparser_ used in method DOMUtilsImpl.schemaValidateSignatureElement(org.w3c.dom.Element, java.lang.String, java.lang.String).
Warnings, Errors and Fatal Errors are reported only if corresponding IXSIL init properties are
set true.| Modifier and Type | Field and Description |
|---|---|
protected static int |
ERROR_
Indicates that an error has occured.
|
protected static int |
FATAL_
Indicates that a fatal error has occured.
|
protected static int |
WARNING_
Indicates that a warning has occured.
|
| Modifier | Constructor and Description |
|---|---|
protected |
DOMUtilsXMLErrorHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
error(java.lang.String domain,
java.lang.String key,
org.apache.xerces.xni.parser.XMLParseException exception) |
void |
fatalError(java.lang.String domain,
java.lang.String key,
org.apache.xerces.xni.parser.XMLParseException exception) |
protected void |
printException(org.apache.xerces.xni.parser.XMLParseException exception,
int severity)
Prints debug information about the error by evaluating the information in the specified exception.
|
protected boolean |
report(java.lang.String reportProperty,
org.apache.xerces.xni.parser.XMLParseException exception,
int severity)
Detects if the error should be reported to the application.
|
void |
warning(java.lang.String domain,
java.lang.String key,
org.apache.xerces.xni.parser.XMLParseException exception) |
protected static final int WARNING_
protected static final int ERROR_
protected static final int FATAL_
public void warning(java.lang.String domain,
java.lang.String key,
org.apache.xerces.xni.parser.XMLParseException exception)
throws org.apache.xerces.xni.XNIException
warning in interface org.apache.xerces.xni.parser.XMLErrorHandlerorg.apache.xerces.xni.XNIExceptionXMLErrorHandler.warning(java.lang.String, java.lang.String, org.apache.xerces.xni.parser.XMLParseException)public void error(java.lang.String domain,
java.lang.String key,
org.apache.xerces.xni.parser.XMLParseException exception)
throws org.apache.xerces.xni.XNIException
error in interface org.apache.xerces.xni.parser.XMLErrorHandlerorg.apache.xerces.xni.XNIExceptionXMLErrorHandler.error(java.lang.String, java.lang.String, org.apache.xerces.xni.parser.XMLParseException)public void fatalError(java.lang.String domain,
java.lang.String key,
org.apache.xerces.xni.parser.XMLParseException exception)
throws org.apache.xerces.xni.XNIException
fatalError in interface org.apache.xerces.xni.parser.XMLErrorHandlerorg.apache.xerces.xni.XNIExceptionXMLErrorHandler.fatalError(java.lang.String, java.lang.String, org.apache.xerces.xni.parser.XMLParseException)protected boolean report(java.lang.String reportProperty,
org.apache.xerces.xni.parser.XMLParseException exception,
int severity)
reportProperty - Name of the IXSIL init property to be checked if the error should be reported.exception - The object representing details of the error (location, message).severity - Indicates the severity of the error (one of WARNING_, ERROR_,
FATAL_).true if the error should be reported to the application, false
otherwise.protected void printException(org.apache.xerces.xni.parser.XMLParseException exception,
int severity)