org.w3c.domts

Class DOMErrorMonitor

Implemented Interfaces:
DOMErrorHandler

public class DOMErrorMonitor
extends java.lang.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

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.

Constructor Details

DOMErrorMonitor

public DOMErrorMonitor()
Public constructor

Method Details

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.