org.w3c.domts
Class DOMErrorMonitor

java.lang.Object
  extended byorg.w3c.domts.DOMErrorMonitor
All Implemented Interfaces:
org.w3c.dom.DOMErrorHandler

public class DOMErrorMonitor
extends java.lang.Object
implements org.w3c.dom.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, java.lang.String id, int severity)
           
 java.util.List getAllErrors()
          Gets list of errors
 boolean handleError(org.w3c.dom.DOMError error)
          Implementation of DOMErrorHandler.handleError that adds copy of error to list for later retrieval.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOMErrorMonitor

public DOMErrorMonitor()
Public constructor

Method Detail

handleError

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

Specified by:
handleError in interface org.w3c.dom.DOMErrorHandler

getAllErrors

public java.util.List getAllErrors()
Gets list of errors

Returns:
return errors

assertLowerSeverity

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