org.w3c.domts

Class DOMErrorMonitor

public class DOMErrorMonitor extends Object implements DOMErrorHandler

This is a utility implementation of EventListener that captures all events and provides access to lists of all events by mode
Constructor Summary
DOMErrorMonitor()
Public constructor
Method Summary
voidassertLowerSeverity(DOMTestCase testCase, String id, int severity)
ListgetAllErrors()
Gets list of errors
booleanhandleError(DOMError error)
Implementation of DOMErrorHandler.handleError that adds copy of error to list for later retrieval.

Constructor Detail

DOMErrorMonitor

public DOMErrorMonitor()
Public constructor

Method Detail

assertLowerSeverity

public void assertLowerSeverity(DOMTestCase testCase, String id, int severity)

getAllErrors

public List getAllErrors()
Gets list of errors

Returns: return errors

handleError

public boolean handleError(DOMError error)
Implementation of DOMErrorHandler.handleError that adds copy of error to list for later retrieval.