public class DOMErrorMonitor extends Object implements DOMErrorHandler
Constructor and Description |
---|
DOMErrorMonitor()
Public constructor
|
Modifier and Type | Method and Description |
---|---|
void |
assertLowerSeverity(DOMTestCase testCase,
String id,
int severity) |
List |
getAllErrors()
Gets list of errors
|
boolean |
handleError(DOMError error)
Implementation of DOMErrorHandler.handleError that
adds copy of error to list for later retrieval.
|
public boolean handleError(DOMError error)
handleError
in interface DOMErrorHandler
error
- The error object that describes the error. This object
may be reused by the DOM implementation across multiple calls to
the handleError
method.handleError
method returns
false
, the DOM implementation should stop the current
processing when possible. If the method returns true
,
the processing may continue depending on
DOMError.severity
.public List getAllErrors()
public void assertLowerSeverity(DOMTestCase testCase, String id, int severity)